Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009824/0.0009824, allocations: 197.4 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.212/1.212, allocations: 227.2 MB / 245 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007378/0.0007378, allocations: 100.2 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.295/0.295, allocations: 45.23 MB / 394.7 MB, free: 31.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002861, allocations: 8 kB / 468.4 MB, free: 7.734 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3294, allocations: 63.24 MB / 0.5192 GB, free: 43.65 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.4622, allocations: 113.2 MB / 0.6298 GB, free: 8.355 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.4624, allocations: 75.97 kB / 0.6298 GB, free: 8.281 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7396/1.202, allocations: 227.6 MB / 0.8521 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.886e-06/1.202, allocations: 3.984 kB / 0.8521 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006017/1.203, allocations: 236 kB / 0.8524 GB, free: 21.07 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.03971/1.242, allocations: 12.67 MB / 0.8647 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/1.242, allocations: 8.031 kB / 0.8647 GB, free: 8.293 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04581/1.288, allocations: 12.6 MB / 0.8771 GB, free: 11.65 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02848/1.317, allocations: 11.37 MB / 0.8882 GB, free: 192 kB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007997/1.318, allocations: 0.8785 MB / 0.889 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005309/1.323, allocations: 1.171 MB / 0.8902 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3317/1.655, allocations: 27.72 MB / 0.9172 GB, free: 58.55 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006081/1.655, allocations: 141.9 kB / 0.9174 GB, free: 58.55 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002945/1.658, allocations: 0.5445 MB / 0.9179 GB, free: 58.55 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003206/1.661, allocations: 2.53 MB / 0.9204 GB, free: 58.52 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04454/1.706, allocations: 22.4 MB / 0.9422 GB, free: 58.41 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1334/1.839, allocations: 119.3 MB / 1.059 GB, free: 15.15 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03019/1.87, allocations: 12.9 MB / 1.071 GB, free: 11.58 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02842/1.898, allocations: 17.28 MB / 1.088 GB, free: 3.609 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.687e-05/1.898, allocations: 91.03 kB / 1.088 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=459): time 5.921e-06/1.898, allocations: 0 / 1.088 GB, free: 3.539 MB / 0.5573 GB Notification: Performance of matching and sorting (n=543): time 0.4279/2.326, allocations: 62.67 MB / 1.15 GB, free: 101.1 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/2.326, allocations: 366.9 kB / 1.15 GB, free: 100.7 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01884/2.345, allocations: 10.25 MB / 1.16 GB, free: 100 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.001426/2.347, allocations: 109 kB / 1.16 GB, free: 100 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.006051/2.353, allocations: 7.892 MB / 1.168 GB, free: 96.27 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.002894/2.356, allocations: 2.019 MB / 1.17 GB, free: 95.1 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001294/2.357, allocations: 277.1 kB / 1.17 GB, free: 95.1 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0006316/2.358, allocations: 0.8947 MB / 1.171 GB, free: 94.77 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009908/2.367, allocations: 5.828 MB / 1.177 GB, free: 94.74 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01536/2.383, allocations: 13.69 MB / 1.19 GB, free: 84.69 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/2.395, allocations: 8.73 MB / 1.198 GB, free: 83.36 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002603/2.395, allocations: 79.09 kB / 1.198 GB, free: 83.36 MB / 0.573 GB Notification: Performance of matching and sorting (n=1812) (initialization): time 0.04271/2.438, allocations: 22.28 MB / 1.22 GB, free: 76.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002487/2.438, allocations: 121.3 kB / 1.22 GB, free: 76.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004796/2.439, allocations: 275.9 kB / 1.221 GB, free: 76.25 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009241/2.448, allocations: 3.285 MB / 1.224 GB, free: 75.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0124/2.461, allocations: 3.339 MB / 1.227 GB, free: 75.29 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02501/2.486, allocations: 23.21 MB / 1.25 GB, free: 62.95 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01477/2.5, allocations: 0.8203 MB / 1.251 GB, free: 62.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003416/2.504, allocations: 0.8107 MB / 1.251 GB, free: 62.05 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * Number of states: 0 () * Number of discrete variables: 132 (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.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.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1692): * Single equations (assignments): 1685 * 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.015/2.519, allocations: 5.286 MB / 1.256 GB, free: 57.43 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004059/2.523, allocations: 1.003 MB / 1.257 GB, free: 56.41 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0246/2.548, allocations: 12.62 MB / 1.27 GB, free: 46.27 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.477e-05/2.548, allocations: 56 kB / 1.27 GB, free: 46.22 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.65e-05/2.548, allocations: 20 kB / 1.27 GB, free: 46.2 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.488e-05/2.548, allocations: 25.12 kB / 1.27 GB, free: 46.2 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05954/2.607, allocations: 28.69 MB / 1.298 GB, free: 23.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.133e-05/2.607, allocations: 12 kB / 1.298 GB, free: 23.17 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005135/2.613, allocations: 1.069 MB / 1.299 GB, free: 22.36 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007046/2.62, allocations: 2.829 MB / 1.302 GB, free: 20.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001616/2.621, allocations: 105.8 kB / 1.302 GB, free: 20.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02487/2.646, allocations: 21.78 MB / 1.323 GB, free: 0.9453 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.073e-05/2.646, allocations: 15.94 kB / 1.323 GB, free: 0.9297 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2999/2.946, allocations: 22.67 MB / 1.345 GB, free: 109.3 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003625/2.95, allocations: 1.087 MB / 1.346 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003243/2.953, allocations: 102.6 kB / 1.346 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006265/2.959, allocations: 371.1 kB / 1.347 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001505/2.961, allocations: 353.7 kB / 1.347 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004849/2.961, allocations: 145.8 kB / 1.347 GB, free: 109.2 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.01179/2.973, allocations: 7.402 MB / 1.354 GB, free: 108.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 2.71e-07/2.973, allocations: 0 / 1.354 GB, free: 108.9 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01451/2.988, allocations: 2.798 MB / 1.357 GB, free: 108.9 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (451): * Single equations (assignments): 444 * 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.001023/2.989, allocations: 281.6 kB / 1.357 GB, free: 108.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02206/3.011, allocations: 14.66 MB / 1.372 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/3.011, allocations: 1.75 kB / 1.372 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01037/3.021, allocations: 6.25 MB / 1.378 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008979/3.03, allocations: 1.324 MB / 1.379 GB, free: 107.7 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0522/3.083, allocations: 31.61 MB / 1.41 GB, free: 95.57 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01696/3.1, allocations: 8.164 MB / 1.418 GB, free: 93.2 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01308/3.113, allocations: 4.64 MB / 1.423 GB, free: 92.86 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00273/3.115, allocations: 0.6544 MB / 1.423 GB, free: 92.84 MB / 0.5886 GB Notification: Performance of SimCode: time 2.164e-06/3.115, allocations: 0 / 1.423 GB, free: 92.84 MB / 0.5886 GB Notification: Performance of Templates: time 0.1676/3.283, allocations: 106.6 MB / 1.527 GB, free: 16.49 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches