Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="cs",version="2.0",platforms={"dynamic"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica): time 1.676/1.676, allocations: 194.9 MB / 202.6 MB, free: 6.895 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2334/1.91, allocations: 46.81 MB / 249.4 MB, free: 5.312 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/2, allocations: 44.5 MB / 293.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2704/2.271, allocations: 70.69 MB / 364.6 MB, free: 7.133 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/2.271, allocations: 63.48 kB / 364.6 MB, free: 7.133 MB / 298.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.01104/2.282, allocations: 3.018 MB / 367.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/2.282, allocations: 7.75 kB / 367.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.541e-05/2.282, allocations: 23.44 kB / 367.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/2.283, allocations: 218.5 kB / 367.9 MB, free: 6.359 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/2.283, allocations: 23.53 kB / 367.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/2.283, allocations: 15.62 kB / 367.9 MB, free: 6.348 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000435/2.283, allocations: 155.9 kB / 368.1 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/2.284, allocations: 221.2 kB / 368.3 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.576e-05/2.284, allocations: 3.875 kB / 368.3 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.937e-05/2.284, allocations: 0 / 368.3 MB, free: 6.266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/2.284, allocations: 7.844 kB / 368.3 MB, free: 6.262 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/2.285, allocations: 0.8865 MB / 369.2 MB, free: 5.648 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/2.285, allocations: 132.1 kB / 369.3 MB, free: 5.621 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/2.285, allocations: 73.31 kB / 369.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.127e-05/2.285, allocations: 7.859 kB / 369.4 MB, free: 5.605 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/2.286, allocations: 98.36 kB / 369.5 MB, free: 5.559 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/2.286, allocations: 0 / 369.5 MB, free: 5.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003759/2.286, allocations: 143.2 kB / 369.7 MB, free: 5.512 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/2.286, allocations: 56.56 kB / 369.7 MB, free: 5.449 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/2.286, allocations: 140.3 kB / 369.8 MB, free: 5.348 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/2.286, allocations: 35.08 kB / 369.9 MB, free: 5.312 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/2.286, allocations: 137.8 kB / 370 MB, free: 5.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/2.286, allocations: 59.09 kB / 370.1 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/2.286, allocations: 0 / 370.1 MB, free: 5.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/2.287, allocations: 323.4 kB / 370.4 MB, free: 20.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001558/2.287, allocations: 55.7 kB / 370.4 MB, free: 20.85 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000194/2.287, allocations: 131.8 kB / 370.6 MB, free: 20.77 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001636/2.287, allocations: 57.72 kB / 370.6 MB, free: 20.76 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/2.287, allocations: 4 kB / 370.6 MB, free: 20.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004921/2.288, allocations: 220.5 kB / 370.8 MB, free: 20.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/2.288, allocations: 7.656 kB / 370.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/2.288, allocations: 0 / 370.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/2.288, allocations: 7.812 kB / 370.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002304/2.288, allocations: 27.81 kB / 370.9 MB, free: 20.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/2.288, allocations: 9.875 kB / 370.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/2.288, allocations: 11.53 kB / 370.9 MB, free: 20.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/2.288, allocations: 16.94 kB / 370.9 MB, free: 20.68 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.0001272/2.288, allocations: 126.7 kB / 371.1 MB, free: 20.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.111e-05/2.288, allocations: 13 kB / 371.1 MB, free: 20.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004517/2.289, allocations: 169.4 kB / 371.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/2.289, allocations: 9.141 kB / 371.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/2.289, allocations: 3.938 kB / 371.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/2.289, allocations: 1.406 kB / 371.2 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009409/2.29, allocations: 0.5065 MB / 371.8 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/2.29, allocations: 0 / 371.8 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/2.29, allocations: 14.72 kB / 371.8 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/2.29, allocations: 4 kB / 371.8 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/2.29, allocations: 5.469 kB / 371.8 MB, free: 20.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/2.29, allocations: 7.781 kB / 371.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/2.29, allocations: 3.938 kB / 371.8 MB, free: 20.17 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003797/2.29, allocations: 239.5 kB / 372 MB, free: 20.03 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005255/2.291, allocations: 0.6158 MB / 372.6 MB, free: 19.51 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.812e-05/2.291, allocations: 88.83 kB / 372.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.212e-05/2.291, allocations: 4.672 kB / 372.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/2.291, allocations: 6.516 kB / 372.7 MB, free: 19.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.195e-05/2.291, allocations: 24.14 kB / 372.8 MB, free: 19.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/2.291, allocations: 7.219 kB / 372.8 MB, free: 19.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.355e-05/2.292, allocations: 96.28 kB / 372.9 MB, free: 19.33 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001365/2.293, allocations: 31.16 kB / 372.9 MB, free: 19.33 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.0001823/2.293, allocations: 115.9 kB / 373 MB, free: 19.23 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003922/2.294, allocations: 167.1 kB / 373.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/2.294, allocations: 3.875 kB / 373.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001633/2.294, allocations: 71.55 kB / 373.2 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/2.294, allocations: 15.17 kB / 373.3 MB, free: 19.21 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006926/2.295, allocations: 227.9 kB / 373.5 MB, free: 19.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/2.295, allocations: 0.7616 MB / 374.2 MB, free: 18.39 MB / 314.7 MB Notification: Performance of SimCode: time 7.11e-07/2.295, allocations: 3.969 kB / 374.2 MB, free: 18.39 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat