Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_RevolutePlanarLoopConstraint",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.673/2.673, allocations: 235 MB / 242 MB, free: 9.754 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2244/2.898, allocations: 57.2 MB / 299.2 MB, free: 436 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/3.228, allocations: 54.85 MB / 354.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/3.666, allocations: 97.81 MB / 451.9 MB, free: 32.51 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004115/3.667, allocations: 71.02 kB / 452 MB, free: 32.51 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: 1493 * Number of variables: 1493 Notification: Performance of Generate backend data structure: time 0.772/4.439, allocations: 111.5 MB / 0.5503 GB, free: 3.348 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.402e-05/4.439, allocations: 8 kB / 0.5503 GB, free: 3.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0876/4.527, allocations: 10.03 MB / 0.5601 GB, free: 9.285 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0462/4.573, allocations: 9.941 MB / 0.5698 GB, free: 15.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007539/4.574, allocations: 222.6 kB / 0.57 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003582/4.577, allocations: 279.8 kB / 0.5703 GB, free: 14.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02924/4.606, allocations: 6.619 MB / 0.5767 GB, free: 8.141 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0339/4.64, allocations: 9.191 MB / 0.5857 GB, free: 14.38 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004742/4.641, allocations: 59.45 kB / 0.5858 GB, free: 14.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001839/4.643, allocations: 16 kB / 0.5858 GB, free: 14.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003372/4.646, allocations: 1.078 MB / 0.5868 GB, free: 13.22 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3826/5.029, allocations: 44.95 MB / 0.6307 GB, free: 117.7 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01422/5.043, allocations: 5.853 MB / 0.6365 GB, free: 117.7 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01161/5.055, allocations: 5.447 MB / 0.6418 GB, free: 117.6 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03706/5.092, allocations: 13.98 MB / 0.6554 GB, free: 115.1 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.194e-05/5.092, allocations: 69.34 kB / 0.6555 GB, free: 115 MB / 474.7 MB Notification: Performance of pre-optimization done (n=286): time 6.562e-06/5.092, allocations: 3.875 kB / 0.6555 GB, free: 115 MB / 474.7 MB Notification: Performance of matching and sorting (n=396): time 0.3072/5.399, allocations: 52.67 MB / 0.7069 GB, free: 104.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/5.399, allocations: 199.4 kB / 0.7071 GB, free: 104.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/5.413, allocations: 3.274 MB / 0.7103 GB, free: 103.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001583/5.415, allocations: 25.7 kB / 0.7103 GB, free: 103.4 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002835/5.418, allocations: 2.336 MB / 0.7126 GB, free: 102.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003263/5.421, allocations: 1.317 MB / 0.7139 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/5.422, allocations: 0 / 0.7139 GB, free: 101.1 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006941/5.423, allocations: 0.5252 MB / 0.7144 GB, free: 100.7 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01202/5.435, allocations: 4.055 MB / 0.7184 GB, free: 98.76 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01282/5.448, allocations: 6.034 MB / 0.7243 GB, free: 92.35 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01301/5.461, allocations: 5.02 MB / 0.7292 GB, free: 88.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.618e-05/5.461, allocations: 20 kB / 0.7292 GB, free: 88.12 MB / 474.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.08858/5.55, allocations: 16.52 MB / 0.7453 GB, free: 75.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/5.55, allocations: 4 kB / 0.7453 GB, free: 75.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/5.55, allocations: 67.89 kB / 0.7454 GB, free: 75.17 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06945/5.619, allocations: 7.867 MB / 0.7531 GB, free: 69.49 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01186/5.631, allocations: 0.9773 MB / 0.754 GB, free: 68.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1541/5.786, allocations: 42.76 MB / 0.7958 GB, free: 30.88 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/5.797, allocations: 266.8 kB / 0.796 GB, free: 30.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/5.799, allocations: 275.9 kB / 0.7963 GB, free: 30.35 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 54 (fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute4.cylinderColor[3],revolute4.cylinderColor[2],revolute4.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (509): * Single equations (assignments): 504 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(14,44.4%) 101,(2,100.0%) 24} * Non-linear torn systems: 1 {2 48} Notification: Performance of prepare postOptimizeDAE: time 0.002933/5.802, allocations: 310.2 kB / 0.7966 GB, free: 30.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001839/5.804, allocations: 458.2 kB / 0.797 GB, free: 29.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08281/5.887, allocations: 15.74 MB / 0.8124 GB, free: 13.94 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3191/6.206, allocations: 14.43 MB / 0.8265 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.615e-05/6.206, allocations: 26.31 kB / 0.8265 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001112/6.207, allocations: 22.08 kB / 0.8265 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1696/6.376, allocations: 31.82 MB / 0.8576 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.893e-05/6.376, allocations: 3.5 kB / 0.8576 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005014/6.381, allocations: 392.8 kB / 0.858 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.05687/6.438, allocations: 7.569 MB / 0.8654 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001519/6.44, allocations: 16.77 kB / 0.8654 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1316/6.571, allocations: 42.27 MB / 0.9067 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0281/6.6, allocations: 8.671 MB / 0.9152 GB, free: 100.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1117/6.711, allocations: 21.8 MB / 0.9365 GB, free: 89.9 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1229/6.834, allocations: 28.63 MB / 0.9644 GB, free: 65.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007769/6.842, allocations: 1.286 MB / 0.9657 GB, free: 63.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004379/6.847, allocations: 8 kB / 0.9657 GB, free: 63.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01168/6.858, allocations: 184.7 kB / 0.9658 GB, free: 63.87 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002193/6.861, allocations: 203.8 kB / 0.966 GB, free: 63.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001012/6.862, allocations: 100 kB / 0.9661 GB, free: 63.65 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.007663/6.869, allocations: 2.369 MB / 0.9685 GB, free: 61.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01287/6.882, allocations: 1.614 MB / 0.97 GB, free: 59.96 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 ($STATESET1.x[2],$STATESET1.x[1],revolute3.phi,revolute2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 204 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(12,51.4%) 96,(4,100.0%) 37} * Non-linear torn systems: 1 {2 49} Notification: Performance of Backend phase and start with SimCode phase: time 0.001632/6.884, allocations: 146.3 kB / 0.9702 GB, free: 59.85 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03627/6.92, allocations: 10.72 MB / 0.9806 GB, free: 50.38 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/6.92, allocations: 0 / 0.9806 GB, free: 50.38 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02497/6.945, allocations: 5.922 MB / 0.9864 GB, free: 45.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008242/6.954, allocations: 0.5913 MB / 0.987 GB, free: 44.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05496/7.009, allocations: 13.04 MB / 0.9997 GB, free: 33.08 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0162/7.025, allocations: 4.421 MB / 1.004 GB, free: 29.76 MB / 474.7 MB Notification: Performance of SimCode: time 1.864e-06/7.025, allocations: 2.75 kB / 1.004 GB, free: 29.76 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.RevolutePlanarLoopConstraint_res.mat does not exist to compare? outputFormat=mat