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.831/1.831, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.542e-05/2.534e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2796, allocations: 38.76 MB / 258.3 MB, free: 12.03 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4052, allocations: 67.51 MB / 325.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003217/0.4056, allocations: 63.97 kB / 325.9 MB, free: 10.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0372/0.4428, allocations: 7.366 MB / 333.2 MB, free: 2.859 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.927e-06/0.4429, allocations: 4 kB / 333.2 MB, free: 2.855 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.211e-05/0.4429, allocations: 7.938 kB / 333.3 MB, free: 2.848 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001115/0.444, allocations: 0.7884 MB / 334 MB, free: 1.949 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.4441, allocations: 8.031 kB / 334.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.4442, allocations: 39.56 kB / 334.1 MB, free: 1.902 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004884/0.4447, allocations: 274.5 kB / 334.4 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.492e-05/0.4448, allocations: 11.95 kB / 334.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.4448, allocations: 12 kB / 334.4 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003532/0.4452, allocations: 120.1 kB / 334.5 MB, free: 1.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000535/0.4458, allocations: 264.1 kB / 334.8 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.4458, allocations: 0 / 334.8 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.307e-05/0.4458, allocations: 7.984 kB / 334.8 MB, free: 1.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.781e-05/0.4459, allocations: 4 kB / 334.8 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.4472, allocations: 0.9744 MB / 335.7 MB, free: 124 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.4477, allocations: 214.5 kB / 336 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/0.4481, allocations: 155.9 kB / 336.1 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.4481, allocations: 8 kB / 336.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007421/0.4489, allocations: 0.5002 MB / 336.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 3.065e-06/0.4489, allocations: 4 kB / 336.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001471/0.4504, allocations: 0.4967 MB / 337.1 MB, free: 14.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002911/0.4507, allocations: 498.6 kB / 337.6 MB, free: 14.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004292/0.4511, allocations: 246.2 kB / 337.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.6e-05/0.4512, allocations: 41.69 kB / 337.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.4514, allocations: 191.2 kB / 338.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.4515, allocations: 79.3 kB / 338.1 MB, free: 13.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.405e-05/0.4516, allocations: 4 kB / 338.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.4517, allocations: 338.8 kB / 338.5 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.4521, allocations: 128.4 kB / 338.6 MB, free: 13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/0.4525, allocations: 228.8 kB / 338.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.453, allocations: 155.8 kB / 339 MB, free: 12.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.4531, allocations: 0 / 339 MB, free: 12.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001504/0.4546, allocations: 0.5399 MB / 339.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.4548, allocations: 293 kB / 339.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.4548, allocations: 8.156 kB / 339.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.288e-05/0.4549, allocations: 4 kB / 339.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.455, allocations: 11.94 kB / 339.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.682e-05/0.455, allocations: 11.98 kB / 339.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.4553, allocations: 20.03 kB / 339.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.4554, allocations: 35.98 kB / 339.9 MB, free: 11.6 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.0003858/0.4558, allocations: 348.5 kB / 340.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001455/0.4573, allocations: 0.5635 MB / 340.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.655e-05/0.4574, allocations: 39.62 kB / 340.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.126e-05/0.4575, allocations: 25.95 kB / 340.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.4575, allocations: 0 / 340.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.4575, allocations: 0 / 340.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.4575, allocations: 7.953 kB / 340.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.4586, allocations: 0.6238 MB / 341.5 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4587, allocations: 4 kB / 341.5 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.4587, allocations: 3.984 kB / 341.5 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.239e-05/0.4588, allocations: 4 kB / 341.5 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-05/0.4588, allocations: 19.94 kB / 341.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.4588, allocations: 0 / 341.5 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-05/0.4588, allocations: 11.94 kB / 341.5 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.4604, allocations: 0.7058 MB / 342.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.828e-05/0.4605, allocations: 104.7 kB / 342.3 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001345/0.4606, allocations: 24 kB / 342.4 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003367/0.461, allocations: 31.97 kB / 342.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.4611, allocations: 27.91 kB / 342.4 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-05/0.4612, allocations: 23.98 kB / 342.5 MB, free: 8.883 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002722/0.4615, allocations: 194 kB / 342.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.4615, allocations: 0 / 342.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009042/0.4624, allocations: 147.9 kB / 342.8 MB, free: 8.551 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.002348/0.4648, allocations: 1.578 MB / 344.4 MB, free: 6.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.466, allocations: 0.9002 MB / 345.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4661, allocations: 0 / 345.3 MB, free: 5.906 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006913/0.4668, allocations: 0.5589 MB / 345.8 MB, free: 5.273 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.4671, allocations: 28.45 kB / 345.9 MB, free: 5.242 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.4689, allocations: 0.6317 MB / 346.5 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.4694, allocations: 0.7756 MB / 347.3 MB, free: 3.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.4695, allocations: 75.41 kB / 347.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.4695, allocations: 0 / 347.3 MB, free: 3.676 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.535/3.005, allocations: 5.592 MB / 352.9 MB, free: 14.09 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