Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.8/1.8, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.3e-05/3.312e-05, allocations: 4 kB / 225.1 MB, free: 2.621 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3008, allocations: 38.77 MB / 263.8 MB, free: 9.75 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1217/0.4226, allocations: 68.18 MB / 332 MB, free: 5.473 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.4229, allocations: 63.97 kB / 332.1 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0382/0.4611, allocations: 7.425 MB / 339.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.4612, allocations: 0 / 339.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.4612, allocations: 4 kB / 339.5 MB, free: 13.96 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001241/0.4625, allocations: 0.7922 MB / 340.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.889e-05/0.4626, allocations: 8.031 kB / 340.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.4627, allocations: 50.48 kB / 340.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.4628, allocations: 43.61 kB / 340.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.4634, allocations: 266.6 kB / 340.7 MB, free: 12.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.4634, allocations: 20.14 kB / 340.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-05/0.4635, allocations: 20 kB / 340.7 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006254/0.4641, allocations: 272 kB / 341 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.4642, allocations: 0 / 341 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.563e-05/0.4642, allocations: 15.98 kB / 341 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.241e-05/0.4643, allocations: 8 kB / 341 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003668/0.4646, allocations: 131.9 kB / 341.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.4661, allocations: 1.001 MB / 342.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004847/0.4666, allocations: 230.5 kB / 342.3 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.467, allocations: 167.3 kB / 342.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.467, allocations: 4 kB / 342.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008164/0.4678, allocations: 0.5119 MB / 343 MB, free: 10.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.386e-06/0.4679, allocations: 0 / 343 MB, free: 10.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001581/0.4695, allocations: 0.6945 MB / 343.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002806/0.4698, allocations: 498.6 kB / 344.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004668/0.4702, allocations: 259 kB / 344.5 MB, free: 8.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-05/0.4704, allocations: 45.7 kB / 344.5 MB, free: 8.414 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.4705, allocations: 195.3 kB / 344.7 MB, free: 8.223 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.4706, allocations: 79.3 kB / 344.8 MB, free: 8.145 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.4707, allocations: 8 kB / 344.8 MB, free: 8.137 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.4708, allocations: 326.8 kB / 345.1 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003919/0.4712, allocations: 140.4 kB / 345.2 MB, free: 7.672 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004558/0.4717, allocations: 232.8 kB / 345.5 MB, free: 7.402 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006008/0.4723, allocations: 440.9 kB / 345.9 MB, free: 6.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.4723, allocations: 0 / 345.9 MB, free: 6.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001668/0.474, allocations: 0.826 MB / 346.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002187/0.4743, allocations: 297 kB / 347 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4743, allocations: 0 / 347 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.059e-05/0.4743, allocations: 8 kB / 347 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4745, allocations: 19.92 kB / 347 MB, free: 5.637 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.4745, allocations: 7.953 kB / 347 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.4748, allocations: 31.84 kB / 347.1 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.4749, allocations: 32.14 kB / 347.1 MB, free: 5.566 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$whenCondition9,$PRE.integerTable.y,integerTable.y,$PRE.integerTable.nextTime,integerTable.nextTime,$PRE.integerTable.index,integerTable.index,$whenCondition8,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index,$whenCondition7,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$whenCondition6,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],$whenCondition1,$whenCondition2,$whenCondition3,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 10 * 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.000436/0.4754, allocations: 342.5 kB / 347.4 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4755, allocations: 35.72 kB / 347.5 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.371e-05/0.4756, allocations: 21.95 kB / 347.5 MB, free: 5.133 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.4756, allocations: 4 kB / 347.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4756, allocations: 0 / 347.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.4757, allocations: 15.94 kB / 347.5 MB, free: 5.113 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.477, allocations: 0.8036 MB / 348.3 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4771, allocations: 0 / 348.3 MB, free: 4.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.255e-05/0.4771, allocations: 4 kB / 348.3 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.963e-06/0.4772, allocations: 0 / 348.3 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.902e-05/0.4772, allocations: 19.98 kB / 348.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.662e-06/0.4773, allocations: 4 kB / 348.3 MB, free: 4.203 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4773, allocations: 3.953 kB / 348.3 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.479, allocations: 0.9228 MB / 349.3 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.826e-05/0.4792, allocations: 112.7 kB / 349.4 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001478/0.4793, allocations: 24 kB / 349.4 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.4797, allocations: 31.97 kB / 349.4 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4798, allocations: 19.97 kB / 349.5 MB, free: 2.992 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.4799, allocations: 31.91 kB / 349.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003242/0.4803, allocations: 207.1 kB / 349.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.4803, allocations: 0 / 349.7 MB, free: 2.762 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009076/0.4812, allocations: 155.9 kB / 349.8 MB, free: 2.609 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 31 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,start.reset[1],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],$whenCondition7,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 29 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition7,stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition4,$whenCondition6,stop.on,$whenCondition5,stop.pre_reset[1],stop.reset[1],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition3,start.on,$whenCondition2,start.pre_reset[1],start.reset[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 3 * 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.002672/0.4839, allocations: 1.779 MB / 351.6 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001419/0.4854, allocations: 0.9315 MB / 352.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.4854, allocations: 4 kB / 352.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007524/0.4862, allocations: 0.5746 MB / 353.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.4866, allocations: 32.94 kB / 353.2 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001966/0.4885, allocations: 0.6337 MB / 353.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004547/0.489, allocations: 0.7798 MB / 354.6 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.4892, allocations: 75.41 kB / 354.7 MB, free: 13.44 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4892, allocations: 4 kB / 354.7 MB, free: 13.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.918/3.407, allocations: 5.557 MB / 360.2 MB, free: 7.875 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat