Running command: "" <> buildModelFMU(ModelicaTest.Blocks.UnitDeduction,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Blocks_UnitDeduction",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(ModelicaTest): time 2.399/2.399, allocations: 235.1 MB / 242 MB, free: 9.746 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1737/2.573, allocations: 57.19 MB / 299.2 MB, free: 444 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/2.868, allocations: 54.86 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1953/3.063, allocations: 87.67 MB / 441.7 MB, free: 5.586 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002785/3.064, allocations: 67.97 kB / 441.8 MB, free: 5.52 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.2732/3.337, allocations: 13.7 MB / 455.5 MB, free: 85.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/3.337, allocations: 13.33 kB / 455.5 MB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003973/3.338, allocations: 79.41 kB / 455.6 MB, free: 85.19 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/3.339, allocations: 462.6 kB / 456 MB, free: 84.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.179e-05/3.339, allocations: 15.66 kB / 456.1 MB, free: 84.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/3.339, allocations: 39.95 kB / 456.1 MB, free: 84.85 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001033/3.34, allocations: 266.7 kB / 456.4 MB, free: 84.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/3.341, allocations: 382.6 kB / 456.7 MB, free: 84.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.253e-05/3.341, allocations: 0.9688 kB / 456.7 MB, free: 84.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.065e-05/3.342, allocations: 1.578 kB / 456.7 MB, free: 84.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/3.342, allocations: 10.94 kB / 456.7 MB, free: 84.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006117/3.348, allocations: 1.673 MB / 458.4 MB, free: 83.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001114/3.349, allocations: 323.2 kB / 458.7 MB, free: 83.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004015/3.349, allocations: 132 kB / 458.9 MB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.958e-05/3.349, allocations: 4.969 kB / 458.9 MB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/3.35, allocations: 37.31 kB / 458.9 MB, free: 83.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 5.19e-06/3.35, allocations: 0 / 458.9 MB, free: 83.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.001343/3.351, allocations: 318.4 kB / 459.2 MB, free: 83.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/3.351, allocations: 111.6 kB / 459.3 MB, free: 83.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007255/3.352, allocations: 370.5 kB / 459.7 MB, free: 82.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/3.352, allocations: 27.08 kB / 459.7 MB, free: 82.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/3.352, allocations: 241.7 kB / 460 MB, free: 82.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/3.352, allocations: 139.8 kB / 460.1 MB, free: 82.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/3.352, allocations: 0 / 460.1 MB, free: 82.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001247/3.352, allocations: 366.8 kB / 460.4 MB, free: 82.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004171/3.353, allocations: 118.1 kB / 460.6 MB, free: 82.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005112/3.353, allocations: 249 kB / 460.8 MB, free: 81.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004816/3.354, allocations: 144.9 kB / 460.9 MB, free: 81.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/3.354, allocations: 1.719 kB / 460.9 MB, free: 81.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001397/3.355, allocations: 441.7 kB / 461.4 MB, free: 81.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003338/3.356, allocations: 1.395 MB / 462.8 MB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/3.356, allocations: 7.656 kB / 462.8 MB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.275e-05/3.356, allocations: 6.281 kB / 462.8 MB, free: 80.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/3.357, allocations: 130.8 kB / 462.9 MB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.132e-05/3.357, allocations: 5.844 kB / 462.9 MB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009505/3.358, allocations: 56.73 kB / 463 MB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.957e-05/3.359, allocations: 23.73 kB / 463 MB, free: 80.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/3.359, allocations: 3.5 kB / 463 MB, free: 80.03 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00119/3.36, allocations: 344.3 kB / 463.3 MB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/3.36, allocations: 3.75 kB / 463.3 MB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/3.36, allocations: 6.375 kB / 463.3 MB, free: 79.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/3.361, allocations: 121.5 kB / 463.5 MB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/3.361, allocations: 9.281 kB / 463.5 MB, free: 79.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/3.362, allocations: 43.67 kB / 463.5 MB, free: 79.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.523e-05/3.362, allocations: 24.31 kB / 463.5 MB, free: 79.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0002713/3.362, allocations: 120.2 kB / 463.7 MB, free: 79.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/3.363, allocations: 53 kB / 463.7 MB, free: 79.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003529/3.363, allocations: 58.83 kB / 463.8 MB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/3.363, allocations: 4.688 kB / 463.8 MB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.257e-05/3.363, allocations: 4.969 kB / 463.8 MB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/3.363, allocations: 3.984 kB / 463.8 MB, free: 79.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00223/3.365, allocations: 475.2 kB / 464.2 MB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/3.365, allocations: 0 / 464.2 MB, free: 79.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/3.367, allocations: 97.62 kB / 464.3 MB, free: 79.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.979e-05/3.367, allocations: 1.25 kB / 464.3 MB, free: 79.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001752/3.368, allocations: 8.406 kB / 464.4 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/3.368, allocations: 1 kB / 464.4 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/3.368, allocations: 1.094 kB / 464.4 MB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002651/3.37, allocations: 0.6607 MB / 465 MB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003392/3.374, allocations: 1.176 MB / 466.2 MB, free: 77.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006056/3.374, allocations: 167 kB / 466.4 MB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002189/3.375, allocations: 2.312 kB / 466.4 MB, free: 77.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/3.376, allocations: 32.69 kB / 466.4 MB, free: 77.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/3.376, allocations: 35.55 kB / 466.4 MB, free: 77.69 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-05/3.376, allocations: 11.06 kB / 466.4 MB, free: 77.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.00096/3.377, allocations: 288.5 kB / 466.7 MB, free: 77.51 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004494/3.382, allocations: 201 kB / 466.9 MB, free: 77.47 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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 Backend phase and start with SimCode phase: time 0.0002331/3.382, allocations: 108.6 kB / 467 MB, free: 77.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/3.384, allocations: 0.5406 MB / 467.6 MB, free: 76.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/3.384, allocations: 4.125 kB / 467.6 MB, free: 76.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/3.384, allocations: 143.9 kB / 467.7 MB, free: 76.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001555/3.386, allocations: 135.7 kB / 467.8 MB, free: 76.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002971/3.389, allocations: 0.9757 MB / 468.8 MB, free: 75.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007442/3.39, allocations: 0.9671 MB / 469.8 MB, free: 74.71 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/3.39, allocations: 0 / 469.8 MB, free: 74.71 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.Blocks.UnitDeduction_res.mat does not exist to compare? outputFormat=mat