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.001432/0.001432, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001581/0.001581, allocations: 204.5 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.486/1.486, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002147/0.002147, allocations: 67.84 kB / 378.2 MB, free: 2.285 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2413, allocations: 53.41 MB / 431.6 MB, free: 6.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01335/0.2547, allocations: 9.819 MB / 441.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008668/0.2633, allocations: 3.867 MB / 445.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001451/0.2648, allocations: 79.62 kB / 445.4 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006146/0.2709, allocations: 3.08 MB / 448.5 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00529/0.2762, allocations: 1.946 MB / 450.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001879/0.2781, allocations: 0.8228 MB / 451.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006954/0.2851, allocations: 4.401 MB / 455.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004321/0.2894, allocations: 3.032 MB / 458.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.2924, allocations: 1.636 MB / 460.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003653/0.2961, allocations: 2.141 MB / 462.5 MB, free: 7.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008845/0.2969, allocations: 348 kB / 462.8 MB, free: 7.191 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00254/0.2995, allocations: 1.139 MB / 463.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002302/0.3018, allocations: 2.049 MB / 466 MB, free: 3.996 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002456/0.3042, allocations: 1.681 MB / 467.7 MB, free: 2.305 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01031/0.3146, allocations: 7.428 MB / 475.1 MB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.3146, allocations: 0 / 475.1 MB, free: 10.85 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.3146, allocations: 0 / 475.1 MB, free: 10.85 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002839/0.3148, allocations: 0 / 475.1 MB, free: 10.85 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.01344/0.3283, allocations: 5.122 MB / 480.2 MB, free: 5.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3283, allocations: 11.98 kB / 480.2 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009422/0.3377, allocations: 2.158 MB / 482.4 MB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00728/0.345, allocations: 2.717 MB / 485.1 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002189/0.3452, allocations: 250.1 kB / 485.4 MB, free: 484 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009596/0.3462, allocations: 315.9 kB / 485.7 MB, free: 168 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01874/0.365, allocations: 10.47 MB / 496.1 MB, free: 4.988 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/0.3651, allocations: 43.67 kB / 496.2 MB, free: 4.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004202/0.3655, allocations: 155.8 kB / 496.3 MB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003594/0.3691, allocations: 2.029 MB / 498.4 MB, free: 2.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01808/0.3872, allocations: 8.885 MB / 0.4954 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05695/0.4441, allocations: 38.3 MB / 0.5328 GB, free: 2.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.219/0.6631, allocations: 3.852 MB / 0.5365 GB, free: 100.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002748/0.6659, allocations: 2.304 MB / 0.5388 GB, free: 99.45 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009732/0.6756, allocations: 6.128 MB / 0.5448 GB, free: 97.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.6756, allocations: 62.09 kB / 0.5448 GB, free: 97.03 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.058e-06/0.6756, allocations: 3.188 kB / 0.5448 GB, free: 97.03 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04428/0.7199, allocations: 18.71 MB / 0.5631 GB, free: 84.22 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.722e-05/0.72, allocations: 179.5 kB / 0.5633 GB, free: 84.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004086/0.7241, allocations: 3.9 MB / 0.5671 GB, free: 80.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003473/0.7244, allocations: 61.3 kB / 0.5671 GB, free: 80.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001198/0.7256, allocations: 3.278 MB / 0.5703 GB, free: 77.06 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005755/0.7262, allocations: 0.7859 MB / 0.5711 GB, free: 76.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.7274, allocations: 1.289 MB / 0.5723 GB, free: 74.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.661e-05/0.7275, allocations: 309.1 kB / 0.5726 GB, free: 74.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002528/0.73, allocations: 2.378 MB / 0.575 GB, free: 72.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003661/0.7336, allocations: 6.1 MB / 0.5809 GB, free: 64.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00784/0.7415, allocations: 9.144 MB / 0.5899 GB, free: 53.43 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.7416, allocations: 36 kB / 0.5899 GB, free: 53.39 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01544/0.757, allocations: 9.23 MB / 0.5989 GB, free: 44.15 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.99e-05/0.7571, allocations: 62.66 kB / 0.599 GB, free: 44.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001466/0.7573, allocations: 135.9 kB / 0.5991 GB, free: 43.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/0.76, allocations: 1.195 MB / 0.6003 GB, free: 42.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004663/0.7647, allocations: 1.435 MB / 0.6017 GB, free: 41.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008049/0.7727, allocations: 7.094 MB / 0.6086 GB, free: 34.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005238/0.778, allocations: 351.6 kB / 0.6089 GB, free: 33.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/0.779, allocations: 380 kB / 0.6093 GB, free: 33.42 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.004025/0.783, allocations: 2.17 MB / 0.6114 GB, free: 31.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009215/0.7839, allocations: 349.8 kB / 0.6117 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005962/0.7899, allocations: 3.977 MB / 0.6156 GB, free: 26.91 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-05/0.7899, allocations: 24 kB / 0.6156 GB, free: 26.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.7899, allocations: 4 kB / 0.6156 GB, free: 26.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/0.79, allocations: 11.97 kB / 0.6157 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/0.8041, allocations: 8.252 MB / 0.6237 GB, free: 18.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/0.8041, allocations: 4 kB / 0.6237 GB, free: 18.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.8056, allocations: 316.4 kB / 0.624 GB, free: 18.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002407/0.808, allocations: 1.031 MB / 0.625 GB, free: 17.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002872/0.8083, allocations: 32 kB / 0.6251 GB, free: 17.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007479/0.8158, allocations: 6.68 MB / 0.6316 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.8158, allocations: 12 kB / 0.6316 GB, free: 10.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009939/0.8257, allocations: 6.992 MB / 0.6384 GB, free: 3.312 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/0.8268, allocations: 317.5 kB / 0.6387 GB, free: 3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001066/0.8278, allocations: 39.92 kB / 0.6388 GB, free: 2.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002218/0.83, allocations: 123.8 kB / 0.6389 GB, free: 2.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005019/0.8305, allocations: 132.9 kB / 0.639 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/0.8308, allocations: 56 kB / 0.6391 GB, free: 2.652 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003852/0.8346, allocations: 2.259 MB / 0.6413 GB, free: 416 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8346, allocations: 0 / 0.6413 GB, free: 416 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.007678/0.8423, allocations: 1.039 MB / 0.6423 GB, free: 15.37 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.001131/0.8435, allocations: 174.8 kB / 0.6424 GB, free: 15.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01183/0.8553, allocations: 5.49 MB / 0.6478 GB, free: 9.711 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/0.8553, allocations: 0 / 0.6478 GB, free: 9.711 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00425/0.8595, allocations: 1.934 MB / 0.6497 GB, free: 7.77 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003866/0.8634, allocations: 410.7 kB / 0.6501 GB, free: 7.375 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02142/0.8848, allocations: 10.18 MB / 0.66 GB, free: 13.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005886/0.8907, allocations: 2.841 MB / 0.6628 GB, free: 10.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00544/0.8962, allocations: 1.951 MB / 0.6647 GB, free: 8.242 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.8973, allocations: 231.4 kB / 0.6649 GB, free: 8.016 MB / 478.1 MB Notification: Performance of SimCode: time 1.422e-06/0.8973, allocations: 0 / 0.6649 GB, free: 8.016 MB / 478.1 MB Notification: Performance of Templates: time 0.07888/0.9761, allocations: 38.16 MB / 0.7022 GB, free: 2.32 MB / 0.4981 GB " [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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.444854479283094]