Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Blocks_Examples_Interaction1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.004/2.004, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.964e-05, allocations: 5.25 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0925/0.09256, allocations: 44.5 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5092, allocations: 73.54 MB / 373.5 MB, free: 22.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.5095, allocations: 67.08 kB / 373.6 MB, free: 22.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05021/0.5597, allocations: 7.484 MB / 381 MB, free: 21.4 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.5598, allocations: 3.938 kB / 381 MB, free: 21.39 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.834e-05/0.5598, allocations: 5.188 kB / 381 MB, free: 21.39 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001528/0.5614, allocations: 0.7905 MB / 381.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.5615, allocations: 9.656 kB / 381.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001339/0.5616, allocations: 50.88 kB / 381.9 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.5618, allocations: 31.19 kB / 381.9 MB, free: 20.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007209/0.5626, allocations: 292 kB / 382.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.5627, allocations: 15.56 kB / 382.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/0.5628, allocations: 20.84 kB / 382.2 MB, free: 20.36 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009258/0.5638, allocations: 272.5 kB / 382.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.5638, allocations: 1.031 kB / 382.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.153e-05/0.5639, allocations: 7.062 kB / 382.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.532e-05/0.564, allocations: 12.47 kB / 382.5 MB, free: 20.26 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005478/0.5645, allocations: 141.5 kB / 382.7 MB, free: 20.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001749/0.5663, allocations: 1.015 MB / 383.7 MB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004792/0.5668, allocations: 237.4 kB / 383.9 MB, free: 19.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003518/0.5672, allocations: 176.2 kB / 384.1 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.602e-05/0.5672, allocations: 6.797 kB / 384.1 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007045/0.568, allocations: 0.5327 MB / 384.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.536e-06/0.568, allocations: 0 / 384.6 MB, free: 18.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001445/0.5694, allocations: 0.6591 MB / 385.3 MB, free: 18.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000166/0.5696, allocations: 0.4933 MB / 385.8 MB, free: 18.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/0.5701, allocations: 264.4 kB / 386 MB, free: 18.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.178e-05/0.5702, allocations: 41.95 kB / 386.1 MB, free: 18.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.5703, allocations: 197.1 kB / 386.3 MB, free: 17.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.37e-05/0.5704, allocations: 81.02 kB / 386.3 MB, free: 17.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.57e-05/0.5705, allocations: 10.5 kB / 386.4 MB, free: 17.83 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.667e-05/0.5705, allocations: 328.7 kB / 386.7 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.5709, allocations: 149.4 kB / 386.8 MB, free: 17.52 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004343/0.5714, allocations: 235.2 kB / 387.1 MB, free: 17.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000504/0.5719, allocations: 437.9 kB / 387.5 MB, free: 17.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.5719, allocations: 1.312 kB / 387.5 MB, free: 17.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001452/0.5734, allocations: 0.8021 MB / 388.3 MB, free: 16.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.5736, allocations: 293.8 kB / 388.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.5736, allocations: 3.344 kB / 388.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.5736, allocations: 4.75 kB / 388.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.5738, allocations: 18.03 kB / 388.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.555e-05/0.5738, allocations: 4.75 kB / 388.6 MB, free: 16.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003285/0.5741, allocations: 31.94 kB / 388.6 MB, free: 16.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.036e-05/0.5742, allocations: 33.34 kB / 388.7 MB, free: 16.39 MB / 314.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: 53 ($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,timeTable.nextEventScaled,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.0003417/0.5746, allocations: 357.3 kB / 389 MB, free: 16.08 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.5747, allocations: 41.12 kB / 389.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.613e-05/0.5749, allocations: 24.11 kB / 389.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.5749, allocations: 1.938 kB / 389.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.5749, allocations: 1.781 kB / 389.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.5749, allocations: 4 kB / 389.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.5761, allocations: 0.8155 MB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.5761, allocations: 1.688 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.933e-05/0.5762, allocations: 3.344 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.5762, allocations: 1.75 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.518e-05/0.5763, allocations: 22.89 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.42e-06/0.5763, allocations: 1.906 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.5763, allocations: 1.875 kB / 389.9 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001554/0.5779, allocations: 0.9074 MB / 390.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.961e-05/0.578, allocations: 109.2 kB / 391 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/0.5782, allocations: 32.08 kB / 391 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003497/0.5785, allocations: 27.5 kB / 391 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.5787, allocations: 23.03 kB / 391 MB, free: 15.08 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.5788, allocations: 27.92 kB / 391.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007727/0.5796, allocations: 206.7 kB / 391.3 MB, free: 31 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5796, allocations: 0 / 391.3 MB, free: 31 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001115/0.5807, allocations: 164.7 kB / 391.4 MB, free: 30.98 MB / 330.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: 32 ($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,timeTable.nextEventScaled,$whenCondition8,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition9,integerTable.y,integerTable.nextTime,integerTable.index) * Number of discrete states: 30 (integerTable.index,integerTable.nextTime,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition8,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.002655/0.5834, allocations: 1.769 MB / 393.2 MB, free: 29.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001428/0.5849, allocations: 0.9662 MB / 394.2 MB, free: 29.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.585, allocations: 0 / 394.2 MB, free: 29.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007992/0.5858, allocations: 0.6051 MB / 394.8 MB, free: 28.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.5863, allocations: 28.8 kB / 394.8 MB, free: 28.78 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.5884, allocations: 0.6509 MB / 395.4 MB, free: 28.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004515/0.5889, allocations: 0.7821 MB / 396.2 MB, free: 27.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.589, allocations: 82.73 kB / 396.3 MB, free: 27.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.293e-06/0.589, allocations: 0 / 396.3 MB, free: 27.83 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.726/3.315, allocations: 5.682 MB / 402 MB, free: 27.21 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat