Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.405e-05, allocations: 4 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 44.51 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.5345, allocations: 70.79 MB / 370.7 MB, free: 20.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.5349, allocations: 65.98 kB / 370.8 MB, free: 20.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01549/0.5504, allocations: 2.782 MB / 373.6 MB, free: 20.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.175e-06/0.5504, allocations: 0 / 373.6 MB, free: 20.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.5505, allocations: 13.03 kB / 373.6 MB, free: 20.27 MB / 314.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.0008766/0.5514, allocations: 435.6 kB / 374 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.848e-05/0.5514, allocations: 9.312 kB / 374 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.5516, allocations: 58.94 kB / 374.1 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.553e-05/0.5517, allocations: 22.36 kB / 374.1 MB, free: 19.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.5521, allocations: 221.8 kB / 374.3 MB, free: 19.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.635e-05/0.5522, allocations: 23.09 kB / 374.3 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.108e-05/0.5523, allocations: 24.23 kB / 374.4 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007695/0.553, allocations: 226.8 kB / 374.6 MB, free: 19.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.5531, allocations: 3.938 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.512e-05/0.5531, allocations: 7.188 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.5532, allocations: 4.312 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006045/0.5538, allocations: 153.2 kB / 374.8 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001832/0.5556, allocations: 0.6885 MB / 375.4 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005751/0.5563, allocations: 166.6 kB / 375.6 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000255/0.5565, allocations: 79.97 kB / 375.7 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.5566, allocations: 2.906 kB / 375.7 MB, free: 19.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.5569, allocations: 110.5 kB / 375.8 MB, free: 19.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.538e-06/0.557, allocations: 0 / 375.8 MB, free: 19.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006174/0.5576, allocations: 168.5 kB / 376 MB, free: 19.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.5577, allocations: 59.69 kB / 376 MB, free: 18.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.5579, allocations: 134.6 kB / 376.2 MB, free: 18.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.8e-05/0.5579, allocations: 38.12 kB / 376.2 MB, free: 18.85 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.5581, allocations: 194 kB / 376.4 MB, free: 18.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.17e-05/0.5582, allocations: 59.88 kB / 376.4 MB, free: 18.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.5582, allocations: 7.875 kB / 376.4 MB, free: 18.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.435e-05/0.5583, allocations: 321.2 kB / 376.8 MB, free: 18.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.5586, allocations: 66.39 kB / 376.8 MB, free: 18.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.5589, allocations: 117.8 kB / 376.9 MB, free: 18.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.5592, allocations: 71.81 kB / 377 MB, free: 18.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.5592, allocations: 0 / 377 MB, free: 18.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007579/0.56, allocations: 235.1 kB / 377.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.766e-05/0.56, allocations: 5.688 kB / 377.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.56, allocations: 2.5 kB / 377.2 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/0.5601, allocations: 7.516 kB / 377.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.5604, allocations: 35.61 kB / 377.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.904e-05/0.5605, allocations: 3.562 kB / 377.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002383/0.5607, allocations: 16.59 kB / 377.3 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.678e-05/0.5608, allocations: 16.62 kB / 377.3 MB, free: 18.17 MB / 314.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.0001518/0.561, allocations: 128.4 kB / 377.5 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.575e-05/0.561, allocations: 13.47 kB / 377.5 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006835/0.5617, allocations: 192.4 kB / 377.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.5618, allocations: 6.406 kB / 377.7 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.407e-06/0.5618, allocations: 3.953 kB / 377.7 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.5618, allocations: 3.5 kB / 377.7 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.5632, allocations: 0.5531 MB / 378.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.5633, allocations: 0 / 378.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.5635, allocations: 19.78 kB / 378.2 MB, free: 17.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.447e-06/0.5635, allocations: 5.469 kB / 378.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.5636, allocations: 4.906 kB / 378.2 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.338e-06/0.5636, allocations: 7.422 kB / 378.3 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.5636, allocations: 0 / 378.3 MB, free: 17.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005952/0.5642, allocations: 274.2 kB / 378.5 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.5643, allocations: 88.48 kB / 378.6 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.5643, allocations: 14.7 kB / 378.6 MB, free: 17.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002229/0.5646, allocations: 15.22 kB / 378.6 MB, free: 17.42 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.5647, allocations: 23.05 kB / 378.7 MB, free: 17.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.382e-05/0.5648, allocations: 9 kB / 378.7 MB, free: 17.42 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.927e-05/0.5649, allocations: 91.73 kB / 378.8 MB, free: 17.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.82e-07/0.5649, allocations: 0 / 378.8 MB, free: 17.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007133/0.5656, allocations: 41.45 kB / 378.8 MB, free: 17.35 MB / 314.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.0009177/0.5665, allocations: 0.8224 MB / 379.6 MB, free: 16.67 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006328/0.5672, allocations: 169.3 kB / 379.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5672, allocations: 0 / 379.8 MB, free: 16.66 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.5675, allocations: 83.23 kB / 379.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.5679, allocations: 25.3 kB / 379.9 MB, free: 16.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.5692, allocations: 300.9 kB / 380.2 MB, free: 16.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000919/0.5701, allocations: 0.738 MB / 380.9 MB, free: 31.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.5703, allocations: 60 kB / 381 MB, free: 31.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.463e-06/0.5704, allocations: 0 / 381 MB, free: 31.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.483/3.053, allocations: 2.949 MB / 383.9 MB, free: 31.46 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat