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.78/1.78, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.521e-05/3.532e-05, allocations: 4 kB / 225 MB, free: 2.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.2669, allocations: 38.77 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1287/0.3956, allocations: 68.17 MB / 332 MB, free: 5.602 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.3959, allocations: 63.97 kB / 332.1 MB, free: 5.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03971/0.4357, allocations: 7.425 MB / 339.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4357, allocations: 0 / 339.5 MB, free: 14.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.4358, allocations: 4 kB / 339.5 MB, free: 14.1 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.001322/0.4371, allocations: 0.7922 MB / 340.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.4372, allocations: 11.97 kB / 340.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001139/0.4373, allocations: 46.55 kB / 340.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.4374, allocations: 35.62 kB / 340.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005546/0.438, allocations: 270.6 kB / 340.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.4381, allocations: 16.14 kB / 340.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.595e-05/0.4382, allocations: 27.97 kB / 340.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008313/0.439, allocations: 272.2 kB / 340.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.4391, allocations: 0 / 340.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.433e-05/0.4391, allocations: 11.97 kB / 340.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.939e-05/0.4392, allocations: 8 kB / 341 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.4396, allocations: 143.8 kB / 341.1 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001661/0.4413, allocations: 1.001 MB / 342.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.4419, allocations: 238.4 kB / 342.3 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.4423, allocations: 159.5 kB / 342.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.4424, allocations: 0 / 342.5 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009355/0.4433, allocations: 0.5237 MB / 343 MB, free: 10.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 5.08e-06/0.4434, allocations: 0 / 343 MB, free: 10.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.001784/0.4452, allocations: 0.6828 MB / 343.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003293/0.4456, allocations: 498.6 kB / 344.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000489/0.4461, allocations: 267 kB / 344.4 MB, free: 8.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001258/0.4462, allocations: 37.7 kB / 344.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.4464, allocations: 195.2 kB / 344.7 MB, free: 8.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.4466, allocations: 83.34 kB / 344.7 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.4466, allocations: 8 kB / 344.8 MB, free: 8.266 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4468, allocations: 330.8 kB / 345.1 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/0.4472, allocations: 140.4 kB / 345.2 MB, free: 7.793 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004737/0.4477, allocations: 232.9 kB / 345.4 MB, free: 7.527 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000628/0.4483, allocations: 436.9 kB / 345.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.4484, allocations: 0 / 345.9 MB, free: 7.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0019/0.4503, allocations: 0.834 MB / 346.7 MB, free: 6.137 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002453/0.4506, allocations: 293 kB / 347 MB, free: 5.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4506, allocations: 4 kB / 347 MB, free: 5.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/0.4506, allocations: 4 kB / 347 MB, free: 5.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.4508, allocations: 23.92 kB / 347 MB, free: 5.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.248e-05/0.4508, allocations: 7.953 kB / 347 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.4511, allocations: 28.03 kB / 347.1 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.367e-05/0.4512, allocations: 28.14 kB / 347.1 MB, free: 5.695 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.0004208/0.4517, allocations: 351 kB / 347.4 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4518, allocations: 39.72 kB / 347.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.539e-05/0.4519, allocations: 25.95 kB / 347.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.4519, allocations: 0 / 347.5 MB, free: 5.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.4519, allocations: 7.938 kB / 347.5 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.452, allocations: 15.88 kB / 347.5 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001458/0.4534, allocations: 0.7908 MB / 348.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.4535, allocations: 0 / 348.3 MB, free: 4.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.616e-05/0.4536, allocations: 7.938 kB / 348.3 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.608e-05/0.4536, allocations: 4 kB / 348.3 MB, free: 4.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.631e-05/0.4537, allocations: 23.97 kB / 348.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.4537, allocations: 0 / 348.3 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4538, allocations: 3.953 kB / 348.3 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.4557, allocations: 0.9247 MB / 349.3 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.4558, allocations: 108.6 kB / 349.4 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001303/0.456, allocations: 24 kB / 349.4 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.4563, allocations: 31.97 kB / 349.4 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4565, allocations: 23.97 kB / 349.5 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.4566, allocations: 28.02 kB / 349.5 MB, free: 3.074 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003477/0.4569, allocations: 203.1 kB / 349.7 MB, free: 2.879 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.457, allocations: 0 / 349.7 MB, free: 2.879 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009265/0.4579, allocations: 155.9 kB / 349.8 MB, free: 2.727 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.003264/0.4612, allocations: 1.78 MB / 351.6 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.4633, allocations: 0.9392 MB / 352.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.916e-06/0.4634, allocations: 0 / 352.6 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.4645, allocations: 0.5745 MB / 353.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005714/0.4651, allocations: 31.47 kB / 353.2 MB, free: 15.12 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002904/0.4681, allocations: 0.6376 MB / 353.8 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006377/0.4688, allocations: 0.7798 MB / 354.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.469, allocations: 79.41 kB / 354.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4691, allocations: 7.938 kB / 354.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.835/3.304, allocations: 5.549 MB / 360.2 MB, free: 7.988 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