Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.853/1.853, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.402e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.281, allocations: 38.78 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.4165, allocations: 66.11 MB / 330 MB, free: 7.652 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.4168, allocations: 71.95 kB / 330 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01203/0.4289, allocations: 2.93 MB / 333 MB, free: 4.629 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4289, allocations: 4 kB / 333 MB, free: 4.625 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.7e-05/0.429, allocations: 8.875 kB / 333 MB, free: 4.617 MB / 282.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.0007316/0.4297, allocations: 447 kB / 333.4 MB, free: 4.133 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.4298, allocations: 8.031 kB / 333.4 MB, free: 4.125 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.628e-05/0.4299, allocations: 62.53 kB / 333.5 MB, free: 4.055 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.138e-05/0.4299, allocations: 23.72 kB / 333.5 MB, free: 4.031 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003298/0.4303, allocations: 222.8 kB / 333.7 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.765e-05/0.4303, allocations: 20.56 kB / 333.7 MB, free: 3.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.871e-05/0.4304, allocations: 31.98 kB / 333.8 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.431, allocations: 264.8 kB / 334 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.4311, allocations: 0 / 334 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.4311, allocations: 8 kB / 334 MB, free: 3.434 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4311, allocations: 4 kB / 334 MB, free: 3.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004675/0.4316, allocations: 164.8 kB / 334.2 MB, free: 3.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.4333, allocations: 0.9523 MB / 335.2 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.4337, allocations: 151.1 kB / 335.3 MB, free: 2.086 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.4339, allocations: 77.22 kB / 335.4 MB, free: 2.008 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.434, allocations: 4.188 kB / 335.4 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002874/0.4343, allocations: 111.4 kB / 335.5 MB, free: 1.883 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.186e-06/0.4343, allocations: 0 / 335.5 MB, free: 1.883 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004884/0.4348, allocations: 161.4 kB / 335.7 MB, free: 1.719 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.4349, allocations: 63.38 kB / 335.7 MB, free: 1.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.4351, allocations: 143.3 kB / 335.9 MB, free: 1.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.745e-05/0.4351, allocations: 37.7 kB / 335.9 MB, free: 1.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001447/0.4353, allocations: 210.6 kB / 336.1 MB, free: 1.25 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.948e-05/0.4354, allocations: 55.34 kB / 336.1 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.4354, allocations: 8 kB / 336.2 MB, free: 1.188 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4356, allocations: 326.8 kB / 336.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.4358, allocations: 60.64 kB / 336.5 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.436, allocations: 133.5 kB / 336.7 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.4363, allocations: 67.95 kB / 336.7 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.4363, allocations: 8 kB / 336.7 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006093/0.4369, allocations: 229.2 kB / 337 MB, free: 340 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.4369, allocations: 8 kB / 337 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.437, allocations: 0 / 337 MB, free: 332 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.437, allocations: 4 kB / 337 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002606/0.4373, allocations: 39.88 kB / 337 MB, free: 288 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.4373, allocations: 8.266 kB / 337 MB, free: 280 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.4375, allocations: 23.84 kB / 337 MB, free: 256 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.4375, allocations: 12 kB / 337.1 MB, free: 244 kB / 282.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,greaterEqual.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.0001411/0.4377, allocations: 132 kB / 337.2 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/0.4377, allocations: 7.906 kB / 337.2 MB, free: 96 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005376/0.4383, allocations: 190.4 kB / 337.4 MB, free: 15.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4383, allocations: 4 kB / 337.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4383, allocations: 7.953 kB / 337.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.4383, allocations: 0 / 337.4 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.4394, allocations: 0.5758 MB / 338 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4395, allocations: 0 / 338 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.4396, allocations: 15.94 kB / 338 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.4396, allocations: 3.953 kB / 338 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.4397, allocations: 11.94 kB / 338 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.812e-06/0.4397, allocations: 7.984 kB / 338 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4397, allocations: 3.938 kB / 338 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004599/0.4402, allocations: 263.7 kB / 338.3 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.859e-05/0.4403, allocations: 88.92 kB / 338.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.262e-05/0.4403, allocations: 15.94 kB / 338.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.4405, allocations: 8 kB / 338.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.4406, allocations: 23.95 kB / 338.4 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.652e-05/0.4406, allocations: 12 kB / 338.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.755e-05/0.4407, allocations: 106.3 kB / 338.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.465e-06/0.4408, allocations: 0 / 338.5 MB, free: 14.67 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004569/0.4412, allocations: 43.94 kB / 338.6 MB, free: 14.63 MB / 298.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,greaterEqual.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.0008792/0.4421, allocations: 0.8096 MB / 339.4 MB, free: 13.79 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005006/0.4426, allocations: 171.8 kB / 339.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.4427, allocations: 0 / 339.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.4429, allocations: 79.92 kB / 339.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000296/0.4432, allocations: 15.95 kB / 339.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009951/0.4442, allocations: 313.7 kB / 339.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.4446, allocations: 0.7447 MB / 340.7 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001653/0.4448, allocations: 59.41 kB / 340.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of SimCode: time 1.303e-06/0.4448, allocations: 0 / 340.7 MB, free: 12.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.625/3.07, allocations: 3.05 MB / 343.8 MB, free: 9.305 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat