Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Interaction1,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Blocks_Examples_Interaction1",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.467/2.467, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.19e-05/3.187e-05, allocations: 3.734 kB / 249.8 MB, free: 5.297 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1173, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.6049, allocations: 72.86 MB / 367.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002181/0.6052, allocations: 62.89 kB / 367.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04017/0.6454, allocations: 7.448 MB / 374.7 MB, free: 22.35 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6455, allocations: 0 / 374.7 MB, free: 22.35 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.366e-05/0.6455, allocations: 7.875 kB / 374.7 MB, free: 22.35 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.001128/0.6466, allocations: 0.7934 MB / 375.5 MB, free: 21.59 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.6467, allocations: 7.594 kB / 375.5 MB, free: 21.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.6468, allocations: 31.25 kB / 375.5 MB, free: 21.58 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.6474, allocations: 287.2 kB / 375.8 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.6474, allocations: 11.25 kB / 375.8 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.103e-05/0.6475, allocations: 15.38 kB / 375.8 MB, free: 21.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003835/0.6479, allocations: 130.9 kB / 375.9 MB, free: 21.34 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.6485, allocations: 255.7 kB / 376.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.6485, allocations: 3.938 kB / 376.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/0.6486, allocations: 6.859 kB / 376.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.6486, allocations: 7.891 kB / 376.2 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.65, allocations: 0.9818 MB / 377.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.6504, allocations: 225.7 kB / 377.4 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.6507, allocations: 163.9 kB / 377.6 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.6508, allocations: 7.906 kB / 377.6 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007744/0.6515, allocations: 0.5147 MB / 378.1 MB, free: 19.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.647e-06/0.6516, allocations: 0 / 378.1 MB, free: 19.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.001417/0.653, allocations: 483.7 kB / 378.6 MB, free: 19.79 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003307/0.6534, allocations: 499.8 kB / 379 MB, free: 19.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004422/0.6538, allocations: 254.4 kB / 379.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.6539, allocations: 36.77 kB / 379.3 MB, free: 19.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.6541, allocations: 146 kB / 379.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.6542, allocations: 83.3 kB / 379.6 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.6543, allocations: 0 / 379.6 MB, free: 18.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.6545, allocations: 347 kB / 379.9 MB, free: 18.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003561/0.6549, allocations: 143.2 kB / 380 MB, free: 18.57 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004053/0.6553, allocations: 218.1 kB / 380.2 MB, free: 18.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005836/0.6559, allocations: 166.8 kB / 380.4 MB, free: 18.42 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.6559, allocations: 3.844 kB / 380.4 MB, free: 18.42 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001581/0.6575, allocations: 0.5182 MB / 380.9 MB, free: 18.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003173/0.6579, allocations: 292 kB / 381.2 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.6579, allocations: 3.875 kB / 381.2 MB, free: 17.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/0.658, allocations: 12.03 kB / 381.2 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.6581, allocations: 19.61 kB / 381.3 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.6582, allocations: 7.812 kB / 381.3 MB, free: 17.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003493/0.6585, allocations: 31.23 kB / 381.3 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.539e-05/0.6586, allocations: 27.06 kB / 381.3 MB, free: 17.94 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.0004414/0.6591, allocations: 352.8 kB / 381.7 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001492/0.6606, allocations: 0.5403 MB / 382.2 MB, free: 17.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.12e-05/0.6607, allocations: 38.88 kB / 382.2 MB, free: 17.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.6608, allocations: 28.58 kB / 382.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.6609, allocations: 0 / 382.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.6609, allocations: 7.688 kB / 382.3 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.6609, allocations: 3.938 kB / 382.3 MB, free: 17.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.6621, allocations: 0.6363 MB / 382.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.6621, allocations: 3.875 kB / 382.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.532e-05/0.6622, allocations: 0 / 382.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.6622, allocations: 3.875 kB / 382.9 MB, free: 17.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.84e-05/0.6623, allocations: 19.42 kB / 382.9 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.6623, allocations: 3.938 kB / 382.9 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.6623, allocations: 3.906 kB / 382.9 MB, free: 17.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001556/0.6639, allocations: 0.7001 MB / 383.6 MB, free: 16.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.664, allocations: 112.3 kB / 383.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001643/0.6642, allocations: 26.02 kB / 383.8 MB, free: 16.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003943/0.6646, allocations: 27.41 kB / 383.8 MB, free: 16.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.6648, allocations: 25.27 kB / 383.8 MB, free: 16.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.6649, allocations: 33.94 kB / 383.9 MB, free: 16.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003024/0.6652, allocations: 193.2 kB / 384.1 MB, free: 16.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6652, allocations: 0 / 384.1 MB, free: 16.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001049/0.6663, allocations: 155.7 kB / 384.2 MB, free: 16.54 MB / 314.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.002596/0.6689, allocations: 1.568 MB / 385.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001415/0.6704, allocations: 0.929 MB / 386.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6704, allocations: 0 / 386.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007944/0.6712, allocations: 0.5937 MB / 387.3 MB, free: 14.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.6717, allocations: 23.33 kB / 387.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.6738, allocations: 0.5951 MB / 387.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.6744, allocations: 0.7842 MB / 388.7 MB, free: 13.41 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.6745, allocations: 20.88 kB / 388.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/0.6747, allocations: 79.28 kB / 388.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of SimCode: time 1.203e-06/0.6747, allocations: 0 / 388.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05565/0.7304, allocations: 6.568 MB / 395.4 MB, free: 10.24 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003633/0.7308, allocations: 138.4 kB / 395.5 MB, free: 10.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.356/4.087, allocations: 0 / 395.5 MB, free: 10.04 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Blocks.Examples.Interaction1_res.mat does not exist to compare? outputFormat=mat