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 1.999/1.999, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.985e-05/3.001e-05, allocations: 4 kB / 255.4 MB, free: 3.129 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 44.52 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4174/0.5268, allocations: 73.53 MB / 373.5 MB, free: 22.13 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.5271, allocations: 63.22 kB / 373.5 MB, free: 22.13 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03847/0.5656, allocations: 7.485 MB / 381 MB, free: 21.42 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.5656, allocations: 0 / 381 MB, free: 21.42 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.586e-05/0.5657, allocations: 7.844 kB / 381 MB, free: 21.42 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.001203/0.5669, allocations: 0.7929 MB / 381.8 MB, free: 20.66 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.305e-05/0.567, allocations: 9.531 kB / 381.8 MB, free: 20.66 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/0.5671, allocations: 50.25 kB / 381.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.5673, allocations: 32.55 kB / 381.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005692/0.5678, allocations: 290 kB / 382.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.919e-05/0.5679, allocations: 14.89 kB / 382.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.568, allocations: 15.47 kB / 382.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006767/0.5687, allocations: 282.4 kB / 382.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.5687, allocations: 0 / 382.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/0.5688, allocations: 5.938 kB / 382.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.645e-05/0.5688, allocations: 5.156 kB / 382.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.5692, allocations: 146.9 kB / 382.6 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001418/0.5707, allocations: 1.019 MB / 383.7 MB, free: 19.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.5712, allocations: 234.1 kB / 383.9 MB, free: 19.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000353/0.5715, allocations: 175.1 kB / 384.1 MB, free: 19.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.5716, allocations: 17.78 kB / 384.1 MB, free: 19.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007043/0.5723, allocations: 0.5287 MB / 384.6 MB, free: 19 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 3.737e-06/0.5723, allocations: 0 / 384.6 MB, free: 19 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.00158/0.5739, allocations: 0.6609 MB / 385.3 MB, free: 18.75 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001946/0.5742, allocations: 0.492 MB / 385.8 MB, free: 18.18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.5747, allocations: 266.4 kB / 386 MB, free: 18.07 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001243/0.5748, allocations: 43.42 kB / 386.1 MB, free: 18.04 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000114/0.5749, allocations: 192 kB / 386.2 MB, free: 17.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001036/0.575, allocations: 84.73 kB / 386.3 MB, free: 17.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.367e-05/0.5751, allocations: 10.28 kB / 386.3 MB, free: 17.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.545e-05/0.5752, allocations: 328.9 kB / 386.7 MB, free: 17.54 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.5756, allocations: 142.7 kB / 386.8 MB, free: 17.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.576, allocations: 240.6 kB / 387 MB, free: 17.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005228/0.5765, allocations: 438.8 kB / 387.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.5766, allocations: 1.375 kB / 387.5 MB, free: 17.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001497/0.5781, allocations: 0.8065 MB / 388.3 MB, free: 16.74 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.5783, allocations: 291.5 kB / 388.6 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.5783, allocations: 6.469 kB / 388.6 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.282e-05/0.5784, allocations: 9.156 kB / 388.6 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.5785, allocations: 19 kB / 388.6 MB, free: 16.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.5785, allocations: 10.53 kB / 388.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003361/0.5789, allocations: 29.94 kB / 388.6 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.267e-05/0.579, allocations: 29.67 kB / 388.7 MB, free: 16.41 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.0003549/0.5793, allocations: 358.2 kB / 389 MB, free: 16.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.5795, allocations: 39.59 kB / 389 MB, free: 16.08 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.5796, allocations: 27.05 kB / 389.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.5796, allocations: 4.156 kB / 389.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.5796, allocations: 0 / 389.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.5796, allocations: 1.781 kB / 389.1 MB, free: 16.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.5809, allocations: 0.8206 MB / 389.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.5809, allocations: 5.312 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.035e-05/0.581, allocations: 2.688 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.581, allocations: 1.312 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-05/0.5811, allocations: 20.78 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.5812, allocations: 1.344 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.5812, allocations: 1.312 kB / 389.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/0.5828, allocations: 0.9093 MB / 390.8 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.692e-05/0.5829, allocations: 105.2 kB / 390.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.5831, allocations: 31.22 kB / 391 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003483/0.5834, allocations: 23.92 kB / 391 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5836, allocations: 24.41 kB / 391 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.5837, allocations: 28.95 kB / 391 MB, free: 15.09 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003224/0.5841, allocations: 209.3 kB / 391.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5841, allocations: 0 / 391.2 MB, free: 15.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001032/0.5851, allocations: 165.1 kB / 391.4 MB, free: 14.99 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.003165/0.5883, allocations: 1.772 MB / 393.2 MB, free: 29.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001398/0.5898, allocations: 0.974 MB / 394.2 MB, free: 29.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.5898, allocations: 3.438 kB / 394.2 MB, free: 29.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008083/0.5907, allocations: 0.606 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.0004501/0.5911, allocations: 27.17 kB / 394.8 MB, free: 28.79 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.5932, allocations: 0.6545 MB / 395.4 MB, free: 28.54 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000478/0.5938, allocations: 0.7859 MB / 396.2 MB, free: 27.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.5939, allocations: 77.7 kB / 396.3 MB, free: 27.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5939, allocations: 0 / 396.3 MB, free: 27.83 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.86/3.454, allocations: 5.671 MB / 402 MB, free: 27.23 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