Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009545/0.0009545, allocations: 174.1 kB / 8.518 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.18/1.18, allocations: 221.4 MB / 230.3 MB, free: 7.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009099/0.0009099, allocations: 92.72 kB / 281.2 MB, free: 5.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.158/0.158, allocations: 44.15 MB / 376.1 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1649/0.323, allocations: 68.03 MB / 444.1 MB, free: 15.49 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08831/0.4113, allocations: 61.91 MB / 0.4942 GB, free: 1.496 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2389/0.6502, allocations: 97.07 MB / 0.589 GB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001972/0.6505, allocations: 76.7 kB / 0.589 GB, free: 15.52 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1443 * Number of variables: 1443 Notification: Performance of Generate backend data structure: time 0.1733/0.8237, allocations: 70.6 MB / 0.658 GB, free: 8.18 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.8238, allocations: 15.94 kB / 0.658 GB, free: 8.164 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01284/0.8366, allocations: 2.651 MB / 0.6606 GB, free: 5.504 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/0.8409, allocations: 2.079 MB / 0.6626 GB, free: 3.375 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000105/0.841, allocations: 116 kB / 0.6627 GB, free: 3.262 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006219/0.8417, allocations: 204 kB / 0.6629 GB, free: 3.062 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008986/0.8507, allocations: 6.516 MB / 0.6693 GB, free: 12.54 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01121/0.8619, allocations: 8.575 MB / 0.6777 GB, free: 3.602 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.289e-05/0.862, allocations: 19.81 kB / 0.6777 GB, free: 3.582 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004283/0.8624, allocations: 8 kB / 0.6777 GB, free: 3.574 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001034/0.8635, allocations: 1.12 MB / 0.6788 GB, free: 2.457 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0312/0.8947, allocations: 26.72 MB / 0.7049 GB, free: 7.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.8975, allocations: 2.682 MB / 0.7075 GB, free: 4.188 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001085/0.8986, allocations: 0.8876 MB / 0.7084 GB, free: 3.301 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001363/0.9, allocations: 1.629 MB / 0.71 GB, free: 1.395 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.9001, allocations: 55.47 kB / 0.71 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 3.637e-06/0.9001, allocations: 0 / 0.71 GB, free: 1.328 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.1232/1.023, allocations: 2.226 MB / 0.7122 GB, free: 206.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/1.023, allocations: 66.34 kB / 0.7122 GB, free: 206.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/1.025, allocations: 2.093 MB / 0.7143 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 6.981e-05/1.026, allocations: 25.7 kB / 0.7143 GB, free: 206.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007592/1.026, allocations: 2.564 MB / 0.7168 GB, free: 205.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003048/1.027, allocations: 0.5933 MB / 0.7174 GB, free: 204.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/1.027, allocations: 0 / 0.7174 GB, free: 204.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002161/1.027, allocations: 0.5539 MB / 0.7179 GB, free: 204.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001442/1.028, allocations: 1.394 MB / 0.7193 GB, free: 204.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002197/1.031, allocations: 4.374 MB / 0.7236 GB, free: 200.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002441/1.033, allocations: 2.557 MB / 0.7261 GB, free: 200.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-05/1.033, allocations: 29.38 kB / 0.7261 GB, free: 200.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=642) (initialization): time 0.006458/1.04, allocations: 5.085 MB / 0.7311 GB, free: 200.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/1.04, allocations: 3.875 kB / 0.7311 GB, free: 200.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001208/1.04, allocations: 108.9 kB / 0.7312 GB, free: 200.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001681/1.04, allocations: 155.3 kB / 0.7313 GB, free: 200.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00345/1.043, allocations: 1.068 MB / 0.7324 GB, free: 200.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001169/1.044, allocations: 211 kB / 0.7326 GB, free: 200.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/1.046, allocations: 0.5321 MB / 0.7331 GB, free: 199.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000356/1.047, allocations: 306.3 kB / 0.7334 GB, free: 199.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 488 * Number of states: 0 () * Number of discrete variables: 21 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (594): * Single equations (assignments): 588 * Array equations: 6 * 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.0004645/1.047, allocations: 362.7 kB / 0.7337 GB, free: 199.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000253/1.047, allocations: 222.5 kB / 0.7339 GB, free: 199.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002614/1.05, allocations: 2.111 MB / 0.736 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/1.05, allocations: 7.781 kB / 0.736 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/1.05, allocations: 3.875 kB / 0.736 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/1.05, allocations: 7.594 kB / 0.736 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007593/1.058, allocations: 6.407 MB / 0.7423 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/1.058, allocations: 7.688 kB / 0.7423 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007541/1.059, allocations: 195 kB / 0.7425 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/1.059, allocations: 19.25 kB / 0.7425 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.568e-05/1.059, allocations: 20.41 kB / 0.7425 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/1.059, allocations: 25.34 kB / 0.7425 GB, free: 198.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.545e-06/1.059, allocations: 19.31 kB / 0.7425 GB, free: 198 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002196/1.061, allocations: 3.021 MB / 0.7455 GB, free: 196.4 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002239/1.063, allocations: 3.424 MB / 0.7488 GB, free: 194.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/1.063, allocations: 303.5 kB / 0.7491 GB, free: 193.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002751/1.064, allocations: 18.44 kB / 0.7491 GB, free: 193.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000677/1.064, allocations: 21.11 kB / 0.7492 GB, free: 193.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001265/1.065, allocations: 89.02 kB / 0.7493 GB, free: 193.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.642e-05/1.065, allocations: 56.02 kB / 0.7493 GB, free: 193.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001287/1.066, allocations: 1.374 MB / 0.7506 GB, free: 193.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003499/1.069, allocations: 0.931 MB / 0.7516 GB, free: 193.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 106 * Array equations: 6 * 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.0002743/1.07, allocations: 150.4 kB / 0.7517 GB, free: 193 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003166/1.073, allocations: 3.338 MB / 0.755 GB, free: 192 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.073, allocations: 0 / 0.755 GB, free: 192 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008386/1.074, allocations: 0.9381 MB / 0.7559 GB, free: 191.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006094/1.074, allocations: 177.4 kB / 0.756 GB, free: 191.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009698/1.084, allocations: 6.436 MB / 0.7623 GB, free: 189.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003171/1.087, allocations: 3.27 MB / 0.7655 GB, free: 187.1 MB / 0.5105 GB Notification: Performance of SimCode: time 6.22e-07/1.087, allocations: 0 / 0.7655 GB, free: 187.1 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Visualizers_Torus.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1)