Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample_Variant3",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.653/1.653, allocations: 194.9 MB / 202.6 MB, free: 6.855 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2083/1.861, allocations: 46.82 MB / 249.4 MB, free: 5.223 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08821/1.95, allocations: 44.51 MB / 293.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2683/2.218, allocations: 70.69 MB / 364.6 MB, free: 7.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/2.218, allocations: 65.12 kB / 364.7 MB, free: 7.07 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.01097/2.229, allocations: 2.99 MB / 367.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/2.229, allocations: 7.594 kB / 367.7 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.116e-05/2.229, allocations: 20.66 kB / 367.7 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002838/2.23, allocations: 229.2 kB / 367.9 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/2.23, allocations: 15.39 kB / 367.9 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/2.23, allocations: 20.97 kB / 367.9 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004376/2.23, allocations: 148.5 kB / 368.1 MB, free: 6.293 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004707/2.231, allocations: 231.2 kB / 368.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/2.231, allocations: 3.875 kB / 368.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/2.231, allocations: 1.125 kB / 368.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/2.231, allocations: 3.969 kB / 368.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001164/2.232, allocations: 0.884 MB / 369.2 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003083/2.232, allocations: 134.8 kB / 369.3 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/2.233, allocations: 61.89 kB / 369.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.538e-05/2.233, allocations: 7.688 kB / 369.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001934/2.233, allocations: 106.3 kB / 369.5 MB, free: 5.504 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.604e-06/2.233, allocations: 4 kB / 369.5 MB, free: 5.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003624/2.233, allocations: 135.5 kB / 369.6 MB, free: 5.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/2.233, allocations: 56.98 kB / 369.7 MB, free: 5.395 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/2.233, allocations: 142.6 kB / 369.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.418e-05/2.233, allocations: 25.7 kB / 369.9 MB, free: 5.262 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.156e-05/2.233, allocations: 138.1 kB / 370 MB, free: 5.152 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.506e-05/2.233, allocations: 53.95 kB / 370 MB, free: 5.121 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.484e-05/2.234, allocations: 0 / 370 MB, free: 5.121 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001673/2.234, allocations: 325.4 kB / 370.4 MB, free: 20.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/2.234, allocations: 56.14 kB / 370.4 MB, free: 20.8 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/2.234, allocations: 129.5 kB / 370.5 MB, free: 20.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/2.234, allocations: 62.73 kB / 370.6 MB, free: 20.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/2.234, allocations: 0 / 370.6 MB, free: 20.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000467/2.235, allocations: 213.9 kB / 370.8 MB, free: 20.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/2.235, allocations: 15.75 kB / 370.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/2.235, allocations: 1.734 kB / 370.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.178e-05/2.235, allocations: 3.969 kB / 370.8 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/2.235, allocations: 33.8 kB / 370.9 MB, free: 20.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/2.235, allocations: 9.172 kB / 370.9 MB, free: 20.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/2.235, allocations: 13 kB / 370.9 MB, free: 20.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.646e-05/2.235, allocations: 16.91 kB / 370.9 MB, free: 20.62 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.0001241/2.235, allocations: 134.3 kB / 371 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/2.235, allocations: 8.859 kB / 371 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004533/2.236, allocations: 166 kB / 371.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/2.236, allocations: 0 / 371.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/2.236, allocations: 0 / 371.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/2.236, allocations: 5.625 kB / 371.2 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009254/2.237, allocations: 0.5088 MB / 371.7 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/2.237, allocations: 3.844 kB / 371.7 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/2.237, allocations: 21.97 kB / 371.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/2.237, allocations: 3.938 kB / 371.7 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/2.237, allocations: 1.594 kB / 371.8 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/2.237, allocations: 0 / 371.8 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/2.237, allocations: 0 / 371.8 MB, free: 20.12 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003798/2.238, allocations: 242.2 kB / 372 MB, free: 19.98 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005331/2.238, allocations: 0.622 MB / 372.6 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.643e-05/2.238, allocations: 90.5 kB / 372.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.923e-05/2.238, allocations: 3.875 kB / 372.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/2.238, allocations: 5.438 kB / 372.7 MB, free: 19.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.003e-05/2.238, allocations: 24.03 kB / 372.7 MB, free: 19.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-05/2.239, allocations: 12.31 kB / 372.7 MB, free: 19.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.318e-05/2.239, allocations: 95.05 kB / 372.8 MB, free: 19.27 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001271/2.24, allocations: 31.12 kB / 372.9 MB, free: 19.27 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.0001825/2.24, allocations: 104.1 kB / 373 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003841/2.24, allocations: 164.6 kB / 373.1 MB, free: 19.17 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/2.24, allocations: 8.438 kB / 373.1 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/2.241, allocations: 72.95 kB / 373.2 MB, free: 19.16 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/2.241, allocations: 16.72 kB / 373.2 MB, free: 19.15 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006656/2.242, allocations: 217.5 kB / 373.4 MB, free: 19.05 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004529/2.242, allocations: 0.7634 MB / 374.2 MB, free: 18.34 MB / 314.7 MB Notification: Performance of SimCode: time 8.82e-07/2.242, allocations: 0 / 374.2 MB, free: 18.34 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat