Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.075/2.075, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.726e-05/3.741e-05, allocations: 8 kB / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3544/0.3545, allocations: 44.49 MB / 294.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1297/0.4843, allocations: 70.77 MB / 365 MB, free: 11.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.4846, allocations: 59.97 kB / 365 MB, free: 11.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01183/0.4964, allocations: 2.881 MB / 367.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4965, allocations: 0 / 367.9 MB, free: 8.262 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.4965, allocations: 4 kB / 367.9 MB, free: 8.258 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0006913/0.4972, allocations: 435.4 kB / 368.3 MB, free: 7.789 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.4973, allocations: 12.03 kB / 368.3 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.4974, allocations: 23.75 kB / 368.4 MB, free: 7.754 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.4977, allocations: 235.1 kB / 368.6 MB, free: 7.484 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.4978, allocations: 8 kB / 368.6 MB, free: 7.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.271e-05/0.4978, allocations: 20 kB / 368.6 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004634/0.4983, allocations: 145.1 kB / 368.8 MB, free: 7.312 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005189/0.4988, allocations: 228.9 kB / 369 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.4989, allocations: 0 / 369 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.733e-05/0.4989, allocations: 0 / 369 MB, free: 7.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.4989, allocations: 4 kB / 369 MB, free: 7.066 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001518/0.5005, allocations: 0.8974 MB / 369.9 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003534/0.5009, allocations: 135.9 kB / 370 MB, free: 5.969 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.501, allocations: 77.19 kB / 370.1 MB, free: 5.891 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.5011, allocations: 8.188 kB / 370.1 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.5013, allocations: 107.5 kB / 370.2 MB, free: 5.766 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.136e-06/0.5014, allocations: 0 / 370.2 MB, free: 5.766 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004739/0.5018, allocations: 145.3 kB / 370.4 MB, free: 5.617 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.5019, allocations: 55.41 kB / 370.4 MB, free: 5.551 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001915/0.5021, allocations: 146.7 kB / 370.5 MB, free: 5.402 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.5022, allocations: 29.64 kB / 370.6 MB, free: 5.367 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.5023, allocations: 210.8 kB / 370.8 MB, free: 5.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/0.5024, allocations: 51.34 kB / 370.8 MB, free: 5.109 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.375e-05/0.5024, allocations: 0 / 370.8 MB, free: 5.109 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.5026, allocations: 322.8 kB / 371.1 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.5028, allocations: 48.66 kB / 371.2 MB, free: 4.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.503, allocations: 131.1 kB / 371.3 MB, free: 4.578 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.5032, allocations: 67.83 kB / 371.4 MB, free: 4.512 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.5032, allocations: 0 / 371.4 MB, free: 4.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005502/0.5038, allocations: 213.3 kB / 371.6 MB, free: 4.297 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.5038, allocations: 8 kB / 371.6 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5039, allocations: 3.953 kB / 371.6 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.53e-05/0.5039, allocations: 4 kB / 371.6 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.5042, allocations: 39.86 kB / 371.7 MB, free: 4.242 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.5042, allocations: 7.984 kB / 371.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001807/0.5044, allocations: 16.12 kB / 371.7 MB, free: 4.219 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.5045, allocations: 12 kB / 371.7 MB, free: 4.207 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.0001435/0.5046, allocations: 127.8 kB / 371.8 MB, free: 4.074 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003745/0.505, allocations: 141.4 kB / 372 MB, free: 3.93 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.505, allocations: 15.77 kB / 372 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004892/0.5055, allocations: 174.2 kB / 372.1 MB, free: 3.734 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.5056, allocations: 4 kB / 372.1 MB, free: 3.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.5056, allocations: 4 kB / 372.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.5056, allocations: 0 / 372.1 MB, free: 3.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.5067, allocations: 0.5257 MB / 372.7 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.5067, allocations: 0 / 372.7 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.5068, allocations: 19.98 kB / 372.7 MB, free: 3.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.253e-06/0.5069, allocations: 0 / 372.7 MB, free: 3.133 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.5069, allocations: 4 kB / 372.7 MB, free: 3.129 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.5069, allocations: 4 kB / 372.7 MB, free: 3.125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.5069, allocations: 7.938 kB / 372.7 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004786/0.5074, allocations: 247.3 kB / 372.9 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.003e-05/0.5075, allocations: 96.84 kB / 373 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.866e-05/0.5075, allocations: 4 kB / 373 MB, free: 2.742 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.5077, allocations: 4 kB / 373 MB, free: 2.738 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.5078, allocations: 23.89 kB / 373.1 MB, free: 2.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.5079, allocations: 12 kB / 373.1 MB, free: 2.703 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.154e-05/0.508, allocations: 92.41 kB / 373.2 MB, free: 2.613 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.508, allocations: 0 / 373.2 MB, free: 2.613 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000472/0.5084, allocations: 39.92 kB / 373.2 MB, free: 2.574 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008695/0.5093, allocations: 0.7864 MB / 374 MB, free: 1.762 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004554/0.5098, allocations: 160.5 kB / 374.2 MB, free: 1.605 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5098, allocations: 0 / 374.2 MB, free: 1.605 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001757/0.51, allocations: 67.94 kB / 374.2 MB, free: 1.539 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.5103, allocations: 19.92 kB / 374.2 MB, free: 1.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009574/0.5113, allocations: 285.1 kB / 374.5 MB, free: 1.191 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.5117, allocations: 0.7406 MB / 375.3 MB, free: 436 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.5119, allocations: 63.41 kB / 375.3 MB, free: 372 kB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5119, allocations: 0 / 375.3 MB, free: 372 kB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.688/3.2, allocations: 3.016 MB / 378.3 MB, free: 13.35 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat