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.001105/0.001104, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008128/0.0008128, allocations: 91 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1759/0.1759, allocations: 45.15 MB / 383.8 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.07e-05/2.081e-05, allocations: 4 kB / 453.2 MB, free: 75.85 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09811, allocations: 63.25 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.4965, allocations: 112.5 MB / 0.6142 GB, free: 6.453 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.4968, allocations: 77.77 kB / 0.6143 GB, free: 6.414 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8564/1.353, allocations: 222.4 MB / 0.8315 GB, free: 98.14 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.174e-06/1.353, allocations: 0 / 0.8315 GB, free: 98.14 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001016/1.354, allocations: 239.5 kB / 0.8318 GB, free: 98.13 MB / 0.5261 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.03919/1.393, allocations: 11.7 MB / 0.8432 GB, free: 93.85 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.394, allocations: 7.5 kB / 0.8432 GB, free: 93.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0492/1.443, allocations: 12.62 MB / 0.8555 GB, free: 91.75 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02975/1.473, allocations: 11.31 MB / 0.8666 GB, free: 85.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008057/1.473, allocations: 384 kB / 0.8669 GB, free: 84.77 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006199/1.48, allocations: 0.6834 MB / 0.8676 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0326/1.512, allocations: 15.77 MB / 0.883 GB, free: 68.32 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05853/1.571, allocations: 23.77 MB / 0.9062 GB, free: 42.44 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009212/1.572, allocations: 142.6 kB / 0.9063 GB, free: 42.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007777/1.58, allocations: 71.8 kB / 0.9064 GB, free: 42.23 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00356/1.583, allocations: 2.532 MB / 0.9089 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.537/2.12, allocations: 114 MB / 1.02 GB, free: 41.73 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01265/2.133, allocations: 9.694 MB / 1.03 GB, free: 40.43 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007358/2.14, allocations: 6.685 MB / 1.036 GB, free: 40.37 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001249/2.142, allocations: 1.072 MB / 1.037 GB, free: 39.52 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.802e-05/2.142, allocations: 83.62 kB / 1.037 GB, free: 39.48 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=438): time 7.504e-06/2.142, allocations: 5.125 kB / 1.037 GB, free: 39.48 MB / 0.5417 GB Notification: Performance of matching and sorting (n=526): time 0.1142/2.256, allocations: 57.39 MB / 1.093 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001234/2.256, allocations: 363.8 kB / 1.094 GB, free: 18.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/2.269, allocations: 7.526 MB / 1.101 GB, free: 16.16 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001456/2.27, allocations: 25.7 kB / 1.101 GB, free: 16.13 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.005196/2.275, allocations: 8.022 MB / 1.109 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.002982/2.278, allocations: 1.903 MB / 1.111 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001432/2.28, allocations: 0 / 1.111 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0006172/2.28, allocations: 0.9081 MB / 1.112 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007449/2.288, allocations: 5.535 MB / 1.117 GB, free: 4.965 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0141/2.302, allocations: 13.45 MB / 1.13 GB, free: 4.777 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0173/2.319, allocations: 8.675 MB / 1.139 GB, free: 14.38 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003337/2.32, allocations: 80 kB / 1.139 GB, free: 14.3 MB / 0.573 GB Notification: Performance of matching and sorting (n=1846) (initialization): time 0.04396/2.364, allocations: 20.28 MB / 1.159 GB, free: 13.37 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000193/2.364, allocations: 128 kB / 1.159 GB, free: 13.25 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003695/2.364, allocations: 280 kB / 1.159 GB, free: 12.97 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007576/2.372, allocations: 3.291 MB / 1.162 GB, free: 10.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01348/2.385, allocations: 3.405 MB / 1.165 GB, free: 7.66 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02731/2.413, allocations: 21.34 MB / 1.186 GB, free: 4.645 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01326/2.426, allocations: 0.5673 MB / 1.187 GB, free: 4.215 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003645/2.43, allocations: 0.8266 MB / 1.188 GB, free: 3.422 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1282 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1726): * Single equations (assignments): 1719 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002551/2.432, allocations: 0.8558 MB / 1.189 GB, free: 2.57 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001957/2.434, allocations: 0.8253 MB / 1.189 GB, free: 1.734 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4228/2.857, allocations: 11.89 MB / 1.201 GB, free: 151.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001031/2.857, allocations: 55.16 kB / 1.201 GB, free: 151.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-05/2.857, allocations: 18.09 kB / 1.201 GB, free: 151.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001434/2.857, allocations: 27.09 kB / 1.201 GB, free: 151.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05982/2.917, allocations: 25.05 MB / 1.226 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.282e-05/2.917, allocations: 8.344 kB / 1.226 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005413/2.923, allocations: 0.9839 MB / 1.226 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006438/2.929, allocations: 2.799 MB / 1.229 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001096/2.93, allocations: 16.56 kB / 1.229 GB, free: 150.3 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02158/2.952, allocations: 19.73 MB / 1.249 GB, free: 141.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/2.952, allocations: 3.281 kB / 1.249 GB, free: 141.9 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02724/2.979, allocations: 19.37 MB / 1.267 GB, free: 134.3 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003035/2.982, allocations: 0.8207 MB / 1.268 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002908/2.985, allocations: 10.12 kB / 1.268 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005699/2.991, allocations: 284.7 kB / 1.269 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001304/2.992, allocations: 323.4 kB / 1.269 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003727/2.993, allocations: 133.1 kB / 1.269 GB, free: 134.1 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.009479/3.002, allocations: 5.091 MB / 1.274 GB, free: 132.3 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.4e-07/3.002, allocations: 1.531 kB / 1.274 GB, free: 132.3 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01518/3.017, allocations: 2.403 MB / 1.276 GB, free: 132.3 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 427 * 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.001318/3.019, allocations: 188.6 kB / 1.276 GB, free: 132.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.02127/3.04, allocations: 14.24 MB / 1.29 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/3.04, allocations: 6.453 kB / 1.29 GB, free: 127.6 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.008458/3.048, allocations: 5.864 MB / 1.296 GB, free: 124.9 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006388/3.055, allocations: 0.9957 MB / 1.297 GB, free: 124.1 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04306/3.098, allocations: 22.36 MB / 1.319 GB, free: 104.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01221/3.11, allocations: 8.193 MB / 1.327 GB, free: 98.71 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.01216/3.122, allocations: 4.532 MB / 1.331 GB, free: 95.79 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002377/3.125, allocations: 0.5806 MB / 1.332 GB, free: 95.25 MB / 0.6042 GB Notification: Performance of SimCode: time 1.082e-06/3.125, allocations: 0 / 1.332 GB, free: 95.25 MB / 0.6042 GB Notification: Performance of Templates: time 0.5567/3.681, allocations: 92.86 MB / 1.423 GB, free: 142.3 MB / 0.6042 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