Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.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.Forces.Torque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2") [: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.001585/0.001585, allocations: 178.3 kB / 8.518 MB, free: 1.84 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.231/1.231, allocations: 221.4 MB / 230.3 MB, free: 7.75 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.0008734/0.0008734, allocations: 88.72 kB / 281.2 MB, free: 5.512 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.1612/0.1612, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.861e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09719, allocations: 61.91 MB / 0.4941 GB, free: 1.621 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2766/0.3739, allocations: 111.5 MB / 0.603 GB, free: 1.254 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001698/0.3741, allocations: 79.95 kB / 0.6031 GB, free: 1.176 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6753/1.049, allocations: 214.6 MB / 0.8127 GB, free: 65.42 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0008097/1.05, allocations: 235.9 kB / 0.8129 GB, free: 65.19 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.0329/1.083, allocations: 11.49 MB / 0.8241 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/1.083, allocations: 11.97 kB / 0.8241 GB, free: 53.62 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04755/1.131, allocations: 12.18 MB / 0.836 GB, free: 41.41 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02837/1.159, allocations: 12.3 MB / 0.848 GB, free: 29.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005692/1.16, allocations: 380 kB / 0.8484 GB, free: 28.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004736/1.165, allocations: 0.6911 MB / 0.8491 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02802/1.193, allocations: 16.29 MB / 0.865 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05324/1.246, allocations: 24.27 MB / 0.8887 GB, free: 1.391 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006218/1.246, allocations: 150.6 kB / 0.8888 GB, free: 1.242 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003724/1.25, allocations: 64 kB / 0.8889 GB, free: 1.18 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1794/1.43, allocations: 2.693 MB / 0.8915 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1172/1.547, allocations: 116.5 MB / 1.005 GB, free: 59.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/1.557, allocations: 10.37 MB / 1.015 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006996/1.564, allocations: 7.323 MB / 1.023 GB, free: 51.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02525/1.59, allocations: 19.49 MB / 1.042 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.812e-05/1.59, allocations: 84.7 kB / 1.042 GB, free: 42.48 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=417): time 7.263e-06/1.59, allocations: 2.812 kB / 1.042 GB, free: 42.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=501): time 0.09802/1.688, allocations: 52.26 MB / 1.093 GB, free: 3.633 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/1.688, allocations: 361.1 kB / 1.093 GB, free: 3.207 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1957/1.884, allocations: 8.183 MB / 1.101 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001175/1.885, allocations: 29.02 kB / 1.101 GB, free: 122.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004157/1.889, allocations: 7.153 MB / 1.108 GB, free: 120.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002704/1.892, allocations: 1.831 MB / 1.11 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/1.893, allocations: 0 / 1.11 GB, free: 119.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006223/1.894, allocations: 0.9025 MB / 1.111 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007359/1.901, allocations: 5.659 MB / 1.116 GB, free: 118.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01266/1.914, allocations: 13.61 MB / 1.13 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0128/1.927, allocations: 8.69 MB / 1.138 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002701/1.927, allocations: 82.59 kB / 1.138 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1836) (initialization): time 0.0416/1.969, allocations: 20.19 MB / 1.158 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/1.969, allocations: 2.438 kB / 1.158 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004719/1.969, allocations: 282.4 kB / 1.158 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008088/1.977, allocations: 3.126 MB / 1.161 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01278/1.99, allocations: 3.29 MB / 1.164 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0249/2.015, allocations: 20.61 MB / 1.184 GB, free: 97.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01463/2.03, allocations: 457.1 kB / 1.185 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004244/2.034, allocations: 0.8271 MB / 1.186 GB, free: 97.84 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1288 * Number of states: 0 () * Number of discrete variables: 138 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceArrow.color[3],torque4.forceArrow.color[2],torque4.forceArrow.color[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,torque3.forceArrow.color[3],torque3.forceArrow.color[2],torque3.forceArrow.color[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1716): * Single equations (assignments): 1709 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00453/2.039, allocations: 0.8438 MB / 1.187 GB, free: 97.16 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/2.041, allocations: 0.8246 MB / 1.187 GB, free: 96.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01972/2.06, allocations: 11.68 MB / 1.199 GB, free: 92.85 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000113/2.061, allocations: 53.59 kB / 1.199 GB, free: 92.85 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.72e-05/2.061, allocations: 14.97 kB / 1.199 GB, free: 92.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001019/2.061, allocations: 26.34 kB / 1.199 GB, free: 92.85 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04941/2.11, allocations: 24.09 MB / 1.222 GB, free: 79.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.111e-05/2.11, allocations: 0 / 1.222 GB, free: 79.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005088/2.115, allocations: 0.8493 MB / 1.223 GB, free: 79.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007035/2.122, allocations: 2.635 MB / 1.226 GB, free: 77.37 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008073/2.123, allocations: 8 kB / 1.226 GB, free: 77.36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02302/2.146, allocations: 19.25 MB / 1.245 GB, free: 59.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/2.146, allocations: 0 / 1.245 GB, free: 59.99 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02658/2.173, allocations: 18.77 MB / 1.263 GB, free: 43.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002687/2.176, allocations: 0.8118 MB / 1.264 GB, free: 42.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003399/2.179, allocations: 4 kB / 1.264 GB, free: 42.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005548/2.185, allocations: 174.6 kB / 1.264 GB, free: 42.61 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009954/2.186, allocations: 237.4 kB / 1.264 GB, free: 42.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004104/2.186, allocations: 125.3 kB / 1.264 GB, free: 42.35 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.00845/2.195, allocations: 5.228 MB / 1.269 GB, free: 37.83 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0166/2.211, allocations: 2.746 MB / 1.272 GB, free: 36.24 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (409): * Single equations (assignments): 402 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2135/2.425, allocations: 175.2 kB / 1.272 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02478/2.449, allocations: 14.15 MB / 1.286 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/2.45, allocations: 0 / 1.286 GB, free: 109.2 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009733/2.459, allocations: 5.702 MB / 1.292 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00731/2.467, allocations: 0.9699 MB / 1.293 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0558/2.522, allocations: 22.47 MB / 1.314 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01675/2.539, allocations: 8.769 MB / 1.323 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/2.539, allocations: 0 / 1.323 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.1946/2.734, allocations: 106.3 MB / 1.427 GB, free: 45.04 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches