Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_2_cs_Modelica_StateGraph_Examples_FirstExample",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.712/1.712, allocations: 194.9 MB / 202.6 MB, free: 6.887 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1953/1.907, allocations: 46.81 MB / 249.4 MB, free: 5.363 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08913/1.996, allocations: 44.51 MB / 293.9 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2835/2.28, allocations: 70.05 MB / 363.9 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/2.28, allocations: 66.06 kB / 364 MB, free: 7.09 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.01262/2.293, allocations: 2.851 MB / 366.9 MB, free: 6.535 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/2.293, allocations: 7.781 kB / 366.9 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.422e-05/2.293, allocations: 24.69 kB / 366.9 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/2.293, allocations: 229.9 kB / 367.1 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/2.293, allocations: 7.781 kB / 367.1 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.291e-05/2.293, allocations: 15.41 kB / 367.1 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000495/2.294, allocations: 144.1 kB / 367.3 MB, free: 6.312 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005194/2.294, allocations: 200.7 kB / 367.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/2.295, allocations: 1.875 kB / 367.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/2.295, allocations: 0 / 367.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/2.295, allocations: 7.562 kB / 367.5 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001241/2.296, allocations: 0.6288 MB / 368.1 MB, free: 5.891 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/2.296, allocations: 143 kB / 368.3 MB, free: 5.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/2.296, allocations: 70.75 kB / 368.3 MB, free: 5.859 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/2.296, allocations: 5.781 kB / 368.3 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/2.297, allocations: 107.7 kB / 368.4 MB, free: 5.805 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.945e-06/2.297, allocations: 0 / 368.4 MB, free: 5.805 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004345/2.297, allocations: 138.8 kB / 368.6 MB, free: 5.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/2.297, allocations: 56.64 kB / 368.6 MB, free: 5.699 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/2.297, allocations: 133.3 kB / 368.8 MB, free: 5.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/2.297, allocations: 34.36 kB / 368.8 MB, free: 5.562 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.817e-05/2.298, allocations: 124.2 kB / 368.9 MB, free: 5.461 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/2.298, allocations: 61.3 kB / 369 MB, free: 5.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.768e-05/2.298, allocations: 0 / 369 MB, free: 5.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/2.298, allocations: 331.7 kB / 369.3 MB, free: 21.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000176/2.298, allocations: 49.59 kB / 369.3 MB, free: 21.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/2.298, allocations: 120 kB / 369.5 MB, free: 21.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/2.298, allocations: 59.84 kB / 369.5 MB, free: 21.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/2.298, allocations: 0 / 369.5 MB, free: 21.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005615/2.299, allocations: 207.4 kB / 369.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/2.299, allocations: 7.875 kB / 369.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/2.299, allocations: 0 / 369.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/2.299, allocations: 9.125 kB / 369.7 MB, free: 20.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/2.299, allocations: 29.33 kB / 369.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.519e-05/2.299, allocations: 13.17 kB / 369.8 MB, free: 20.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001908/2.3, allocations: 16.5 kB / 369.8 MB, free: 20.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.428e-05/2.3, allocations: 14.91 kB / 369.8 MB, free: 20.95 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001476/2.3, allocations: 127.1 kB / 369.9 MB, free: 20.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/2.3, allocations: 11.69 kB / 369.9 MB, free: 20.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005356/2.3, allocations: 160.1 kB / 370.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/2.3, allocations: 5.656 kB / 370.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/2.3, allocations: 0 / 370.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/2.3, allocations: 0 / 370.1 MB, free: 20.79 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/2.302, allocations: 0.4954 MB / 370.6 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/2.302, allocations: 0 / 370.6 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/2.302, allocations: 26.06 kB / 370.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-06/2.302, allocations: 0 / 370.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.306e-05/2.302, allocations: 5.266 kB / 370.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/2.302, allocations: 0 / 370.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/2.302, allocations: 0 / 370.6 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004577/2.302, allocations: 247 kB / 370.9 MB, free: 20.35 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006326/2.303, allocations: 0.6251 MB / 371.5 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.445e-05/2.303, allocations: 90.38 kB / 371.6 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.652e-05/2.303, allocations: 7.875 kB / 371.6 MB, free: 19.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/2.303, allocations: 9.281 kB / 371.6 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.619e-05/2.303, allocations: 24.91 kB / 371.6 MB, free: 19.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/2.303, allocations: 12.69 kB / 371.6 MB, free: 19.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.428e-05/2.304, allocations: 88.55 kB / 371.7 MB, free: 19.64 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00146/2.305, allocations: 32.52 kB / 371.8 MB, free: 19.64 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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0002117/2.305, allocations: 108.6 kB / 371.9 MB, free: 19.55 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004612/2.306, allocations: 164 kB / 372 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/2.306, allocations: 7.844 kB / 372 MB, free: 19.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001884/2.306, allocations: 79.69 kB / 372.1 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/2.306, allocations: 13.34 kB / 372.1 MB, free: 19.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007649/2.307, allocations: 213.5 kB / 372.3 MB, free: 19.42 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004851/2.308, allocations: 0.7628 MB / 373.1 MB, free: 18.71 MB / 314.7 MB Notification: Performance of SimCode: time 9.11e-07/2.308, allocations: 0 / 373.1 MB, free: 18.71 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat