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.822/1.822, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.54e-05/3.557e-05, allocations: 4 kB / 225.1 MB, free: 2.617 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3188, allocations: 38.77 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.4614, allocations: 66.13 MB / 330 MB, free: 7.531 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.4617, allocations: 63.97 kB / 330 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01242/0.4741, allocations: 2.931 MB / 333 MB, free: 4.516 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.4742, allocations: 0 / 333 MB, free: 4.516 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.4742, allocations: 4 kB / 333 MB, free: 4.512 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.0007362/0.4749, allocations: 447.9 kB / 333.4 MB, free: 4.027 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.475, allocations: 8.031 kB / 333.4 MB, free: 4.02 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.916e-05/0.4751, allocations: 58.55 kB / 333.5 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.654e-05/0.4752, allocations: 23.72 kB / 333.5 MB, free: 3.93 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.4755, allocations: 226.8 kB / 333.7 MB, free: 3.668 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.274e-05/0.4756, allocations: 20.56 kB / 333.7 MB, free: 3.648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-05/0.4757, allocations: 27.98 kB / 333.8 MB, free: 3.621 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006359/0.4763, allocations: 260.8 kB / 334 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.4763, allocations: 3.938 kB / 334 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.801e-05/0.4764, allocations: 12 kB / 334 MB, free: 3.324 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.4764, allocations: 8 kB / 334 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004558/0.4769, allocations: 156.8 kB / 334.2 MB, free: 3.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001673/0.4786, allocations: 0.9406 MB / 335.1 MB, free: 2.152 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003779/0.479, allocations: 154 kB / 335.3 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.4792, allocations: 73.27 kB / 335.4 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.4792, allocations: 192 / 335.4 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002609/0.4795, allocations: 115.4 kB / 335.5 MB, free: 1.797 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 4.709e-06/0.4795, allocations: 4 kB / 335.5 MB, free: 1.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004552/0.48, allocations: 161.3 kB / 335.6 MB, free: 1.629 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.48, allocations: 55.41 kB / 335.7 MB, free: 1.562 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.4802, allocations: 140.8 kB / 335.8 MB, free: 1.418 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-05/0.4803, allocations: 37.7 kB / 335.9 MB, free: 1.375 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.4804, allocations: 206.7 kB / 336.1 MB, free: 1.172 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.128e-05/0.4805, allocations: 63.23 kB / 336.1 MB, free: 1.109 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.764e-05/0.4806, allocations: 4 kB / 336.1 MB, free: 1.105 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4807, allocations: 326.8 kB / 336.5 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4809, allocations: 60.66 kB / 336.5 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002452/0.4812, allocations: 129.5 kB / 336.6 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.4814, allocations: 67.95 kB / 336.7 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4814, allocations: 0 / 336.7 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005758/0.482, allocations: 241.3 kB / 336.9 MB, free: 256 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.482, allocations: 4 kB / 336.9 MB, free: 252 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.482, allocations: 4 kB / 336.9 MB, free: 248 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.4821, allocations: 7.984 kB / 337 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.4823, allocations: 27.92 kB / 337 MB, free: 212 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.654e-05/0.4823, allocations: 7.953 kB / 337 MB, free: 204 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001683/0.4825, allocations: 19.94 kB / 337 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.267e-05/0.4826, allocations: 15.94 kB / 337 MB, free: 168 kB / 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.0001462/0.4827, allocations: 140.2 kB / 337.2 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.4828, allocations: 11.81 kB / 337.2 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005139/0.4833, allocations: 182.4 kB / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.4833, allocations: 4 kB / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4833, allocations: 0 / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.257e-06/0.4834, allocations: 3.953 kB / 337.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.4845, allocations: 0.5796 MB / 337.9 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4845, allocations: 7.938 kB / 337.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.4846, allocations: 15.94 kB / 338 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.167e-06/0.4847, allocations: 3.953 kB / 338 MB, free: 15.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.4847, allocations: 11.98 kB / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.4847, allocations: 0 / 338 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4847, allocations: 3.938 kB / 338 MB, free: 15.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004443/0.4852, allocations: 267.7 kB / 338.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.4853, allocations: 92.91 kB / 338.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.4853, allocations: 7.953 kB / 338.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.4855, allocations: 8 kB / 338.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-05/0.4856, allocations: 19.97 kB / 338.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.4856, allocations: 7.984 kB / 338.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.4857, allocations: 102.4 kB / 338.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4857, allocations: 0 / 338.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000452/0.4862, allocations: 40 kB / 338.5 MB, free: 14.57 MB / 298.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.0008686/0.4871, allocations: 0.8136 MB / 339.3 MB, free: 13.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000478/0.4876, allocations: 171.8 kB / 339.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4876, allocations: 0.5625 kB / 339.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.4878, allocations: 71.92 kB / 339.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002841/0.4881, allocations: 33.73 kB / 339.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009617/0.4891, allocations: 309.6 kB / 339.9 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.4895, allocations: 0.7441 MB / 340.6 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.4897, allocations: 63.42 kB / 340.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4897, allocations: 0 / 340.7 MB, free: 12.28 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.512/3.001, allocations: 3.029 MB / 343.7 MB, free: 9.25 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