Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.745/1.745, allocations: 171.2 MB / 178.4 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.477e-05, allocations: 4 kB / 219.6 MB, free: 6.953 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2572, allocations: 38.77 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.4009, allocations: 65.44 MB / 323.8 MB, free: 12.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.4013, allocations: 67.97 kB / 323.8 MB, free: 12.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01461/0.4159, allocations: 2.908 MB / 326.8 MB, free: 9.344 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4159, allocations: 0 / 326.8 MB, free: 9.344 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.416, allocations: 4.875 kB / 326.8 MB, free: 9.34 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.0007346/0.4167, allocations: 447.3 kB / 327.2 MB, free: 8.859 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.4168, allocations: 16.03 kB / 327.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.158e-05/0.4169, allocations: 23.72 kB / 327.2 MB, free: 8.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.4172, allocations: 218.8 kB / 327.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.4173, allocations: 12 kB / 327.5 MB, free: 8.555 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.326e-05/0.4173, allocations: 16 kB / 327.5 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004444/0.4178, allocations: 149 kB / 327.6 MB, free: 8.395 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005191/0.4183, allocations: 224.9 kB / 327.8 MB, free: 8.148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4184, allocations: 4 kB / 327.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.746e-05/0.4184, allocations: 0 / 327.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.4184, allocations: 8 kB / 327.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.4199, allocations: 0.8895 MB / 328.7 MB, free: 7.188 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.4203, allocations: 143.2 kB / 328.9 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.4204, allocations: 65.23 kB / 328.9 MB, free: 6.973 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.4205, allocations: 4.172 kB / 328.9 MB, free: 6.969 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002397/0.4207, allocations: 107.5 kB / 329.1 MB, free: 6.852 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 3.035e-06/0.4208, allocations: 0 / 329.1 MB, free: 6.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004162/0.4212, allocations: 149.3 kB / 329.2 MB, free: 6.699 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.208e-05/0.4213, allocations: 63.39 kB / 329.3 MB, free: 6.625 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.4214, allocations: 138.3 kB / 329.4 MB, free: 6.484 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.311e-05/0.4215, allocations: 33.7 kB / 329.4 MB, free: 6.445 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.4216, allocations: 148.1 kB / 329.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.787e-05/0.4217, allocations: 51.34 kB / 329.6 MB, free: 6.242 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.41e-05/0.4217, allocations: 0 / 329.6 MB, free: 6.242 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4219, allocations: 322.8 kB / 329.9 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001556/0.422, allocations: 56.66 kB / 330 MB, free: 5.859 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.4223, allocations: 125.5 kB / 330.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.4225, allocations: 67.84 kB / 330.2 MB, free: 5.641 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.4225, allocations: 0 / 330.2 MB, free: 5.641 MB / 282.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000503/0.423, allocations: 213.3 kB / 330.4 MB, free: 5.426 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.423, allocations: 4 kB / 330.4 MB, free: 5.422 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.423, allocations: 4.281 kB / 330.4 MB, free: 5.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.4231, allocations: 8 kB / 330.4 MB, free: 5.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00026/0.4233, allocations: 35.91 kB / 330.4 MB, free: 5.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4234, allocations: 7.938 kB / 330.4 MB, free: 5.367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000152/0.4235, allocations: 15.86 kB / 330.5 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.366e-05/0.4236, allocations: 16 kB / 330.5 MB, free: 5.336 MB / 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.0001271/0.4237, allocations: 124 kB / 330.6 MB, free: 5.207 MB / 282.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003398/0.4241, allocations: 145.3 kB / 330.7 MB, free: 5.059 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.529e-05/0.4241, allocations: 15.89 kB / 330.8 MB, free: 5.043 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000466/0.4246, allocations: 174.2 kB / 330.9 MB, free: 4.871 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.4246, allocations: 7.984 kB / 330.9 MB, free: 4.863 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.4247, allocations: 3.953 kB / 330.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.4247, allocations: 0 / 330.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.4257, allocations: 0.5139 MB / 331.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.4257, allocations: 0 / 331.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.4258, allocations: 23.98 kB / 331.5 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.215e-06/0.4259, allocations: 7.891 kB / 331.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.4259, allocations: 0 / 331.5 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.4259, allocations: 4 kB / 331.5 MB, free: 4.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.4259, allocations: 3.938 kB / 331.5 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004189/0.4263, allocations: 247.3 kB / 331.7 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.4264, allocations: 88.92 kB / 331.8 MB, free: 3.895 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.4265, allocations: 7.953 kB / 331.8 MB, free: 3.887 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.4266, allocations: 11.98 kB / 331.8 MB, free: 3.875 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.341e-05/0.4267, allocations: 19.97 kB / 331.9 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.512e-05/0.4268, allocations: 8 kB / 331.9 MB, free: 3.848 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.971e-05/0.4268, allocations: 100.8 kB / 332 MB, free: 3.75 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4269, allocations: 0 / 332 MB, free: 3.75 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004688/0.4273, allocations: 28 kB / 332 MB, free: 3.723 MB / 282.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.0008068/0.4282, allocations: 0.8065 MB / 332.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004178/0.4286, allocations: 155.8 kB / 333 MB, free: 2.734 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4286, allocations: 0 / 333 MB, free: 2.734 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001738/0.4288, allocations: 71.94 kB / 333 MB, free: 2.664 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.4291, allocations: 31.97 kB / 333.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009034/0.43, allocations: 275 kB / 333.3 MB, free: 2.332 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.4304, allocations: 0.74 MB / 334.1 MB, free: 1.566 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.4306, allocations: 26.08 kB / 334.1 MB, free: 1.543 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.4307, allocations: 63.41 kB / 334.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4307, allocations: 0 / 334.1 MB, free: 1.48 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04495/0.4757, allocations: 3.038 MB / 337.2 MB, free: 14.46 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002871/0.4761, allocations: 145.3 kB / 337.3 MB, free: 14.26 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/2.837, allocations: 0 / 337.3 MB, free: 14.26 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat