Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.23e-05/3.245e-05, allocations: 0 / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.0941, allocations: 44.51 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.43/0.5241, allocations: 71.42 MB / 371.3 MB, free: 21.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/0.5244, allocations: 63.94 kB / 371.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01245/0.5369, allocations: 2.937 MB / 374.3 MB, free: 20.6 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.537, allocations: 1.406 kB / 374.3 MB, free: 20.6 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.939e-05/0.537, allocations: 5.547 kB / 374.3 MB, free: 20.6 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.0006525/0.5377, allocations: 453.8 kB / 374.8 MB, free: 20.21 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5377, allocations: 9.469 kB / 374.8 MB, free: 20.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.849e-05/0.5378, allocations: 62.78 kB / 374.9 MB, free: 20.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/0.5379, allocations: 18.53 kB / 374.9 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.5382, allocations: 233.4 kB / 375.1 MB, free: 19.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.5382, allocations: 24.66 kB / 375.1 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.766e-05/0.5383, allocations: 28.16 kB / 375.2 MB, free: 19.94 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005912/0.5389, allocations: 261.8 kB / 375.4 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.5389, allocations: 1.094 kB / 375.4 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.374e-05/0.539, allocations: 12.5 kB / 375.4 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.539, allocations: 10.33 kB / 375.4 MB, free: 19.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.5395, allocations: 162.2 kB / 375.6 MB, free: 19.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.542, allocations: 0.9462 MB / 376.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005323/0.5426, allocations: 155.2 kB / 376.7 MB, free: 19.17 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.5429, allocations: 69.55 kB / 376.8 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.058e-05/0.5429, allocations: 6.812 kB / 376.8 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003573/0.5433, allocations: 114.4 kB / 376.9 MB, free: 19.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.019e-05/0.5433, allocations: 3.984 kB / 376.9 MB, free: 19.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009917/0.5444, allocations: 157.6 kB / 377 MB, free: 19.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.582e-05/0.5445, allocations: 57.39 kB / 377.1 MB, free: 19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004039/0.5449, allocations: 144.1 kB / 377.2 MB, free: 18.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001138/0.545, allocations: 37.44 kB / 377.3 MB, free: 18.87 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.5452, allocations: 217.3 kB / 377.5 MB, free: 18.69 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.565e-05/0.5453, allocations: 57.3 kB / 377.5 MB, free: 18.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/0.5454, allocations: 8.562 kB / 377.5 MB, free: 18.65 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.425e-05/0.5455, allocations: 327.2 kB / 377.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.5457, allocations: 59.28 kB / 377.9 MB, free: 18.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003138/0.5461, allocations: 131 kB / 378.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.5464, allocations: 66.69 kB / 378.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.359e-05/0.5464, allocations: 0.8438 kB / 378.1 MB, free: 18.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0008805/0.5473, allocations: 249.9 kB / 378.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/0.5474, allocations: 6.812 kB / 378.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.771e-05/0.5474, allocations: 3.062 kB / 378.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.173e-05/0.5475, allocations: 4.5 kB / 378.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005565/0.5481, allocations: 32.94 kB / 378.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.16e-05/0.5482, allocations: 12.53 kB / 378.4 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.5487, allocations: 17.47 kB / 378.4 MB, free: 18.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.886e-05/0.5488, allocations: 14.03 kB / 378.4 MB, free: 18.17 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,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.0001557/0.5489, allocations: 130.9 kB / 378.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.549, allocations: 21.16 kB / 378.6 MB, free: 18.04 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006978/0.5497, allocations: 182.8 kB / 378.8 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.5498, allocations: 3.156 kB / 378.8 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.5498, allocations: 12.94 kB / 378.8 MB, free: 17.99 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.5498, allocations: 1.734 kB / 378.8 MB, free: 17.99 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002204/0.552, allocations: 0.5764 MB / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5521, allocations: 0 / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001899/0.5523, allocations: 20.41 kB / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.086e-05/0.5523, allocations: 2.625 kB / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.5524, allocations: 6.062 kB / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.5524, allocations: 5.156 kB / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5524, allocations: 0 / 379.4 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.553, allocations: 275.8 kB / 379.7 MB, free: 17.48 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.946e-05/0.5531, allocations: 87.38 kB / 379.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.621e-05/0.5532, allocations: 4.688 kB / 379.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.5534, allocations: 10 kB / 379.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.5536, allocations: 23.27 kB / 379.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.5536, allocations: 8.469 kB / 379.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001072/0.5537, allocations: 110.3 kB / 379.9 MB, free: 17.3 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5537, allocations: 0 / 379.9 MB, free: 17.3 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001858/0.5556, allocations: 44.31 kB / 380 MB, free: 17.3 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,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.001021/0.5567, allocations: 0.8134 MB / 380.8 MB, free: 16.62 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007069/0.5574, allocations: 172.9 kB / 380.9 MB, free: 16.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.5574, allocations: 0 / 380.9 MB, free: 16.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003067/0.5578, allocations: 81.95 kB / 381 MB, free: 16.6 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.5591, allocations: 20 kB / 381 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.5606, allocations: 311.7 kB / 381.3 MB, free: 16.42 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009393/0.5616, allocations: 0.74 MB / 382.1 MB, free: 31.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004606/0.5621, allocations: 63.33 kB / 382.1 MB, free: 31.71 MB / 330.7 MB Notification: Performance of SimCode: time 1.663e-06/0.5621, allocations: 1.219 kB / 382.1 MB, free: 31.71 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.93/3.492, allocations: 3.051 MB / 385.2 MB, free: 31.42 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat