Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.884e-05/3.897e-05, allocations: 2.031 kB / 292.2 MB, free: 8.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.134, allocations: 50.42 MB / 342.6 MB, free: 5.824 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4224/0.5564, allocations: 76.86 MB / 419.5 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.5567, allocations: 62.34 kB / 419.6 MB, free: 0.957 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01196/0.5687, allocations: 3.057 MB / 422.6 MB, free: 14.3 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.627e-06/0.5687, allocations: 0 / 422.6 MB, free: 14.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.611e-05/0.5688, allocations: 7.938 kB / 422.6 MB, free: 14.29 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007012/0.5695, allocations: 444.5 kB / 423.1 MB, free: 13.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.5695, allocations: 8.031 kB / 423.1 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.897e-05/0.5696, allocations: 60.22 kB / 423.1 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.488e-05/0.5697, allocations: 27.72 kB / 423.1 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.5701, allocations: 229.2 kB / 423.4 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/0.5701, allocations: 23.38 kB / 423.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.439e-05/0.5702, allocations: 31.81 kB / 423.4 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005992/0.5708, allocations: 268.7 kB / 423.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.5708, allocations: 0 / 423.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.5709, allocations: 10.12 kB / 423.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.5709, allocations: 8 kB / 423.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.5713, allocations: 156.8 kB / 423.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001573/0.5729, allocations: 0.955 MB / 424.8 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003812/0.5733, allocations: 164.5 kB / 425 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001783/0.5735, allocations: 80.19 kB / 425.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.579e-05/0.5736, allocations: 7.562 kB / 425.1 MB, free: 12.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002866/0.5739, allocations: 136.8 kB / 425.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 3.236e-06/0.5739, allocations: 0 / 425.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004867/0.5744, allocations: 166.2 kB / 425.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/0.5745, allocations: 81.11 kB / 425.4 MB, free: 11.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.5746, allocations: 143.5 kB / 425.6 MB, free: 11.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.083e-05/0.5747, allocations: 48.56 kB / 425.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.5748, allocations: 134.8 kB / 425.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.463e-05/0.5749, allocations: 60.62 kB / 425.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.017e-05/0.5749, allocations: 14.66 kB / 425.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.5751, allocations: 329.7 kB / 426.2 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.5753, allocations: 56.06 kB / 426.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.5755, allocations: 128.5 kB / 426.3 MB, free: 10.83 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.5757, allocations: 76.69 kB / 426.4 MB, free: 10.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.5757, allocations: 0 / 426.4 MB, free: 10.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005608/0.5763, allocations: 240.2 kB / 426.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.5764, allocations: 4 kB / 426.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.5764, allocations: 4 kB / 426.6 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.5764, allocations: 7.938 kB / 426.7 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.5767, allocations: 47.67 kB / 426.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.5767, allocations: 4 kB / 426.7 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.5769, allocations: 16 kB / 426.7 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.5769, allocations: 19.69 kB / 426.7 MB, free: 10.48 MB / 346.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: 32 ($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,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001372/0.5771, allocations: 134.4 kB / 426.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.173e-05/0.5771, allocations: 7.906 kB / 426.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004779/0.5776, allocations: 192.7 kB / 427.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.5776, allocations: 4 kB / 427.1 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.5777, allocations: 3.953 kB / 427.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5777, allocations: 0 / 427.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.5787, allocations: 0.5865 MB / 427.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.5788, allocations: 0 / 427.7 MB, free: 9.625 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.5789, allocations: 15.98 kB / 427.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.227e-06/0.5789, allocations: 3.953 kB / 427.7 MB, free: 9.605 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.5789, allocations: 7.875 kB / 427.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.579, allocations: 0 / 427.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.579, allocations: 0 / 427.7 MB, free: 9.602 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.5794, allocations: 296.7 kB / 428 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.447e-05/0.5795, allocations: 96.34 kB / 428.1 MB, free: 9.211 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.713e-05/0.5796, allocations: 3.984 kB / 428.1 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.5797, allocations: 7.562 kB / 428.1 MB, free: 9.203 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.95e-05/0.5798, allocations: 23.66 kB / 428.1 MB, free: 9.184 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.576e-05/0.5799, allocations: 15.48 kB / 428.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.994e-05/0.5799, allocations: 91.09 kB / 428.2 MB, free: 9.086 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.58, allocations: 0 / 428.2 MB, free: 9.086 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00045/0.5804, allocations: 46.06 kB / 428.3 MB, free: 9.051 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000954/0.5814, allocations: 0.913 MB / 429.2 MB, free: 8.148 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006289/0.582, allocations: 175.1 kB / 429.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.5821, allocations: 0 / 429.3 MB, free: 8.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000282/0.5824, allocations: 82.73 kB / 429.4 MB, free: 7.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.5828, allocations: 27.17 kB / 429.4 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.5841, allocations: 301.1 kB / 429.7 MB, free: 7.645 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005152/0.5846, allocations: 0.7404 MB / 430.5 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.5848, allocations: 26.06 kB / 430.5 MB, free: 6.855 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001883/0.585, allocations: 61.11 kB / 430.6 MB, free: 6.828 MB / 346.7 MB Notification: Performance of SimCode: time 1.193e-06/0.585, allocations: 0 / 430.6 MB, free: 6.828 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08025/0.6653, allocations: 3.389 MB / 434 MB, free: 3.516 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002735/0.6656, allocations: 155.1 kB / 434.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.433/3.099, allocations: 0 / 434.1 MB, free: 3.293 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat