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.0015/0.0015, allocations: 204.8 kB / 18.11 MB, free: 3.598 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007589/0.0007588, allocations: 102.8 kB / 297.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3093/0.3093, allocations: 44.82 MB / 394.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 8 kB / 467.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3183, allocations: 62.96 MB / 0.5184 GB, free: 37.5 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1465/0.4648, allocations: 113.2 MB / 0.629 GB, free: 8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.4651, allocations: 79.95 kB / 0.6291 GB, free: 7.926 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8448/1.31, allocations: 221.9 MB / 0.8458 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.376e-06/1.31, allocations: 0 / 0.8458 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001152/1.311, allocations: 232 kB / 0.846 GB, free: 13.04 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.0462/1.357, allocations: 12.04 MB / 0.8577 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.357, allocations: 8.031 kB / 0.8577 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0413/1.399, allocations: 9.316 MB / 0.8668 GB, free: 7.531 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03281/1.432, allocations: 10.58 MB / 0.8772 GB, free: 12.85 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001308/1.433, allocations: 0.8749 MB / 0.878 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006472/1.439, allocations: 1.168 MB / 0.8792 GB, free: 10.81 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4682/1.908, allocations: 27.38 MB / 0.9059 GB, free: 59.25 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001458/1.909, allocations: 151.9 kB / 0.9061 GB, free: 59.25 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006613/1.916, allocations: 0.5435 MB / 0.9066 GB, free: 59.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00562/1.921, allocations: 2.535 MB / 0.9091 GB, free: 59.22 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05631/1.978, allocations: 21.97 MB / 0.9305 GB, free: 59.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1481/2.126, allocations: 119.3 MB / 1.047 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03084/2.157, allocations: 12.62 MB / 1.059 GB, free: 12.34 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008693/2.166, allocations: 7.146 MB / 1.066 GB, free: 9.391 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03291/2.199, allocations: 17.23 MB / 1.083 GB, free: 12.86 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.784e-05/2.199, allocations: 88.16 kB / 1.083 GB, free: 12.78 MB / 0.573 GB Notification: Performance of pre-optimization done (n=459): time 7.414e-06/2.199, allocations: 3.656 kB / 1.083 GB, free: 12.78 MB / 0.573 GB Notification: Performance of matching and sorting (n=543): time 0.5499/2.749, allocations: 61.15 MB / 1.143 GB, free: 117 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002126/2.749, allocations: 377.6 kB / 1.143 GB, free: 116.6 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03419/2.783, allocations: 11.5 MB / 1.155 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.001488/2.785, allocations: 110.2 kB / 1.155 GB, free: 115.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.008389/2.793, allocations: 7.885 MB / 1.162 GB, free: 112.1 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.003704/2.797, allocations: 2.024 MB / 1.164 GB, free: 111 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002741/2.799, allocations: 279.2 kB / 1.165 GB, free: 111 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.001405/2.801, allocations: 0.8997 MB / 1.165 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01304/2.814, allocations: 5.841 MB / 1.171 GB, free: 110.6 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01888/2.833, allocations: 13.78 MB / 1.185 GB, free: 100.5 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02608/2.859, allocations: 21.32 MB / 1.205 GB, free: 89.74 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005838/2.86, allocations: 76.47 kB / 1.206 GB, free: 89.74 MB / 0.5886 GB Notification: Performance of matching and sorting (n=1818) (initialization): time 0.05381/2.914, allocations: 22.33 MB / 1.227 GB, free: 81.88 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005134/2.914, allocations: 125.5 kB / 1.227 GB, free: 81.87 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006275/2.915, allocations: 278.1 kB / 1.228 GB, free: 81.87 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01032/2.925, allocations: 3.237 MB / 1.231 GB, free: 81.28 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01382/2.939, allocations: 3.36 MB / 1.234 GB, free: 80.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02874/2.968, allocations: 22.61 MB / 1.256 GB, free: 68.74 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01551/2.983, allocations: 0.8218 MB / 1.257 GB, free: 68.49 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004581/2.988, allocations: 0.8177 MB / 1.258 GB, free: 68.38 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1264 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1698): * Single equations (assignments): 1691 * 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.0209/3.009, allocations: 5.288 MB / 1.263 GB, free: 65.82 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004605/3.013, allocations: 0.9988 MB / 1.264 GB, free: 64.8 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02968/3.043, allocations: 12.63 MB / 1.276 GB, free: 54.66 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001088/3.043, allocations: 59.94 kB / 1.276 GB, free: 54.6 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001018/3.043, allocations: 16 kB / 1.276 GB, free: 54.58 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001808/3.044, allocations: 31.7 kB / 1.276 GB, free: 54.58 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07209/3.116, allocations: 28.69 MB / 1.304 GB, free: 31.52 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.933e-05/3.116, allocations: 8 kB / 1.304 GB, free: 31.51 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005492/3.121, allocations: 1.068 MB / 1.305 GB, free: 30.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007148/3.129, allocations: 2.835 MB / 1.308 GB, free: 28.72 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001226/3.13, allocations: 99.09 kB / 1.308 GB, free: 28.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02469/3.155, allocations: 21.19 MB / 1.329 GB, free: 9.734 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.274e-05/3.155, allocations: 15.94 kB / 1.329 GB, free: 9.719 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.509/3.664, allocations: 19.69 MB / 1.348 GB, free: 108.6 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00514/3.669, allocations: 1.086 MB / 1.349 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005099/3.674, allocations: 102.8 kB / 1.349 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008341/3.682, allocations: 377.8 kB / 1.35 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002353/3.685, allocations: 355.2 kB / 1.35 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007395/3.685, allocations: 144.2 kB / 1.35 GB, free: 108.5 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.02073/3.706, allocations: 7.414 MB / 1.358 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6.01e-07/3.706, allocations: 0 / 1.358 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02401/3.73, allocations: 2.8 MB / 1.36 GB, free: 108.2 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.002323/3.733, allocations: 276.3 kB / 1.361 GB, free: 108.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02919/3.762, allocations: 14.69 MB / 1.375 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.113e-05/3.762, allocations: 0 / 1.375 GB, free: 107.6 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.01196/3.774, allocations: 6.253 MB / 1.381 GB, free: 107.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02929/3.803, allocations: 1.399 MB / 1.382 GB, free: 107 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07604/3.879, allocations: 31.71 MB / 1.413 GB, free: 95.58 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02241/3.902, allocations: 7.919 MB / 1.421 GB, free: 93.29 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01846/3.92, allocations: 4.649 MB / 1.426 GB, free: 92.94 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004799/3.925, allocations: 0.6593 MB / 1.426 GB, free: 92.92 MB / 0.5886 GB Notification: Performance of SimCode: time 1.733e-06/3.925, allocations: 0 / 1.426 GB, free: 92.92 MB / 0.5886 GB Notification: Performance of Templates: time 0.2103/4.135, allocations: 107.1 MB / 1.531 GB, free: 16.51 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/jenkins1/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