Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_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_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.0009136/0.0009136, allocations: 185.2 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.313/1.313, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007351/0.000735, allocations: 86.88 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1907/0.1907, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002962, allocations: 8 kB / 431.4 MB, free: 19.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1228, allocations: 58.85 MB / 490.2 MB, free: 8.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.45/0.5729, allocations: 111.6 MB / 0.5877 GB, free: 4.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004071/0.5734, allocations: 77.91 kB / 0.5878 GB, free: 4.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8528/1.426, allocations: 241.1 MB / 0.8232 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.425e-06/1.426, allocations: 0 / 0.8232 GB, free: 72.79 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001251/1.428, allocations: 263.9 kB / 0.8235 GB, free: 72.53 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05509/1.483, allocations: 13.35 MB / 0.8365 GB, free: 59.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.483, allocations: 12.03 kB / 0.8365 GB, free: 59.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05241/1.535, allocations: 12.81 MB / 0.849 GB, free: 46.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04024/1.575, allocations: 13.36 MB / 0.8621 GB, free: 32.73 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/1.577, allocations: 0.9587 MB / 0.863 GB, free: 31.77 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008529/1.585, allocations: 1.273 MB / 0.8643 GB, free: 30.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08234/1.668, allocations: 30.19 MB / 0.8938 GB, free: 14.03 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001058/1.669, allocations: 154.5 kB / 0.8939 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00695/1.676, allocations: 0.5935 MB / 0.8945 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005133/1.681, allocations: 2.86 MB / 0.8973 GB, free: 10.41 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7375/2.418, allocations: 24.68 MB / 0.9214 GB, free: 75.92 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.181/2.599, allocations: 127.9 MB / 1.046 GB, free: 16.27 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03526/2.635, allocations: 14.09 MB / 1.06 GB, free: 12.24 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04538/2.68, allocations: 19.84 MB / 1.079 GB, free: 0.5664 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001201/2.68, allocations: 99 kB / 1.079 GB, free: 476 kB / 0.5262 GB Notification: Performance of pre-optimization done (n=562): time 1.381e-05/2.68, allocations: 0 / 1.079 GB, free: 476 kB / 0.5262 GB Notification: Performance of matching and sorting (n=646): time 0.6043/3.285, allocations: 68.56 MB / 1.146 GB, free: 117.7 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002143/3.285, allocations: 376 kB / 1.147 GB, free: 117.3 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03032/3.315, allocations: 10.75 MB / 1.157 GB, free: 116.6 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.002157/3.318, allocations: 122.5 kB / 1.157 GB, free: 116.5 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.009796/3.327, allocations: 8.563 MB / 1.166 GB, free: 112.3 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.004439/3.332, allocations: 2.376 MB / 1.168 GB, free: 110.9 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003112/3.335, allocations: 319.1 kB / 1.168 GB, free: 110.9 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.001875/3.337, allocations: 0.9666 MB / 1.169 GB, free: 110.6 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01317/3.35, allocations: 6.769 MB / 1.176 GB, free: 110.5 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02085/3.371, allocations: 15.21 MB / 1.191 GB, free: 99.79 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01828/3.389, allocations: 9.942 MB / 1.201 GB, free: 96.48 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0007393/3.39, allocations: 85.19 kB / 1.201 GB, free: 96.48 MB / 0.5574 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.05498/3.445, allocations: 24.85 MB / 1.225 GB, free: 88.07 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007446/3.446, allocations: 137.6 kB / 1.225 GB, free: 88.07 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009333/3.447, allocations: 293 kB / 1.225 GB, free: 88.07 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009145/3.456, allocations: 3.311 MB / 1.229 GB, free: 87.48 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01516/3.471, allocations: 3.767 MB / 1.232 GB, free: 87.05 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02665/3.498, allocations: 23.26 MB / 1.255 GB, free: 67.18 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0194/3.517, allocations: 0.9384 MB / 1.256 GB, free: 66.41 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005421/3.523, allocations: 0.8867 MB / 1.257 GB, free: 65.55 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.02005/3.543, allocations: 5.737 MB / 1.262 GB, free: 60.51 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005589/3.548, allocations: 1.074 MB / 1.263 GB, free: 59.43 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03219/3.581, allocations: 14.76 MB / 1.278 GB, free: 47.47 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.782e-05/3.581, allocations: 71.95 kB / 1.278 GB, free: 47.4 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.704e-05/3.581, allocations: 16 kB / 1.278 GB, free: 47.38 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001633/3.581, allocations: 29.44 kB / 1.278 GB, free: 47.38 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08699/3.668, allocations: 32.57 MB / 1.31 GB, free: 21.13 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.168e-05/3.668, allocations: 12 kB / 1.31 GB, free: 21.12 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007182/3.675, allocations: 1.281 MB / 1.311 GB, free: 20.14 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007443/3.683, allocations: 2.836 MB / 1.314 GB, free: 18.16 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002521/3.685, allocations: 124.4 kB / 1.314 GB, free: 18.04 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4598/4.145, allocations: 21.77 MB / 1.335 GB, free: 107.3 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.909e-05/4.145, allocations: 20.22 kB / 1.335 GB, free: 107.3 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04274/4.188, allocations: 26.32 MB / 1.361 GB, free: 101.9 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009539/4.198, allocations: 2.183 MB / 1.363 GB, free: 101.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006317/4.204, allocations: 132 kB / 1.363 GB, free: 101.8 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0101/4.214, allocations: 445.5 kB / 1.363 GB, free: 101.8 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002504/4.217, allocations: 409.8 kB / 1.364 GB, free: 101.8 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001587/4.218, allocations: 167.2 kB / 1.364 GB, free: 101.8 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.02102/4.239, allocations: 7.782 MB / 1.372 GB, free: 101.5 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.022e-06/4.239, allocations: 0 / 1.372 GB, free: 101.5 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.02327/4.263, allocations: 3.112 MB / 1.375 GB, free: 101.5 MB / 0.5574 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.002643/4.265, allocations: 308.1 kB / 1.375 GB, free: 101.4 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.03133/4.297, allocations: 16.84 MB / 1.391 GB, free: 98.41 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 2.155e-05/4.297, allocations: 2.875 kB / 1.391 GB, free: 98.41 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.01389/4.311, allocations: 7.127 MB / 1.398 GB, free: 95.71 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01164/4.322, allocations: 1.346 MB / 1.4 GB, free: 95.13 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06916/4.392, allocations: 35.18 MB / 1.434 GB, free: 74.72 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01919/4.411, allocations: 8.884 MB / 1.443 GB, free: 68.37 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01672/4.428, allocations: 5.166 MB / 1.448 GB, free: 64.99 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003838/4.431, allocations: 0.73 MB / 1.448 GB, free: 64.3 MB / 0.5574 GB Notification: Performance of SimCode: time 1.012e-06/4.431, allocations: 4 kB / 1.448 GB, free: 64.3 MB / 0.5574 GB Notification: Performance of Templates: time 0.5547/4.986, allocations: 115.4 MB / 1.561 GB, free: 105.8 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/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_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches