Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 107.5 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001424/0.001424, allocations: 179.6 kB / 23.7 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.7 MB / 252.5 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 52.06 kB / 370.9 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.237, allocations: 52.18 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01351/0.2506, allocations: 10.03 MB / 433.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009271/0.2598, allocations: 3.886 MB / 437 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001513/0.2613, allocations: 87.56 kB / 437.1 MB, free: 444 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008291/0.2696, allocations: 3.1 MB / 440.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007813/0.2774, allocations: 2.027 MB / 442.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002936/0.2804, allocations: 0.8188 MB / 443 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009909/0.2903, allocations: 4.462 MB / 447.5 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006154/0.2964, allocations: 3.074 MB / 450.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004084/0.3005, allocations: 1.674 MB / 452.2 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005198/0.3057, allocations: 2.196 MB / 454.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001328/0.3071, allocations: 356 kB / 454.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0035/0.3106, allocations: 1.147 MB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003573/0.3141, allocations: 2.123 MB / 458 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003832/0.318, allocations: 1.743 MB / 459.8 MB, free: 9.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.3311, allocations: 7.689 MB / 467.5 MB, free: 1.883 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.3311, allocations: 4 kB / 467.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3311, allocations: 0 / 467.5 MB, free: 1.879 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002924/0.3314, allocations: 0 / 467.5 MB, free: 1.879 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.01695/0.3483, allocations: 5.248 MB / 472.7 MB, free: 12.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.3484, allocations: 12.03 kB / 472.7 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01529/0.3637, allocations: 2.201 MB / 474.9 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.3749, allocations: 2.794 MB / 477.7 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004287/0.3753, allocations: 250.3 kB / 478 MB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001857/0.3772, allocations: 335.8 kB / 478.3 MB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03168/0.4089, allocations: 10.84 MB / 489.2 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002205/0.4091, allocations: 47.64 kB / 489.2 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001429/0.4105, allocations: 159.8 kB / 489.4 MB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005704/0.4162, allocations: 2.146 MB / 491.5 MB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/0.4383, allocations: 9.211 MB / 0.489 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0599/0.4982, allocations: 39.06 MB / 0.5271 GB, free: 7.625 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.5105, allocations: 3.865 MB / 0.5309 GB, free: 3.727 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003527/0.514, allocations: 2.297 MB / 0.5331 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.272/0.786, allocations: 6.157 MB / 0.5392 GB, free: 106.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.392e-05/0.786, allocations: 52.02 kB / 0.5392 GB, free: 106.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 5.531e-06/0.786, allocations: 0 / 0.5392 GB, free: 106.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.04104/0.8271, allocations: 18.84 MB / 0.5576 GB, free: 95.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.425e-05/0.8271, allocations: 171.5 kB / 0.5578 GB, free: 95.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004126/0.8312, allocations: 3.959 MB / 0.5616 GB, free: 91.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004054/0.8316, allocations: 57.61 kB / 0.5617 GB, free: 91.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.833, allocations: 3.365 MB / 0.565 GB, free: 88.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/0.8336, allocations: 0.7991 MB / 0.5658 GB, free: 87.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001293/0.8349, allocations: 1.303 MB / 0.567 GB, free: 86.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.02e-05/0.835, allocations: 301.1 kB / 0.5673 GB, free: 86.01 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002578/0.8375, allocations: 2.398 MB / 0.5697 GB, free: 83.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003758/0.8413, allocations: 6.171 MB / 0.5757 GB, free: 75.58 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007261/0.8485, allocations: 9.224 MB / 0.5847 GB, free: 64.54 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/0.8486, allocations: 43.88 kB / 0.5847 GB, free: 64.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01359/0.8622, allocations: 9.3 MB / 0.5938 GB, free: 55.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.784e-05/0.8623, allocations: 64.22 kB / 0.5939 GB, free: 55.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.8624, allocations: 132 kB / 0.594 GB, free: 54.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002569/0.865, allocations: 1.203 MB / 0.5952 GB, free: 53.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004138/0.8691, allocations: 1.45 MB / 0.5966 GB, free: 52.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007271/0.8764, allocations: 7.088 MB / 0.6035 GB, free: 45.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004493/0.8809, allocations: 355.6 kB / 0.6038 GB, free: 44.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007209/0.8816, allocations: 380 kB / 0.6042 GB, free: 44.43 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.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.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[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 (772): * Single equations (assignments): 766 * 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.002691/0.8843, allocations: 2.24 MB / 0.6064 GB, free: 42.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005493/0.8849, allocations: 345.7 kB / 0.6067 GB, free: 41.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005906/0.8908, allocations: 3.985 MB / 0.6106 GB, free: 37.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.769e-05/0.8908, allocations: 20 kB / 0.6106 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.8908, allocations: 4 kB / 0.6106 GB, free: 37.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.8908, allocations: 12.91 kB / 0.6107 GB, free: 37.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/0.9036, allocations: 8.338 MB / 0.6188 GB, free: 29.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.9036, allocations: 8 kB / 0.6188 GB, free: 29.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.905, allocations: 315.5 kB / 0.6191 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002273/0.9073, allocations: 1.029 MB / 0.6201 GB, free: 28.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/0.9074, allocations: 43.75 kB / 0.6202 GB, free: 28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007299/0.9147, allocations: 6.676 MB / 0.6267 GB, free: 21.24 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/0.9147, allocations: 10.28 kB / 0.6267 GB, free: 21.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008302/0.923, allocations: 6.991 MB / 0.6335 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009801/0.924, allocations: 317.5 kB / 0.6338 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003972/0.9244, allocations: 48.39 kB / 0.6339 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/0.9258, allocations: 123.8 kB / 0.634 GB, free: 13.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002757/0.9261, allocations: 132.9 kB / 0.6341 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.9262, allocations: 52 kB / 0.6342 GB, free: 13.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002537/0.9287, allocations: 2.287 MB / 0.6364 GB, free: 11.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9287, allocations: 3.938 kB / 0.6364 GB, free: 11.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00432/0.9331, allocations: 1.07 MB / 0.6374 GB, free: 10.15 MB / 446.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.0003796/0.9334, allocations: 182.7 kB / 0.6376 GB, free: 9.969 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006984/0.9404, allocations: 5.51 MB / 0.643 GB, free: 4.477 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/0.9404, allocations: 4 kB / 0.643 GB, free: 4.473 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002779/0.9432, allocations: 1.927 MB / 0.6449 GB, free: 2.535 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/0.9457, allocations: 434.5 kB / 0.6453 GB, free: 2.121 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/0.9632, allocations: 10.39 MB / 0.6554 GB, free: 7.621 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004548/0.9677, allocations: 2.926 MB / 0.6583 GB, free: 4.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004974/0.9727, allocations: 1.959 MB / 0.6602 GB, free: 2.691 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008606/0.9736, allocations: 247.4 kB / 0.6604 GB, free: 2.449 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9736, allocations: 3.938 kB / 0.6604 GB, free: 2.445 MB / 462.1 MB Notification: Performance of Templates: time 0.07845/1.052, allocations: 38.74 MB / 0.6983 GB, free: 12.2 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.553603310137987]