Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.88/1.88, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.995e-05/4.013e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3258, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1215/0.4474, allocations: 65.5 MB / 329.3 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.4477, allocations: 63.97 kB / 329.4 MB, free: 8.219 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0127/0.4604, allocations: 2.781 MB / 332.2 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4605, allocations: 0 / 332.2 MB, free: 5.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.527e-05/0.4605, allocations: 8 kB / 332.2 MB, free: 5.402 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0009856/0.4615, allocations: 443.5 kB / 332.6 MB, free: 4.93 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/0.4616, allocations: 12.03 kB / 332.6 MB, free: 4.918 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.4617, allocations: 54.53 kB / 332.7 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.954e-05/0.4618, allocations: 19.81 kB / 332.7 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.4623, allocations: 222.8 kB / 332.9 MB, free: 4.578 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.222e-05/0.4624, allocations: 24.42 kB / 332.9 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.091e-05/0.4625, allocations: 24 kB / 333 MB, free: 4.531 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007937/0.4633, allocations: 225 kB / 333.2 MB, free: 4.297 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.4633, allocations: 4 kB / 333.2 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.4634, allocations: 12 kB / 333.2 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.4634, allocations: 4 kB / 333.2 MB, free: 4.277 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006166/0.464, allocations: 152.8 kB / 333.4 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001932/0.466, allocations: 0.6822 MB / 334 MB, free: 3.391 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.4666, allocations: 163.2 kB / 334.2 MB, free: 3.223 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.4669, allocations: 73.23 kB / 334.3 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.467, allocations: 8.172 kB / 334.3 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003657/0.4674, allocations: 123.4 kB / 334.4 MB, free: 3.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 8.776e-06/0.4674, allocations: 0 / 334.4 MB, free: 3.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006652/0.4681, allocations: 165.4 kB / 334.6 MB, free: 2.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.88e-05/0.4681, allocations: 59.34 kB / 334.6 MB, free: 2.77 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.4684, allocations: 141 kB / 334.8 MB, free: 2.621 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.4685, allocations: 33.7 kB / 334.8 MB, free: 2.582 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.4686, allocations: 202.8 kB / 335 MB, free: 2.383 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.651e-05/0.4688, allocations: 55.25 kB / 335 MB, free: 2.328 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.4688, allocations: 4 kB / 335 MB, free: 2.324 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.469, allocations: 330.8 kB / 335.4 MB, free: 1.992 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.4693, allocations: 56.66 kB / 335.4 MB, free: 1.934 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003361/0.4697, allocations: 127.8 kB / 335.5 MB, free: 1.785 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.4699, allocations: 59.97 kB / 335.6 MB, free: 1.727 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.47, allocations: 4 kB / 335.6 MB, free: 1.723 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007977/0.4708, allocations: 229.3 kB / 335.8 MB, free: 1.492 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.4708, allocations: 8 kB / 335.8 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4709, allocations: 0 / 335.8 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.929e-05/0.4709, allocations: 4 kB / 335.8 MB, free: 1.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.4712, allocations: 31.92 kB / 335.9 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.744e-05/0.4713, allocations: 4 kB / 335.9 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002395/0.4715, allocations: 19.84 kB / 335.9 MB, free: 1.426 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.514e-05/0.4716, allocations: 16.2 kB / 335.9 MB, free: 1.41 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001886/0.4718, allocations: 132 kB / 336 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.398e-05/0.4718, allocations: 11.91 kB / 336.1 MB, free: 1.262 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007352/0.4726, allocations: 190.2 kB / 336.2 MB, free: 1.062 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.4726, allocations: 4 kB / 336.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4727, allocations: 0 / 336.2 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.4727, allocations: 3.984 kB / 336.3 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/0.4744, allocations: 0.5609 MB / 336.8 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.4744, allocations: 0 / 336.8 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.4746, allocations: 15.98 kB / 336.8 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.658e-06/0.4747, allocations: 4 kB / 336.8 MB, free: 428 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.4747, allocations: 4 kB / 336.8 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.478e-06/0.4747, allocations: 0 / 336.8 MB, free: 424 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.4748, allocations: 11.89 kB / 336.8 MB, free: 412 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006875/0.4755, allocations: 275.7 kB / 337.1 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.4e-05/0.4756, allocations: 92.86 kB / 337.2 MB, free: 8 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.843e-05/0.4756, allocations: 8 kB / 337.2 MB, free: 0 / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.4759, allocations: 11.98 kB / 337.2 MB, free: 15.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.4761, allocations: 19.97 kB / 337.2 MB, free: 15.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.4762, allocations: 15.95 kB / 337.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001175/0.4763, allocations: 95.27 kB / 337.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.4763, allocations: 7.938 kB / 337.4 MB, free: 15.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008068/0.4771, allocations: 40 kB / 337.4 MB, free: 15.81 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.001281/0.4784, allocations: 0.8215 MB / 338.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007355/0.4792, allocations: 168.1 kB / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4792, allocations: 4.125 kB / 338.4 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003116/0.4796, allocations: 79.92 kB / 338.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004365/0.48, allocations: 12 kB / 338.5 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.4815, allocations: 301.7 kB / 338.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004929/0.482, allocations: 0.7365 MB / 339.5 MB, free: 13.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002288/0.4823, allocations: 59.42 kB / 339.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of SimCode: time 1.713e-06/0.4823, allocations: 0 / 339.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.516/2.999, allocations: 2.95 MB / 342.5 MB, free: 10.6 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat