Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 177.3 kB / 17.41 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.156/2.156, allocations: 205.4 MB / 223.6 MB, free: 9.031 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009077/0.0009077, allocations: 89.36 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4884/0.4884, allocations: 43.55 MB / 363.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005372/0.0005373, allocations: 12 kB / 432.6 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1813, allocations: 58.85 MB / 491.4 MB, free: 10.97 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5423/0.7237, allocations: 111.7 MB / 0.589 GB, free: 6.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003649/0.7241, allocations: 79.95 kB / 0.5891 GB, free: 6.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.223/1.947, allocations: 237.5 MB / 0.821 GB, free: 28.1 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.506e-06/1.947, allocations: 0 / 0.821 GB, free: 28.1 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.001084/1.948, allocations: 255.9 kB / 0.8213 GB, free: 27.85 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.06489/2.013, allocations: 12.7 MB / 0.8337 GB, free: 15.02 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.993e-05/2.013, allocations: 12.03 kB / 0.8337 GB, free: 15.01 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07744/2.091, allocations: 9.533 MB / 0.843 GB, free: 5.445 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04774/2.138, allocations: 12.06 MB / 0.8548 GB, free: 9.285 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001894/2.14, allocations: 0.9591 MB / 0.8557 GB, free: 8.324 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008716/2.149, allocations: 1.273 MB / 0.857 GB, free: 7.051 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.9124/3.062, allocations: 29.86 MB / 0.8861 GB, free: 42.76 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.002069/3.064, allocations: 154.1 kB / 0.8863 GB, free: 42.76 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0109/3.075, allocations: 0.5864 MB / 0.8868 GB, free: 42.76 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009076/3.084, allocations: 2.869 MB / 0.8896 GB, free: 42.73 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1034/3.187, allocations: 24.26 MB / 0.9133 GB, free: 42.6 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.287/3.474, allocations: 127.6 MB / 1.038 GB, free: 8.328 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06982/3.544, allocations: 13.82 MB / 1.051 GB, free: 1.66 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02272/3.567, allocations: 8.065 MB / 1.059 GB, free: 10.51 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5461/4.113, allocations: 19.69 MB / 1.079 GB, free: 113 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/4.114, allocations: 99.59 kB / 1.079 GB, free: 112.9 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=562): time 1.793e-05/4.114, allocations: 3.5 kB / 1.079 GB, free: 112.9 MB / 0.5574 GB Notification: Performance of matching and sorting (n=646): time 0.3218/4.435, allocations: 66.57 MB / 1.144 GB, free: 100.2 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002508/4.436, allocations: 378 kB / 1.144 GB, free: 99.79 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04179/4.478, allocations: 12.05 MB / 1.156 GB, free: 98.95 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002022/4.48, allocations: 126.7 kB / 1.156 GB, free: 98.92 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.01061/4.49, allocations: 8.567 MB / 1.164 GB, free: 94.08 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.004829/4.495, allocations: 2.373 MB / 1.167 GB, free: 92.32 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003531/4.499, allocations: 312.2 kB / 1.167 GB, free: 92.08 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.00249/4.501, allocations: 0.9613 MB / 1.168 GB, free: 91.5 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01836/4.52, allocations: 6.772 MB / 1.174 GB, free: 89.18 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02176/4.542, allocations: 15.28 MB / 1.189 GB, free: 75.66 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02876/4.57, allocations: 23.88 MB / 1.213 GB, free: 54.64 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003807/4.571, allocations: 84 kB / 1.213 GB, free: 54.56 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.05442/4.625, allocations: 24.86 MB / 1.237 GB, free: 33.12 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002678/4.626, allocations: 134.7 kB / 1.237 GB, free: 33 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005048/4.626, allocations: 296 kB / 1.237 GB, free: 32.71 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008759/4.635, allocations: 3.272 MB / 1.241 GB, free: 30.31 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01658/4.652, allocations: 3.768 MB / 1.244 GB, free: 27.13 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02754/4.679, allocations: 22.65 MB / 1.266 GB, free: 6.84 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01728/4.696, allocations: 0.9391 MB / 1.267 GB, free: 6.066 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004788/4.701, allocations: 0.8889 MB / 1.268 GB, free: 5.211 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1346 * Number of states: 0 () * Number of discrete variables: 120 (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.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1900): * Single equations (assignments): 1893 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01742/4.719, allocations: 5.741 MB / 1.274 GB, free: 168 kB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005485/4.724, allocations: 1.068 MB / 1.275 GB, free: 15.08 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4947/5.219, allocations: 14.8 MB / 1.289 GB, free: 112.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001885/5.219, allocations: 66.78 kB / 1.289 GB, free: 112.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000159/5.219, allocations: 16.41 kB / 1.289 GB, free: 112.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002152/5.22, allocations: 32.94 kB / 1.289 GB, free: 112.4 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.123/5.343, allocations: 32.57 MB / 1.321 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001906/5.343, allocations: 10.09 kB / 1.321 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01183/5.355, allocations: 1.278 MB / 1.323 GB, free: 110.9 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01074/5.366, allocations: 2.844 MB / 1.325 GB, free: 110.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002635/5.368, allocations: 129.7 kB / 1.325 GB, free: 110.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04701/5.415, allocations: 21.14 MB / 1.346 GB, free: 103.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.008e-05/5.415, allocations: 15.48 kB / 1.346 GB, free: 103.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06853/5.484, allocations: 22.77 MB / 1.368 GB, free: 94.29 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01406/5.498, allocations: 2.188 MB / 1.37 GB, free: 93.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00769/5.506, allocations: 119.5 kB / 1.371 GB, free: 93.65 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01535/5.521, allocations: 446.8 kB / 1.371 GB, free: 93.57 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003564/5.525, allocations: 413.7 kB / 1.371 GB, free: 93.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002224/5.527, allocations: 174 kB / 1.372 GB, free: 93.46 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0267/5.554, allocations: 7.775 MB / 1.379 GB, free: 90.93 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.553e-06/5.554, allocations: 0 / 1.379 GB, free: 90.93 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02647/5.58, allocations: 3.112 MB / 1.382 GB, free: 90.59 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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.003362/5.584, allocations: 310.9 kB / 1.383 GB, free: 90.43 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04508/5.629, allocations: 16.84 MB / 1.399 GB, free: 82.2 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.568e-05/5.629, allocations: 5.031 kB / 1.399 GB, free: 82.2 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01952/5.649, allocations: 7.122 MB / 1.406 GB, free: 76.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.05328/5.702, allocations: 1.429 MB / 1.407 GB, free: 74.9 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1117/5.814, allocations: 36.7 MB / 1.443 GB, free: 41.96 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0306/5.844, allocations: 8.633 MB / 1.452 GB, free: 35.61 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007537/5.852, allocations: 0.8413 MB / 1.452 GB, free: 34.81 MB / 0.573 GB Notification: Performance of SimCode: time 1.402e-06/5.852, allocations: 4 kB / 1.452 GB, free: 34.8 MB / 0.573 GB Notification: Performance of Templates: time 1.847/7.699, allocations: 392.9 MB / 1.836 GB, free: 105.3 MB / 0.6199 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches