Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 171.3 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.825e-05, allocations: 3.984 kB / 219.5 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2782, allocations: 38.76 MB / 258.3 MB, free: 12.14 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.4, allocations: 65.46 MB / 323.8 MB, free: 12.44 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.4003, allocations: 59.97 kB / 323.8 MB, free: 12.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01183/0.4121, allocations: 2.884 MB / 326.7 MB, free: 9.48 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4122, allocations: 0 / 326.7 MB, free: 9.48 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.4122, allocations: 4 kB / 326.7 MB, free: 9.477 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007246/0.413, allocations: 440.2 kB / 327.1 MB, free: 9.004 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.413, allocations: 12.03 kB / 327.2 MB, free: 8.992 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.4131, allocations: 23.72 kB / 327.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000379/0.4135, allocations: 222.9 kB / 327.4 MB, free: 8.711 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.741e-05/0.4136, allocations: 12 kB / 327.4 MB, free: 8.699 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.095e-05/0.4136, allocations: 19.98 kB / 327.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004514/0.4141, allocations: 153 kB / 327.6 MB, free: 8.531 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005137/0.4146, allocations: 221 kB / 327.8 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.4147, allocations: 0 / 327.8 MB, free: 8.289 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.4147, allocations: 3.984 kB / 327.8 MB, free: 8.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.4147, allocations: 8 kB / 327.8 MB, free: 8.277 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.4162, allocations: 0.8857 MB / 328.7 MB, free: 7.332 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003529/0.4166, allocations: 141.8 kB / 328.8 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.4168, allocations: 69.22 kB / 328.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.351e-05/0.4168, allocations: 8.172 kB / 328.9 MB, free: 7.109 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.4171, allocations: 107.5 kB / 329 MB, free: 6.992 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 4.469e-06/0.4171, allocations: 0 / 329 MB, free: 6.992 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004541/0.4176, allocations: 149.2 kB / 329.2 MB, free: 6.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.4176, allocations: 59.39 kB / 329.2 MB, free: 6.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001686/0.4178, allocations: 148.7 kB / 329.4 MB, free: 6.617 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.4179, allocations: 33.64 kB / 329.4 MB, free: 6.578 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.418, allocations: 206.8 kB / 329.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.288e-05/0.4181, allocations: 55.25 kB / 329.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.4181, allocations: 0 / 329.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.4183, allocations: 322.8 kB / 330 MB, free: 5.992 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.4184, allocations: 56.64 kB / 330 MB, free: 5.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.4187, allocations: 121.6 kB / 330.1 MB, free: 5.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001684/0.4189, allocations: 59.91 kB / 330.2 MB, free: 5.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4189, allocations: 4 kB / 330.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005098/0.4194, allocations: 213.2 kB / 330.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.4194, allocations: 8 kB / 330.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.4194, allocations: 0 / 330.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.4195, allocations: 4 kB / 330.4 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.4197, allocations: 35.92 kB / 330.5 MB, free: 5.461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.4197, allocations: 4.281 kB / 330.5 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001689/0.4199, allocations: 19.92 kB / 330.5 MB, free: 5.438 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.146e-05/0.42, allocations: 15.95 kB / 330.5 MB, free: 5.422 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001276/0.4201, allocations: 120 kB / 330.6 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003406/0.4204, allocations: 149.3 kB / 330.8 MB, free: 5.145 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.669e-05/0.4205, allocations: 7.906 kB / 330.8 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004662/0.421, allocations: 174.2 kB / 330.9 MB, free: 4.961 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.421, allocations: 8 kB / 330.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.421, allocations: 3.953 kB / 330.9 MB, free: 4.949 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.421, allocations: 3.984 kB / 331 MB, free: 4.945 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001024/0.422, allocations: 0.5101 MB / 331.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.4221, allocations: 0 / 331.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.4222, allocations: 19.94 kB / 331.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.4222, allocations: 0 / 331.5 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.4223, allocations: 11.94 kB / 331.5 MB, free: 4.355 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.4223, allocations: 7.938 kB / 331.5 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4223, allocations: 0 / 331.5 MB, free: 4.348 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004249/0.4227, allocations: 247.3 kB / 331.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/0.4228, allocations: 85.02 kB / 331.8 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.791e-05/0.4228, allocations: 7.984 kB / 331.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.423, allocations: 7.953 kB / 331.8 MB, free: 3.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4231, allocations: 23.95 kB / 331.9 MB, free: 3.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.4232, allocations: 12 kB / 331.9 MB, free: 3.938 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.336e-05/0.4232, allocations: 91.97 kB / 332 MB, free: 3.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4233, allocations: 0 / 332 MB, free: 3.848 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004688/0.4237, allocations: 32 kB / 332 MB, free: 3.816 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008004/0.4245, allocations: 0.8019 MB / 332.8 MB, free: 2.992 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004377/0.425, allocations: 163.7 kB / 333 MB, free: 2.832 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.425, allocations: 0 / 333 MB, free: 2.832 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.4252, allocations: 71.92 kB / 333 MB, free: 2.762 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.4255, allocations: 19.55 kB / 333 MB, free: 2.746 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009267/0.4265, allocations: 296.6 kB / 333.3 MB, free: 2.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.4268, allocations: 0.7444 MB / 334.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.427, allocations: 63.41 kB / 334.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of SimCode: time 8.82e-07/0.427, allocations: 0 / 334.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.339/2.766, allocations: 3.017 MB / 337.2 MB, free: 14.55 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat