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: translateModel(ModelicaTest.MultiBody.Visualizers.Torus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|torus1.surface.nu|torus1.surface.nv|torus2.surface.nu|torus2.surface.nv",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus") translateModel(ModelicaTest.MultiBody.Visualizers.Torus,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|torus1.surface.nu|torus1.surface.nv|torus2.surface.nu|torus2.surface.nv",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus") [: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.00138/0.001379, allocations: 179.6 kB / 8.521 MB, free: 1.844 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.201/1.201, allocations: 221.4 MB / 230.3 MB, free: 7.668 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.0009516/0.0009516, allocations: 89.8 kB / 281.2 MB, free: 5.5 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.1653/0.1653, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.164e-06/7.263e-06, allocations: 0 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1143, allocations: 61.9 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.3948, allocations: 97.08 MB / 0.5889 GB, free: 15.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002089/0.395, allocations: 75.95 kB / 0.589 GB, free: 15.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1775/0.5725, allocations: 67.52 MB / 0.6549 GB, free: 11.41 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001489/0.5727, allocations: 67.92 kB / 0.655 GB, free: 11.34 MB / 474.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.008709/0.5814, allocations: 3.029 MB / 0.6579 GB, free: 8.258 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.797e-05/0.5815, allocations: 15.97 kB / 0.6579 GB, free: 8.242 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/0.5956, allocations: 2.654 MB / 0.6605 GB, free: 5.578 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006173/0.6018, allocations: 2.071 MB / 0.6625 GB, free: 3.457 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.6021, allocations: 116 kB / 0.6627 GB, free: 3.344 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/0.6042, allocations: 204 kB / 0.6629 GB, free: 3.145 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01136/0.6156, allocations: 6.516 MB / 0.6692 GB, free: 12.62 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01949/0.6351, allocations: 8.577 MB / 0.6776 GB, free: 3.684 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001707/0.6353, allocations: 23.81 kB / 0.6776 GB, free: 3.66 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001828/0.6371, allocations: 12 kB / 0.6776 GB, free: 3.648 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001374/0.6385, allocations: 1.12 MB / 0.6787 GB, free: 2.527 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04034/0.6789, allocations: 26.72 MB / 0.7048 GB, free: 7.164 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003271/0.6822, allocations: 2.67 MB / 0.7074 GB, free: 4.273 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.6835, allocations: 0.8954 MB / 0.7083 GB, free: 3.379 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001408/0.6849, allocations: 1.626 MB / 0.7099 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.685, allocations: 51.47 kB / 0.7099 GB, free: 1.414 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 4.519e-06/0.685, allocations: 0 / 0.7099 GB, free: 1.414 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.1607/0.8456, allocations: 2.23 MB / 0.7121 GB, free: 207.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.964e-05/0.8457, allocations: 63.41 kB / 0.7122 GB, free: 207.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002649/0.8484, allocations: 2.093 MB / 0.7142 GB, free: 207.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.8486, allocations: 25.7 kB / 0.7142 GB, free: 207.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.8497, allocations: 2.565 MB / 0.7167 GB, free: 206.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004996/0.8502, allocations: 0.5896 MB / 0.7173 GB, free: 206.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.8503, allocations: 2.719 kB / 0.7173 GB, free: 206.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002247/0.8505, allocations: 0.5574 MB / 0.7179 GB, free: 205.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001443/0.852, allocations: 1.395 MB / 0.7192 GB, free: 205.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/0.8543, allocations: 4.369 MB / 0.7235 GB, free: 202 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/0.8568, allocations: 2.562 MB / 0.726 GB, free: 202 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.171e-05/0.8569, allocations: 31.28 kB / 0.726 GB, free: 202 MB / 0.5105 GB Notification: Performance of matching and sorting (n=642) (initialization): time 0.006263/0.8631, allocations: 5.081 MB / 0.731 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.8632, allocations: 3.969 kB / 0.731 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-05/0.8632, allocations: 107.3 kB / 0.7311 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.8634, allocations: 157.6 kB / 0.7312 GB, free: 201.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/0.8662, allocations: 1.065 MB / 0.7323 GB, free: 201.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001064/0.8663, allocations: 209.5 kB / 0.7325 GB, free: 201.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/0.869, allocations: 0.5363 MB / 0.733 GB, free: 201 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003297/0.8693, allocations: 306.2 kB / 0.7333 GB, free: 201 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.0004168/0.8698, allocations: 363.3 kB / 0.7336 GB, free: 200.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.87, allocations: 216.9 kB / 0.7339 GB, free: 200.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002505/0.8725, allocations: 2.109 MB / 0.7359 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.331e-05/0.8726, allocations: 16.33 kB / 0.7359 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.8726, allocations: 0 / 0.7359 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.8726, allocations: 8.156 kB / 0.7359 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008293/0.8809, allocations: 6.413 MB / 0.7422 GB, free: 199.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.146e-05/0.881, allocations: 7.844 kB / 0.7422 GB, free: 199.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007498/0.8817, allocations: 194.5 kB / 0.7424 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.646e-05/0.8817, allocations: 25.06 kB / 0.7424 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.8818, allocations: 17.81 kB / 0.7424 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.778e-06/0.8818, allocations: 17.84 kB / 0.7425 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.8819, allocations: 15.38 kB / 0.7425 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00237/0.8842, allocations: 3.028 MB / 0.7454 GB, free: 197.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004766/0.8847, allocations: 300.4 kB / 0.7457 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.885, allocations: 12.75 kB / 0.7457 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006782/0.8857, allocations: 26.17 kB / 0.7457 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.8858, allocations: 85.72 kB / 0.7458 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/0.886, allocations: 60.27 kB / 0.7459 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001776/0.8877, allocations: 1.372 MB / 0.7472 GB, free: 197.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003563/0.8913, allocations: 0.9276 MB / 0.7481 GB, free: 196.9 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.0003497/0.8917, allocations: 157.8 kB / 0.7483 GB, free: 196.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004093/0.8958, allocations: 3.329 MB / 0.7515 GB, free: 195.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.8958, allocations: 2.812 kB / 0.7515 GB, free: 195.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0009315/0.8967, allocations: 0.9447 MB / 0.7525 GB, free: 195.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000833/0.8976, allocations: 168.7 kB / 0.7526 GB, free: 195.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.9094, allocations: 6.44 MB / 0.7589 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004314/0.9138, allocations: 3.269 MB / 0.7621 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.713e-06/0.9138, allocations: 4 kB / 0.7621 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.03988/0.9537, allocations: 20.69 MB / 0.7823 GB, free: 179.8 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Visualizers/Torus/Torus.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Visualizers.Torus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches