Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001789/0.001789, allocations: 111.6 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00203/0.00203, allocations: 212.9 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.92 kB / 378.3 MB, free: 2.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2598, allocations: 53.36 MB / 431.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0134/0.2731, allocations: 11.27 MB / 442.9 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008216/0.2814, allocations: 4.096 MB / 447 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.2828, allocations: 79.62 kB / 447.1 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006207/0.289, allocations: 3.224 MB / 450.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005497/0.2945, allocations: 1.938 MB / 452.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002061/0.2966, allocations: 0.8266 MB / 453.1 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006854/0.3034, allocations: 4.413 MB / 457.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004482/0.3079, allocations: 3.032 MB / 460.5 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003057/0.3109, allocations: 1.639 MB / 462.1 MB, free: 8.277 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003792/0.3147, allocations: 2.286 MB / 464.4 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.3158, allocations: 348 kB / 464.8 MB, free: 5.645 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00271/0.3185, allocations: 1.264 MB / 466 MB, free: 4.379 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00252/0.321, allocations: 2.057 MB / 468.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003149/0.3242, allocations: 2.272 MB / 470.4 MB, free: 32 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008858/0.333, allocations: 7.394 MB / 477.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.333, allocations: 0 / 477.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.333, allocations: 0 / 477.8 MB, free: 8.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001561/0.3332, allocations: 4 kB / 477.8 MB, free: 8.602 MB / 382.1 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.01014/0.3433, allocations: 5.118 MB / 482.9 MB, free: 3.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3434, allocations: 12.03 kB / 482.9 MB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008559/0.3519, allocations: 2.158 MB / 485.1 MB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006602/0.3585, allocations: 2.709 MB / 487.8 MB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3587, allocations: 246.2 kB / 488 MB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007749/0.3595, allocations: 315.8 kB / 488.3 MB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01767/0.3772, allocations: 10.44 MB / 498.8 MB, free: 2.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.3773, allocations: 43.62 kB / 498.8 MB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004042/0.3777, allocations: 159.8 kB / 499 MB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003452/0.3812, allocations: 2.029 MB / 0.4892 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.3988, allocations: 8.912 MB / 0.4979 GB, free: 7.637 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2708/0.6696, allocations: 40.74 MB / 0.5377 GB, free: 90.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/0.68, allocations: 3.866 MB / 0.5415 GB, free: 90.03 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00233/0.6823, allocations: 2.303 MB / 0.5438 GB, free: 89.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009982/0.6923, allocations: 6.68 MB / 0.5503 GB, free: 88.12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.6924, allocations: 54.94 kB / 0.5503 GB, free: 88.07 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.278e-06/0.6924, allocations: 5.266 kB / 0.5503 GB, free: 88.07 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04256/0.7349, allocations: 18.73 MB / 0.5686 GB, free: 76.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.745e-05/0.735, allocations: 171.5 kB / 0.5688 GB, free: 75.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00466/0.7397, allocations: 4.569 MB / 0.5733 GB, free: 71.48 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002592/0.7399, allocations: 57.7 kB / 0.5733 GB, free: 71.42 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.7412, allocations: 3.244 MB / 0.5765 GB, free: 68.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005384/0.7418, allocations: 0.7897 MB / 0.5772 GB, free: 67.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001199/0.743, allocations: 1.285 MB / 0.5785 GB, free: 66.25 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.743, allocations: 307.6 kB / 0.5788 GB, free: 65.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002532/0.7455, allocations: 2.385 MB / 0.5811 GB, free: 63.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003634/0.7492, allocations: 6.075 MB / 0.5871 GB, free: 55.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007088/0.7563, allocations: 9.147 MB / 0.596 GB, free: 44.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.754e-05/0.7563, allocations: 40 kB / 0.596 GB, free: 44.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01206/0.7684, allocations: 9.29 MB / 0.6051 GB, free: 35.57 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.094e-05/0.7684, allocations: 63.98 kB / 0.6052 GB, free: 35.51 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-05/0.7685, allocations: 132 kB / 0.6053 GB, free: 35.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.771, allocations: 1.195 MB / 0.6065 GB, free: 34.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003955/0.775, allocations: 1.431 MB / 0.6078 GB, free: 32.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007264/0.7822, allocations: 7.177 MB / 0.6149 GB, free: 25.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004549/0.7868, allocations: 351.6 kB / 0.6152 GB, free: 25.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000565/0.7873, allocations: 380 kB / 0.6156 GB, free: 24.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * 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 (763): * Single equations (assignments): 757 * 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,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002953/0.7903, allocations: 2.183 MB / 0.6177 GB, free: 22.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006571/0.7909, allocations: 409.2 kB / 0.6181 GB, free: 22.15 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005971/0.7969, allocations: 4.038 MB / 0.622 GB, free: 18.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.472e-05/0.7969, allocations: 20 kB / 0.622 GB, free: 18.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.7969, allocations: 8 kB / 0.622 GB, free: 18.07 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.797, allocations: 11.97 kB / 0.6221 GB, free: 18.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.8114, allocations: 9.376 MB / 0.6312 GB, free: 8.578 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.8114, allocations: 7.375 kB / 0.6312 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.8128, allocations: 319.5 kB / 0.6315 GB, free: 8.262 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/0.8151, allocations: 1.025 MB / 0.6325 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.8153, allocations: 40 kB / 0.6326 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007468/0.8227, allocations: 6.782 MB / 0.6392 GB, free: 320 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.8228, allocations: 7.938 kB / 0.6392 GB, free: 312 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01182/0.8346, allocations: 7.062 MB / 0.6461 GB, free: 9.148 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001461/0.836, allocations: 409.1 kB / 0.6465 GB, free: 8.746 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005474/0.8366, allocations: 35.98 kB / 0.6465 GB, free: 8.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001571/0.8382, allocations: 123.8 kB / 0.6466 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003459/0.8385, allocations: 136.8 kB / 0.6468 GB, free: 8.453 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001548/0.8387, allocations: 59.83 kB / 0.6468 GB, free: 8.398 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004779/0.8434, allocations: 2.923 MB / 0.6497 GB, free: 5.473 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8434, allocations: 0 / 0.6497 GB, free: 5.473 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005366/0.8488, allocations: 1.055 MB / 0.6507 GB, free: 4.418 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (157): * Single equations (assignments): 153 * 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 {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005176/0.8493, allocations: 178.6 kB / 0.6509 GB, free: 4.238 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009422/0.8587, allocations: 5.486 MB / 0.6562 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.046e-06/0.8587, allocations: 0 / 0.6562 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00353/0.8623, allocations: 1.93 MB / 0.6581 GB, free: 12.82 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003036/0.8653, allocations: 491.9 kB / 0.6586 GB, free: 12.35 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.8828, allocations: 10.28 MB / 0.6686 GB, free: 1.949 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004099/0.8869, allocations: 3.367 MB / 0.6719 GB, free: 14.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004585/0.8914, allocations: 2.033 MB / 0.6739 GB, free: 12.51 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008667/0.8923, allocations: 263.4 kB / 0.6742 GB, free: 12.25 MB / 494.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8923, allocations: 0 / 0.6742 GB, free: 12.25 MB / 494.1 MB Notification: Performance of Templates: time 0.08645/0.9788, allocations: 43.58 MB / 0.7167 GB, free: 0.9297 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.62584049301222]