Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.096/2.096, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.69e-05/3.695e-05, allocations: 11.98 kB / 255.5 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 44.49 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3958/0.5109, allocations: 71.45 MB / 371.4 MB, free: 21.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.5113, allocations: 64.92 kB / 371.5 MB, free: 21.15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01391/0.5252, allocations: 2.928 MB / 374.4 MB, free: 20.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.5253, allocations: 1.344 kB / 374.4 MB, free: 20.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.366e-05/0.5253, allocations: 4.25 kB / 374.4 MB, free: 20.66 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.000735/0.5261, allocations: 438.5 kB / 374.8 MB, free: 20.29 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6e-05/0.5262, allocations: 9.688 kB / 374.8 MB, free: 20.29 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.546e-05/0.5263, allocations: 62.44 kB / 374.9 MB, free: 20.24 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.032e-05/0.5264, allocations: 19.09 kB / 374.9 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.5267, allocations: 231.6 kB / 375.1 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.756e-05/0.5267, allocations: 25.92 kB / 375.2 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.876e-05/0.5268, allocations: 24.41 kB / 375.2 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006549/0.5275, allocations: 260.1 kB / 375.4 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/0.5275, allocations: 1.125 kB / 375.4 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/0.5276, allocations: 9.406 kB / 375.4 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.5276, allocations: 5.875 kB / 375.4 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.5281, allocations: 161.6 kB / 375.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.5297, allocations: 0.9383 MB / 376.5 MB, free: 19.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004035/0.5302, allocations: 152.1 kB / 376.7 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001761/0.5303, allocations: 71.8 kB / 376.8 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.252e-05/0.5304, allocations: 6.766 kB / 376.8 MB, free: 19.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.5307, allocations: 108 kB / 376.9 MB, free: 19.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 4.288e-06/0.5307, allocations: 5.562 kB / 376.9 MB, free: 19.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005192/0.5312, allocations: 155.3 kB / 377 MB, free: 19.15 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/0.5313, allocations: 58.47 kB / 377.1 MB, free: 19.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.5315, allocations: 142.5 kB / 377.2 MB, free: 18.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.5316, allocations: 37.23 kB / 377.3 MB, free: 18.96 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.93e-05/0.5317, allocations: 202.7 kB / 377.5 MB, free: 18.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.738e-05/0.5317, allocations: 54.52 kB / 377.5 MB, free: 18.76 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.839e-05/0.5318, allocations: 8.344 kB / 377.5 MB, free: 18.76 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.346e-05/0.5319, allocations: 328.2 kB / 377.8 MB, free: 18.44 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.5321, allocations: 63.59 kB / 377.9 MB, free: 18.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.5323, allocations: 127.8 kB / 378 MB, free: 18.35 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.5325, allocations: 69.91 kB / 378.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.5325, allocations: 0 / 378.1 MB, free: 18.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005828/0.5331, allocations: 251.5 kB / 378.3 MB, free: 18.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.794e-05/0.5332, allocations: 7 kB / 378.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/0.5332, allocations: 2.344 kB / 378.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/0.5332, allocations: 4.438 kB / 378.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.5335, allocations: 32.58 kB / 378.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.5335, allocations: 7.281 kB / 378.4 MB, free: 18.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001918/0.5337, allocations: 24.66 kB / 378.4 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.5338, allocations: 13.22 kB / 378.4 MB, free: 18.26 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.0001243/0.5339, allocations: 134.6 kB / 378.6 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.413e-05/0.534, allocations: 20.66 kB / 378.6 MB, free: 18.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005056/0.5345, allocations: 184.6 kB / 378.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.5345, allocations: 2.344 kB / 378.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.5345, allocations: 1.438 kB / 378.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.5345, allocations: 2.109 kB / 378.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.5357, allocations: 0.5874 MB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.5358, allocations: 0 / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.536, allocations: 21.28 kB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-05/0.536, allocations: 1 kB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.536, allocations: 3.047 kB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.536, allocations: 1.156 kB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.536, allocations: 1.094 kB / 379.4 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004621/0.5365, allocations: 276.3 kB / 379.7 MB, free: 17.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.051e-05/0.5366, allocations: 85.2 kB / 379.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.349e-05/0.5366, allocations: 6.422 kB / 379.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.5368, allocations: 9.094 kB / 379.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001207/0.5369, allocations: 22.94 kB / 379.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.537, allocations: 6.016 kB / 379.8 MB, free: 17.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.389e-05/0.5371, allocations: 100.8 kB / 379.9 MB, free: 17.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5371, allocations: 0 / 379.9 MB, free: 17.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005679/0.5377, allocations: 41.69 kB / 379.9 MB, free: 17.4 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.0007759/0.5385, allocations: 0.8194 MB / 380.7 MB, free: 16.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000558/0.5391, allocations: 166.6 kB / 380.9 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.5391, allocations: 0.5625 kB / 380.9 MB, free: 16.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.5393, allocations: 78.64 kB / 381 MB, free: 16.7 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.5397, allocations: 20.08 kB / 381 MB, free: 16.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.5408, allocations: 314.7 kB / 381.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008794/0.5417, allocations: 0.734 MB / 382 MB, free: 31.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.5419, allocations: 65.91 kB / 382.1 MB, free: 31.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.583e-06/0.542, allocations: 0 / 382.1 MB, free: 31.8 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.589/3.131, allocations: 3.03 MB / 385.1 MB, free: 31.51 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat