Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 91.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.948/0.948, allocations: 177 MB / 204.8 MB, free: 5.09 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 3.938 kB / 272.9 MB, free: 1.117 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.425e-05/2.599e-05, allocations: 5.266 kB / 272.9 MB, free: 1.113 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.009704/0.00973, allocations: 10.93 MB / 283.8 MB, free: 6.137 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007541/0.01727, allocations: 3.983 MB / 287.8 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001838/0.01911, allocations: 79.62 kB / 287.9 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1334/0.1525, allocations: 3.409 MB / 291.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004984/0.1574, allocations: 2.005 MB / 293.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002137/0.1596, allocations: 0.9091 MB / 294.2 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007199/0.1668, allocations: 4.813 MB / 299 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00467/0.1714, allocations: 3.392 MB / 302.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00573/0.1772, allocations: 2.96 MB / 305.4 MB, free: 11.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002953/0.1801, allocations: 2.241 MB / 307.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009627/0.1811, allocations: 350.8 kB / 308 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.1831, allocations: 1.189 MB / 309.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001697/0.1848, allocations: 2.145 MB / 311.3 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001983/0.1868, allocations: 1.314 MB / 312.6 MB, free: 7.754 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004975/0.1918, allocations: 4.859 MB / 317.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1918, allocations: 0 / 317.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1918, allocations: 0 / 317.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001944/0.192, allocations: 0 / 317.5 MB, free: 3.203 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.008105/0.2001, allocations: 5.53 MB / 323 MB, free: 13.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.2001, allocations: 19.97 kB / 323 MB, free: 13.69 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005304/0.2054, allocations: 2.57 MB / 325.6 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004244/0.2097, allocations: 2.424 MB / 328 MB, free: 8.852 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001635/0.2098, allocations: 242.5 kB / 328.3 MB, free: 8.648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005649/0.2104, allocations: 317.5 kB / 328.6 MB, free: 8.375 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/0.2211, allocations: 6.353 MB / 334.9 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.2213, allocations: 37.95 kB / 335 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.2216, allocations: 156.4 kB / 335.1 MB, free: 1.152 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001717/0.2233, allocations: 1.917 MB / 337 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008217/0.2315, allocations: 3.338 MB / 340.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03498/0.2665, allocations: 43.7 MB / 384.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00569/0.2722, allocations: 2.471 MB / 386.6 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009321/0.2731, allocations: 0.6017 MB / 387.2 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005415/0.2785, allocations: 4.16 MB / 391.3 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.2786, allocations: 54.39 kB / 391.4 MB, free: 7.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 4.468e-06/0.2786, allocations: 0 / 391.4 MB, free: 7.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=150): time 0.01997/0.2985, allocations: 10.71 MB / 402.1 MB, free: 13.17 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.2986, allocations: 171.2 kB / 402.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00406/0.3027, allocations: 3.73 MB / 406 MB, free: 9.234 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.3029, allocations: 49.38 kB / 406 MB, free: 9.184 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001851/0.3047, allocations: 3.529 MB / 409.5 MB, free: 5.672 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007025/0.3054, allocations: 0.6503 MB / 410.2 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/0.3067, allocations: 1.346 MB / 411.5 MB, free: 3.668 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3068, allocations: 476.8 kB / 412 MB, free: 3.199 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.3078, allocations: 0.6288 MB / 412.6 MB, free: 2.566 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003933/0.3118, allocations: 6.387 MB / 419 MB, free: 9.527 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005611/0.3174, allocations: 7.719 MB / 426.7 MB, free: 15.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.973e-05/0.3175, allocations: 40 kB / 426.8 MB, free: 15.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.007133/0.3246, allocations: 5.487 MB / 432.3 MB, free: 9.648 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.106e-05/0.3247, allocations: 67.94 kB / 432.3 MB, free: 9.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001201/0.3248, allocations: 136 kB / 432.5 MB, free: 9.449 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.3257, allocations: 479.8 kB / 432.9 MB, free: 8.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/0.328, allocations: 1.415 MB / 434.4 MB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002599/0.3306, allocations: 2.889 MB / 437.2 MB, free: 4.555 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002218/0.3329, allocations: 358.2 kB / 437.6 MB, free: 4.207 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003432/0.3332, allocations: 376 kB / 438 MB, free: 3.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (762): * Single equations (assignments): 756 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001153/0.3343, allocations: 0.6846 MB / 438.6 MB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000415/0.3348, allocations: 373.8 kB / 439 MB, free: 2.777 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/0.3364, allocations: 1.196 MB / 440.2 MB, free: 1.566 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.3365, allocations: 20 kB / 440.2 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.3365, allocations: 0 / 440.2 MB, free: 1.547 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.3365, allocations: 11.97 kB / 440.2 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1195/0.456, allocations: 4.964 MB / 445.2 MB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.456, allocations: 10.81 kB / 445.2 MB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.4567, allocations: 241.1 kB / 445.4 MB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008252/0.4575, allocations: 277.1 kB / 445.7 MB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.868e-05/0.4576, allocations: 31.02 kB / 445.7 MB, free: 121.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001988/0.4596, allocations: 2.611 MB / 448.4 MB, free: 119.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/0.4596, allocations: 14.17 kB / 448.4 MB, free: 119.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003051/0.4626, allocations: 2.41 MB / 450.8 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005563/0.4632, allocations: 322.9 kB / 451.1 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002737/0.4635, allocations: 37.03 kB / 451.1 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006996/0.4642, allocations: 96.84 kB / 451.2 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.4643, allocations: 106.1 kB / 451.3 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.382e-05/0.4644, allocations: 46.33 kB / 451.4 MB, free: 118.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002025/0.4664, allocations: 1.577 MB / 453 MB, free: 118.6 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.4664, allocations: 0 / 453 MB, free: 118.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003275/0.4697, allocations: 1.011 MB / 454 MB, free: 118.6 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (120): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003418/0.47, allocations: 189 kB / 454.2 MB, free: 118.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003586/0.4736, allocations: 2.939 MB / 457.1 MB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.4736, allocations: 0 / 457.1 MB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007507/0.4744, allocations: 0.6799 MB / 457.8 MB, free: 118 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.4758, allocations: 416.9 kB / 458.2 MB, free: 118 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009324/0.4851, allocations: 7.683 MB / 465.9 MB, free: 114.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001125/0.4862, allocations: 1.268 MB / 467.1 MB, free: 114.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002827/0.489, allocations: 1.604 MB / 468.7 MB, free: 114.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004909/0.4895, allocations: 222.9 kB / 468.9 MB, free: 114.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.433e-06/0.4895, allocations: 0.9844 kB / 469 MB, free: 114.3 MB / 394.7 MB Notification: Performance of Templates: time 0.04269/0.5322, allocations: 27.56 MB / 496.5 MB, free: 90.32 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7667499822564423]