Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.075e-05/3.088e-05, allocations: 8 kB / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09775, allocations: 44.51 MB / 299.9 MB, free: 6.559 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4125/0.5104, allocations: 70.78 MB / 370.7 MB, free: 20.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.5107, allocations: 64.73 kB / 370.8 MB, free: 20.74 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01196/0.5226, allocations: 2.785 MB / 373.6 MB, free: 20.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5227, allocations: 0 / 373.6 MB, free: 20.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.5227, allocations: 8.562 kB / 373.6 MB, free: 20.26 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006896/0.5234, allocations: 431.6 kB / 374 MB, free: 19.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.5235, allocations: 9.938 kB / 374 MB, free: 19.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.836e-05/0.5236, allocations: 60.62 kB / 374.1 MB, free: 19.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.549e-05/0.5237, allocations: 23.47 kB / 374.1 MB, free: 19.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.524, allocations: 226.3 kB / 374.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.438e-05/0.524, allocations: 20.22 kB / 374.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.5241, allocations: 23.22 kB / 374.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005934/0.5247, allocations: 225.3 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.5247, allocations: 1.344 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.218e-05/0.5248, allocations: 8.938 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.5248, allocations: 5.312 kB / 374.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004533/0.5253, allocations: 163.8 kB / 374.7 MB, free: 19.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.5266, allocations: 0.6895 MB / 375.4 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004102/0.5271, allocations: 163.2 kB / 375.6 MB, free: 19.13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.5273, allocations: 78.28 kB / 375.7 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.5273, allocations: 3.656 kB / 375.7 MB, free: 19.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002571/0.5276, allocations: 114.8 kB / 375.8 MB, free: 19.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.765e-06/0.5276, allocations: 0 / 375.8 MB, free: 19.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004663/0.5281, allocations: 167.4 kB / 375.9 MB, free: 19.03 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.5281, allocations: 60.16 kB / 376 MB, free: 18.96 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.5283, allocations: 131 kB / 376.1 MB, free: 18.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.5283, allocations: 39.52 kB / 376.2 MB, free: 18.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.98e-05/0.5284, allocations: 195.3 kB / 376.4 MB, free: 18.66 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.026e-05/0.5285, allocations: 58.59 kB / 376.4 MB, free: 18.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.724e-05/0.5285, allocations: 9.062 kB / 376.4 MB, free: 18.62 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.897e-05/0.5286, allocations: 325.4 kB / 376.7 MB, free: 18.31 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.5288, allocations: 62.17 kB / 376.8 MB, free: 18.3 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.529, allocations: 119.9 kB / 376.9 MB, free: 18.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.5292, allocations: 67 kB / 377 MB, free: 18.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.5292, allocations: 1.188 kB / 377 MB, free: 18.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005296/0.5298, allocations: 237.7 kB / 377.2 MB, free: 18.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.5298, allocations: 10.75 kB / 377.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5298, allocations: 2.094 kB / 377.2 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.479e-05/0.5299, allocations: 12.08 kB / 377.2 MB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002394/0.5301, allocations: 36.81 kB / 377.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.5301, allocations: 3.062 kB / 377.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.5303, allocations: 21.05 kB / 377.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.225e-05/0.5304, allocations: 9.25 kB / 377.3 MB, free: 18.15 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000108/0.5305, allocations: 133.6 kB / 377.4 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.047e-05/0.5305, allocations: 14.19 kB / 377.5 MB, free: 18.03 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/0.531, allocations: 191 kB / 377.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.423e-06/0.5311, allocations: 2.625 kB / 377.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.5311, allocations: 3.953 kB / 377.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.5311, allocations: 2.562 kB / 377.6 MB, free: 17.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009975/0.5321, allocations: 0.5585 MB / 378.2 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.5321, allocations: 3.938 kB / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.5323, allocations: 20.41 kB / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.5323, allocations: 1.156 kB / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.5323, allocations: 6.719 kB / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.5323, allocations: 1.594 kB / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5323, allocations: 0 / 378.2 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004342/0.5328, allocations: 278.3 kB / 378.5 MB, free: 17.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.709e-05/0.5328, allocations: 92.77 kB / 378.6 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.5329, allocations: 12.86 kB / 378.6 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.533, allocations: 8.344 kB / 378.6 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.5331, allocations: 24 kB / 378.6 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.5332, allocations: 8.906 kB / 378.7 MB, free: 17.4 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.877e-05/0.5333, allocations: 92.67 kB / 378.7 MB, free: 17.33 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.654e-06/0.5333, allocations: 0 / 378.7 MB, free: 17.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004317/0.5337, allocations: 45.64 kB / 378.8 MB, free: 17.32 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.001187/0.5349, allocations: 0.8202 MB / 379.6 MB, free: 32.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.5354, allocations: 172 kB / 379.8 MB, free: 32.63 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5355, allocations: 1.375 kB / 379.8 MB, free: 32.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001966/0.5357, allocations: 85.59 kB / 379.9 MB, free: 32.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.536, allocations: 24.22 kB / 379.9 MB, free: 32.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009188/0.5369, allocations: 303.1 kB / 380.2 MB, free: 32.44 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.5373, allocations: 0.7328 MB / 380.9 MB, free: 31.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001473/0.5375, allocations: 62.3 kB / 381 MB, free: 31.73 MB / 330.7 MB Notification: Performance of SimCode: time 9.12e-07/0.5375, allocations: 3.938 kB / 381 MB, free: 31.73 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.474/3.012, allocations: 2.952 MB / 383.9 MB, free: 31.46 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat