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.868/1.868, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.877e-05/3.894e-05, allocations: 8 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3034, allocations: 38.76 MB / 263.8 MB, free: 9.773 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.4242, allocations: 65.48 MB / 329.3 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.4246, allocations: 63.97 kB / 329.4 MB, free: 8.133 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01164/0.4362, allocations: 2.785 MB / 332.1 MB, free: 5.32 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.4363, allocations: 0 / 332.1 MB, free: 5.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.909e-05/0.4363, allocations: 8 kB / 332.2 MB, free: 5.312 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.0007251/0.437, allocations: 435.6 kB / 332.6 MB, free: 4.848 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.4371, allocations: 8.031 kB / 332.6 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.936e-05/0.4372, allocations: 62.53 kB / 332.6 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.232e-05/0.4373, allocations: 19.81 kB / 332.7 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.4376, allocations: 222.8 kB / 332.9 MB, free: 4.492 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.4377, allocations: 20.44 kB / 332.9 MB, free: 4.473 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.561e-05/0.4377, allocations: 24 kB / 332.9 MB, free: 4.449 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005877/0.4383, allocations: 233.8 kB / 333.2 MB, free: 4.207 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.4384, allocations: 3.938 kB / 333.2 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.4384, allocations: 8 kB / 333.2 MB, free: 4.195 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.4384, allocations: 4 kB / 333.2 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000466/0.4389, allocations: 165.6 kB / 333.3 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.4404, allocations: 0.6743 MB / 334 MB, free: 3.297 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.4408, allocations: 175.3 kB / 334.2 MB, free: 3.117 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002012/0.4411, allocations: 82.02 kB / 334.3 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.812e-05/0.4411, allocations: 192 / 334.3 MB, free: 3.035 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.4414, allocations: 115.5 kB / 334.4 MB, free: 2.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.746e-06/0.4414, allocations: 3.938 kB / 334.4 MB, free: 2.906 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005045/0.4419, allocations: 157.4 kB / 334.5 MB, free: 2.746 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.442, allocations: 59.41 kB / 334.6 MB, free: 2.676 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.4422, allocations: 145 kB / 334.7 MB, free: 2.523 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.4423, allocations: 37.7 kB / 334.8 MB, free: 2.48 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4424, allocations: 194.8 kB / 335 MB, free: 2.289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.045e-05/0.4425, allocations: 59.25 kB / 335 MB, free: 2.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.4425, allocations: 8 kB / 335 MB, free: 2.223 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4427, allocations: 326.8 kB / 335.3 MB, free: 1.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.4429, allocations: 60.66 kB / 335.4 MB, free: 1.832 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.4431, allocations: 124.2 kB / 335.5 MB, free: 1.688 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002045/0.4433, allocations: 67.89 kB / 335.6 MB, free: 1.621 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4434, allocations: 4 kB / 335.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005619/0.4439, allocations: 225.4 kB / 335.8 MB, free: 1.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.444, allocations: 8 kB / 335.8 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.444, allocations: 0 / 335.8 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.444, allocations: 4 kB / 335.8 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002448/0.4443, allocations: 35.86 kB / 335.9 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.539e-05/0.4443, allocations: 7.984 kB / 335.9 MB, free: 1.336 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.4445, allocations: 28.05 kB / 335.9 MB, free: 1.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.915e-05/0.4445, allocations: 8 kB / 335.9 MB, free: 1.301 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.0001467/0.4447, allocations: 136 kB / 336 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.4447, allocations: 11.91 kB / 336 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005272/0.4453, allocations: 186.3 kB / 336.2 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.4453, allocations: 7.984 kB / 336.2 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.4453, allocations: 0 / 336.2 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4453, allocations: 3.938 kB / 336.2 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001138/0.4465, allocations: 0.5571 MB / 336.8 MB, free: 336 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.4465, allocations: 4 kB / 336.8 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.4467, allocations: 15.98 kB / 336.8 MB, free: 316 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.4467, allocations: 4 kB / 336.8 MB, free: 312 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.4467, allocations: 4 kB / 336.8 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4468, allocations: 3.938 kB / 336.8 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.4468, allocations: 19.88 kB / 336.8 MB, free: 284 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004545/0.4472, allocations: 267.7 kB / 337.1 MB, free: 0 / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.133e-05/0.4474, allocations: 96.91 kB / 337.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.789e-05/0.4474, allocations: 7.938 kB / 337.2 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.4476, allocations: 8 kB / 337.2 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.4477, allocations: 23.97 kB / 337.2 MB, free: 15.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.879e-05/0.4477, allocations: 15.94 kB / 337.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.527e-05/0.4478, allocations: 91.28 kB / 337.3 MB, free: 15.74 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4478, allocations: 0 / 337.3 MB, free: 15.74 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004175/0.4482, allocations: 40 kB / 337.4 MB, free: 15.7 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.0008564/0.4491, allocations: 0.8254 MB / 338.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004893/0.4496, allocations: 176 kB / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4496, allocations: 0 / 338.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002323/0.4499, allocations: 79.94 kB / 338.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.4502, allocations: 22.38 kB / 338.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009328/0.4511, allocations: 302.6 kB / 338.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003695/0.4515, allocations: 0.733 MB / 339.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001598/0.4517, allocations: 63.41 kB / 339.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.052e-06/0.4517, allocations: 0 / 339.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.603/3.055, allocations: 2.953 MB / 342.5 MB, free: 10.48 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