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.105/2.105, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.664e-05/2.669e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3049/0.3049, allocations: 44.5 MB / 294.2 MB, free: 14.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.4413, allocations: 72.88 MB / 367.1 MB, free: 9.004 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/0.4416, allocations: 59.98 kB / 367.1 MB, free: 8.945 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03723/0.4788, allocations: 7.441 MB / 374.6 MB, free: 1.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4789, allocations: 3.938 kB / 374.6 MB, free: 1.492 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.382e-05/0.4789, allocations: 4 kB / 374.6 MB, free: 1.488 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.001261/0.4802, allocations: 0.7922 MB / 375.4 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.4802, allocations: 8.031 kB / 375.4 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001339/0.4804, allocations: 31.72 kB / 375.4 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.481, allocations: 294.5 kB / 375.7 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.821e-05/0.481, allocations: 11.98 kB / 375.7 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.501e-05/0.4811, allocations: 12 kB / 375.7 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004202/0.4815, allocations: 128.4 kB / 375.8 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005962/0.4821, allocations: 252.9 kB / 376.1 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.4822, allocations: 8 kB / 376.1 MB, free: 15.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.252e-05/0.4822, allocations: 7.984 kB / 376.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.112e-05/0.4823, allocations: 4 kB / 376.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001411/0.4837, allocations: 0.9784 MB / 377.1 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004773/0.4842, allocations: 230.9 kB / 377.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003757/0.4846, allocations: 159.5 kB / 377.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.358e-05/0.4846, allocations: 224 / 377.5 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008331/0.4855, allocations: 0.524 MB / 378 MB, free: 13.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 2.695e-06/0.4855, allocations: 0 / 378 MB, free: 13.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.001429/0.4869, allocations: 477.9 kB / 378.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003101/0.4873, allocations: 494.6 kB / 378.9 MB, free: 12.64 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004615/0.4877, allocations: 258.2 kB / 379.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001061/0.4879, allocations: 37.7 kB / 379.2 MB, free: 12.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.4881, allocations: 199.3 kB / 379.4 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4883, allocations: 75.06 kB / 379.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.4883, allocations: 4 kB / 379.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002002/0.4885, allocations: 331.3 kB / 379.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004776/0.489, allocations: 132.5 kB / 380 MB, free: 11.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006106/0.4896, allocations: 233.5 kB / 380.2 MB, free: 11.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007425/0.4904, allocations: 159.8 kB / 380.3 MB, free: 11.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/0.4904, allocations: 4 kB / 380.3 MB, free: 11.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001971/0.4924, allocations: 0.5125 MB / 380.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002909/0.4927, allocations: 297 kB / 381.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.4928, allocations: 0 / 381.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.842e-05/0.4928, allocations: 4 kB / 381.2 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.493, allocations: 23.92 kB / 381.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.493, allocations: 4 kB / 381.2 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004083/0.4934, allocations: 23.84 kB / 381.2 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.4936, allocations: 36.14 kB / 381.2 MB, free: 10.21 MB / 330.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.0005325/0.4941, allocations: 352.2 kB / 381.6 MB, free: 9.828 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001993/0.4961, allocations: 0.5445 MB / 382.1 MB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.4963, allocations: 39.62 kB / 382.2 MB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.4964, allocations: 25.95 kB / 382.2 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.4965, allocations: 4 kB / 382.2 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4965, allocations: 4.062 kB / 382.2 MB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4965, allocations: 4 kB / 382.2 MB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.4981, allocations: 0.6393 MB / 382.8 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.4981, allocations: 0 / 382.8 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.297e-05/0.4982, allocations: 8.297 kB / 382.9 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.667e-06/0.4982, allocations: 0 / 382.9 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.823e-05/0.4983, allocations: 16 kB / 382.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.677e-06/0.4983, allocations: 11.98 kB / 382.9 MB, free: 8.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/0.4984, allocations: 4 kB / 382.9 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002138/0.5005, allocations: 0.6927 MB / 383.6 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.5007, allocations: 108.7 kB / 383.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00021/0.5009, allocations: 31.94 kB / 383.7 MB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.5015, allocations: 23.98 kB / 383.7 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.5016, allocations: 23.97 kB / 383.8 MB, free: 7.547 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.5018, allocations: 27.98 kB / 383.8 MB, free: 7.52 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004224/0.5022, allocations: 190 kB / 384 MB, free: 7.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.5023, allocations: 3.938 kB / 384 MB, free: 7.328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001377/0.5036, allocations: 167.9 kB / 384.1 MB, free: 7.164 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.003708/0.5074, allocations: 1.555 MB / 385.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.5094, allocations: 0.9353 MB / 386.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5095, allocations: 0 / 386.6 MB, free: 4.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/0.5105, allocations: 0.5828 MB / 387.2 MB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005764/0.5111, allocations: 28.94 kB / 387.2 MB, free: 3.82 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002643/0.5138, allocations: 0.6391 MB / 387.9 MB, free: 3.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.5145, allocations: 0.7835 MB / 388.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000207/0.5147, allocations: 75.42 kB / 388.7 MB, free: 2.242 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5147, allocations: 0 / 388.7 MB, free: 2.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.744/3.259, allocations: 5.719 MB / 394.5 MB, free: 12.52 MB / 346.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