Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.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.WorldForceAndTorque,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",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque") translateModel(ModelicaTest.MultiBody.Forces.WorldForceAndTorque,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",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque") [: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.001367/0.001367, allocations: 178.5 kB / 8.519 MB, free: 1.828 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.246/1.246, allocations: 221.4 MB / 230.3 MB, free: 7.699 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.0008888/0.0008888, allocations: 89.8 kB / 281.2 MB, free: 5.508 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.1794/0.1794, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.116e-06/8.146e-06, allocations: 4.219 kB / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1239, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3928/0.5167, allocations: 107.5 MB / 0.599 GB, free: 5.262 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001871/0.5169, allocations: 79.95 kB / 0.5991 GB, free: 5.184 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.56/1.077, allocations: 156.4 MB / 0.7519 GB, free: 102 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005534/1.078, allocations: 162.3 kB / 0.7521 GB, free: 102 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: 2857 * Number of variables: 2857 Notification: Performance of Generate backend data structure: time 0.02592/1.103, allocations: 7.994 MB / 0.7599 GB, free: 98.73 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/1.104, allocations: 22.47 kB / 0.7599 GB, free: 98.72 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03869/1.142, allocations: 9.274 MB / 0.7689 GB, free: 97.17 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02945/1.172, allocations: 9.019 MB / 0.7777 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008584/1.173, allocations: 267.9 kB / 0.778 GB, free: 93.91 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004589/1.177, allocations: 495.7 kB / 0.7785 GB, free: 93.89 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02523/1.202, allocations: 11.65 MB / 0.7899 GB, free: 86.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0418/1.244, allocations: 17.43 MB / 0.8069 GB, free: 67.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006626/1.245, allocations: 107 kB / 0.807 GB, free: 67.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003567/1.249, allocations: 44 kB / 0.807 GB, free: 67.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002372/1.251, allocations: 1.906 MB / 0.8089 GB, free: 65.54 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09367/1.345, allocations: 81.65 MB / 0.8886 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009313/1.354, allocations: 7.09 MB / 0.8955 GB, free: 7.059 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006248/1.36, allocations: 5.097 MB / 0.9005 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1729/1.533, allocations: 12.72 MB / 0.9129 GB, free: 179.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/1.533, allocations: 70.08 kB / 0.913 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=295): time 5.25e-06/1.533, allocations: 3.938 kB / 0.913 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=361): time 0.06936/1.603, allocations: 34.02 MB / 0.9462 GB, free: 173 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.603, allocations: 275.3 kB / 0.9465 GB, free: 172.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01037/1.613, allocations: 5.161 MB / 0.9515 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001114/1.614, allocations: 25.7 kB / 0.9516 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002939/1.617, allocations: 5.047 MB / 0.9565 GB, free: 167.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001971/1.619, allocations: 1.312 MB / 0.9578 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007054/1.62, allocations: 0 / 0.9578 GB, free: 166.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004208/1.62, allocations: 0.7248 MB / 0.9585 GB, free: 165.7 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004851/1.625, allocations: 4.023 MB / 0.9624 GB, free: 164.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007082/1.632, allocations: 9.623 MB / 0.9718 GB, free: 155.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008054/1.64, allocations: 6.173 MB / 0.9778 GB, free: 153.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001387/1.641, allocations: 61.72 kB / 0.9779 GB, free: 153.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1284) (initialization): time 0.02849/1.669, allocations: 14.4 MB / 0.992 GB, free: 146.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/1.669, allocations: 10.09 kB / 0.992 GB, free: 146.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001752/1.669, allocations: 200 kB / 0.9922 GB, free: 146.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005473/1.675, allocations: 2.327 MB / 0.9944 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007968/1.683, allocations: 2.271 MB / 0.9966 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/1.7, allocations: 15.47 MB / 1.012 GB, free: 129 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008656/1.709, allocations: 318.9 kB / 1.012 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/1.712, allocations: 0.5841 MB / 1.013 GB, free: 128.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 909 * Number of states: 0 () * Number of discrete variables: 87 (forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.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 (1188): * Single equations (assignments): 1182 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003529/1.715, allocations: 0.6183 MB / 1.013 GB, free: 127.6 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001822/1.717, allocations: 0.5592 MB / 1.014 GB, free: 127 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01495/1.732, allocations: 8.374 MB / 1.022 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.723e-05/1.732, allocations: 32 kB / 1.022 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.568e-05/1.732, allocations: 16 kB / 1.022 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.975e-05/1.732, allocations: 17.3 kB / 1.022 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03489/1.767, allocations: 17.1 MB / 1.039 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.588e-05/1.767, allocations: 0 / 1.039 GB, free: 106.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00347/1.771, allocations: 0.5864 MB / 1.039 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005296/1.776, allocations: 1.975 MB / 1.041 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00063/1.777, allocations: 11.75 kB / 1.041 GB, free: 104.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01724/1.794, allocations: 14.41 MB / 1.055 GB, free: 91.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.794, allocations: 4 kB / 1.055 GB, free: 91.42 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01874/1.813, allocations: 13.52 MB / 1.069 GB, free: 78.38 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001918/1.815, allocations: 0.5818 MB / 1.069 GB, free: 77.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001963/1.817, allocations: 4 kB / 1.069 GB, free: 77.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003858/1.82, allocations: 147.8 kB / 1.069 GB, free: 77.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007125/1.821, allocations: 166.7 kB / 1.069 GB, free: 77.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004272/1.822, allocations: 87.06 kB / 1.069 GB, free: 77.38 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.007999/1.83, allocations: 3.488 MB / 1.073 GB, free: 73.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01071/1.84, allocations: 1.676 MB / 1.075 GB, free: 72.22 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (286): * Single equations (assignments): 280 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(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.0009933/1.841, allocations: 162.9 kB / 1.075 GB, free: 72.06 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01461/1.856, allocations: 10.16 MB / 1.085 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.856, allocations: 4 kB / 1.085 GB, free: 61.91 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006164/1.862, allocations: 4.163 MB / 1.089 GB, free: 57.71 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004381/1.867, allocations: 0.69 MB / 1.089 GB, free: 57.05 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03179/1.898, allocations: 15.77 MB / 1.105 GB, free: 41.21 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009173/1.908, allocations: 6.363 MB / 1.111 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of SimCode: time 7.12e-07/1.908, allocations: 0 / 1.111 GB, free: 34.85 MB / 0.5261 GB Notification: Performance of Templates: time 0.2991/2.207, allocations: 75.98 MB / 1.185 GB, free: 148.1 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForceAndTorque/WorldForceAndTorque.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches