Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.086/2.086, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.512e-05/3.532e-05, allocations: 0 / 255.5 MB, free: 2.641 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09905/0.09914, allocations: 44.5 MB / 300 MB, free: 6.086 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.5982, allocations: 71.44 MB / 371.4 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.5985, allocations: 67.41 kB / 371.5 MB, free: 21.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01308/0.6116, allocations: 2.925 MB / 374.4 MB, free: 21.05 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6116, allocations: 0 / 374.4 MB, free: 21.05 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.6117, allocations: 4.906 kB / 374.4 MB, free: 21.05 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.0007037/0.6124, allocations: 440.9 kB / 374.8 MB, free: 20.67 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.6125, allocations: 9.281 kB / 374.8 MB, free: 20.67 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.312e-05/0.6126, allocations: 58.69 kB / 374.9 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.982e-05/0.6127, allocations: 24.34 kB / 374.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002961/0.613, allocations: 233.4 kB / 375.2 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.613, allocations: 22.5 kB / 375.2 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.475e-05/0.6131, allocations: 24.47 kB / 375.2 MB, free: 20.41 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.6137, allocations: 264 kB / 375.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.6138, allocations: 1.125 kB / 375.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.347e-05/0.6138, allocations: 9.25 kB / 375.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.6138, allocations: 6 kB / 375.5 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.6143, allocations: 158.4 kB / 375.6 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.6158, allocations: 0.9489 MB / 376.6 MB, free: 19.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003812/0.6162, allocations: 148.5 kB / 376.7 MB, free: 19.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.6164, allocations: 72.45 kB / 376.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.6165, allocations: 2.656 kB / 376.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.6167, allocations: 114.7 kB / 376.9 MB, free: 19.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.577e-06/0.6168, allocations: 0 / 376.9 MB, free: 19.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004722/0.6172, allocations: 152.8 kB / 377.1 MB, free: 19.53 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.6173, allocations: 60.78 kB / 377.1 MB, free: 19.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.6175, allocations: 139.3 kB / 377.2 MB, free: 19.37 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.408e-05/0.6175, allocations: 38.11 kB / 377.3 MB, free: 19.34 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.275e-05/0.6176, allocations: 137.7 kB / 377.4 MB, free: 19.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.6177, allocations: 60.19 kB / 377.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.786e-05/0.6177, allocations: 5.156 kB / 377.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.592e-05/0.6178, allocations: 328.2 kB / 377.8 MB, free: 18.89 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.618, allocations: 56.09 kB / 377.9 MB, free: 18.88 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.6182, allocations: 131.5 kB / 378 MB, free: 18.8 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.6184, allocations: 64.91 kB / 378.1 MB, free: 18.8 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.6184, allocations: 4.969 kB / 378.1 MB, free: 18.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005768/0.619, allocations: 248.9 kB / 378.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.6191, allocations: 8.281 kB / 378.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.6191, allocations: 2.281 kB / 378.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.6191, allocations: 4.688 kB / 378.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.6194, allocations: 33.77 kB / 378.3 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.6195, allocations: 5.594 kB / 378.4 MB, free: 18.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001941/0.6197, allocations: 26.56 kB / 378.4 MB, free: 18.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/0.6197, allocations: 16.95 kB / 378.4 MB, free: 18.7 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.0001186/0.6199, allocations: 129.7 kB / 378.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.882e-05/0.6199, allocations: 18.23 kB / 378.5 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005002/0.6204, allocations: 181 kB / 378.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.705e-06/0.6205, allocations: 7.453 kB / 378.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.6205, allocations: 0 / 378.7 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.6205, allocations: 6.344 kB / 378.7 MB, free: 18.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.6216, allocations: 0.5843 MB / 379.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.6216, allocations: 0.9375 kB / 379.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.6218, allocations: 17.17 kB / 379.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.6218, allocations: 1.219 kB / 379.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.6218, allocations: 6.141 kB / 379.3 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.762e-06/0.6219, allocations: 5.438 kB / 379.3 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.6219, allocations: 4.797 kB / 379.3 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004338/0.6223, allocations: 274.1 kB / 379.6 MB, free: 18.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.6224, allocations: 89.8 kB / 379.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.6224, allocations: 4.031 kB / 379.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.6226, allocations: 7.969 kB / 379.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.6227, allocations: 22.31 kB / 379.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.6228, allocations: 7 kB / 379.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.556e-05/0.6228, allocations: 102.2 kB / 379.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.6229, allocations: 0 / 379.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005468/0.6234, allocations: 44.47 kB / 379.9 MB, free: 17.84 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.000749/0.6242, allocations: 0.8112 MB / 380.7 MB, free: 17.16 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005148/0.6247, allocations: 172.6 kB / 380.9 MB, free: 17.15 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6248, allocations: 0 / 380.9 MB, free: 17.15 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002064/0.625, allocations: 78.52 kB / 380.9 MB, free: 17.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.6253, allocations: 17.73 kB / 381 MB, free: 17.14 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.6264, allocations: 295.5 kB / 381.3 MB, free: 16.99 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007794/0.6272, allocations: 0.7433 MB / 382 MB, free: 32.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001898/0.6274, allocations: 20.06 kB / 382 MB, free: 32.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.6276, allocations: 61.44 kB / 382.1 MB, free: 32.28 MB / 330.7 MB Notification: Performance of SimCode: time 1.683e-06/0.6276, allocations: 4 kB / 382.1 MB, free: 32.27 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02972/0.6573, allocations: 3.328 MB / 385.4 MB, free: 31.86 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/0.6577, allocations: 156.7 kB / 385.6 MB, free: 31.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.676/3.334, allocations: 0 / 385.6 MB, free: 31.63 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat