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.001031/0.001031, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001139/0.001139, allocations: 141.5 kB / 24.54 MB, free: 36 kB / 18.57 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 0.9789/0.9789, allocations: 173.4 MB / 201.1 MB, free: 9.355 MB / 186.7 MB " [Timeout remaining time 179] 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 8.456e-06/8.456e-06, allocations: 4 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.935e-05/3.78e-05, allocations: 6.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01091/0.01095, allocations: 11.15 MB / 279.2 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006918/0.01787, allocations: 3.998 MB / 283.2 MB, free: 7.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.0192, allocations: 87.62 kB / 283.2 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003425/0.02263, allocations: 3.446 MB / 286.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003351/0.02598, allocations: 2.088 MB / 288.8 MB, free: 1.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001223/0.0272, allocations: 0.9043 MB / 289.7 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1259/0.1531, allocations: 4.825 MB / 294.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004939/0.158, allocations: 3.44 MB / 297.9 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.1619, allocations: 2.507 MB / 300.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003282/0.1652, allocations: 2.331 MB / 302.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001026/0.1662, allocations: 358.9 kB / 303.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.168, allocations: 1.211 MB / 304.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001364/0.1694, allocations: 2.231 MB / 306.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00173/0.1711, allocations: 1.357 MB / 307.9 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004649/0.1757, allocations: 5.026 MB / 313 MB, free: 10.11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1758, allocations: 0 / 313 MB, free: 10.11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1758, allocations: 4 kB / 313 MB, free: 10.11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002495/0.176, allocations: 0 / 313 MB, free: 10.11 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.00737/0.1834, allocations: 5.64 MB / 318.6 MB, free: 4.734 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.1834, allocations: 8.922 kB / 318.6 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005127/0.1885, allocations: 2.678 MB / 321.3 MB, free: 2.082 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003546/0.1921, allocations: 2.528 MB / 323.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.1922, allocations: 246.4 kB / 324.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003977/0.1926, allocations: 330.7 kB / 324.4 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008499/0.2011, allocations: 6.501 MB / 330.9 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.2012, allocations: 43.53 kB / 330.9 MB, free: 7.934 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.2015, allocations: 160.9 kB / 331.1 MB, free: 7.816 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002171/0.2037, allocations: 2.148 MB / 333.2 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007398/0.2111, allocations: 3.638 MB / 336.9 MB, free: 2.242 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03585/0.2469, allocations: 44.23 MB / 381.1 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00653/0.2535, allocations: 2.631 MB / 383.7 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.2547, allocations: 0.7746 MB / 384.5 MB, free: 1.715 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00696/0.2617, allocations: 4.541 MB / 389 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.053e-05/0.2618, allocations: 62.23 kB / 389.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=177): time 6.983e-06/0.2618, allocations: 0 / 389.1 MB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=198): time 0.02677/0.2885, allocations: 13.82 MB / 402.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.548e-05/0.2886, allocations: 179.5 kB / 403.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.2927, allocations: 3.633 MB / 406.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.2928, allocations: 52.59 kB / 406.8 MB, free: 11.37 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001715/0.2945, allocations: 3.509 MB / 410.3 MB, free: 7.879 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006452/0.2952, allocations: 0.8207 MB / 411.1 MB, free: 7.066 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0013/0.2965, allocations: 1.394 MB / 412.5 MB, free: 5.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.2967, allocations: 484.7 kB / 413 MB, free: 5.184 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.298, allocations: 0.7618 MB / 413.7 MB, free: 4.418 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003994/0.302, allocations: 6.346 MB / 420.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006894/0.3088, allocations: 7.817 MB / 427.9 MB, free: 1.402 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.511e-05/0.3089, allocations: 43.98 kB / 427.9 MB, free: 1.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.1458/0.4547, allocations: 6.079 MB / 434 MB, free: 110.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.38e-05/0.4548, allocations: 60.88 kB / 434.1 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000205/0.455, allocations: 132.2 kB / 434.2 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002025/0.457, allocations: 0.7969 MB / 435 MB, free: 110.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003292/0.4603, allocations: 1.448 MB / 436.5 MB, free: 110.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00379/0.4641, allocations: 3.909 MB / 440.4 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/0.467, allocations: 391.2 kB / 440.7 MB, free: 108.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005005/0.4675, allocations: 385 kB / 441.1 MB, free: 108.6 MB / 378.7 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.001476/0.469, allocations: 0.6781 MB / 441.8 MB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004894/0.4695, allocations: 406.4 kB / 442.2 MB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003043/0.4725, allocations: 2.067 MB / 444.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.4725, allocations: 22.03 kB / 444.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.4725, allocations: 10.91 kB / 444.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.4726, allocations: 11.25 kB / 444.3 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007903/0.4805, allocations: 6.143 MB / 450.5 MB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4805, allocations: 7.5 kB / 450.5 MB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007387/0.4812, allocations: 319.7 kB / 450.8 MB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001318/0.4825, allocations: 0.6208 MB / 451.4 MB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.4826, allocations: 38.66 kB / 451.4 MB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003918/0.4865, allocations: 3.622 MB / 455.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4865, allocations: 3.844 kB / 455.1 MB, free: 105.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004992/0.4915, allocations: 3.352 MB / 458.4 MB, free: 104.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.4921, allocations: 341.5 kB / 458.7 MB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.4924, allocations: 34.73 kB / 458.8 MB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.4936, allocations: 156.9 kB / 458.9 MB, free: 104.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002887/0.4939, allocations: 132.7 kB / 459.1 MB, free: 104.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.494, allocations: 55.94 kB / 459.1 MB, free: 104 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002093/0.4961, allocations: 1.55 MB / 460.7 MB, free: 102.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4961, allocations: 0 / 460.7 MB, free: 102.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004432/0.5005, allocations: 1.179 MB / 461.8 MB, free: 101.6 MB / 378.7 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.0004487/0.501, allocations: 198.9 kB / 462 MB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005658/0.5066, allocations: 3.355 MB / 465.4 MB, free: 98.44 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.5066, allocations: 0 / 465.4 MB, free: 98.44 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.5085, allocations: 1.138 MB / 466.5 MB, free: 97.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.5109, allocations: 439.7 kB / 467 MB, free: 97.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/0.5234, allocations: 8.298 MB / 475.3 MB, free: 88.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.5247, allocations: 1.337 MB / 476.6 MB, free: 87.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003305/0.528, allocations: 1.662 MB / 478.3 MB, free: 85.72 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006898/0.5287, allocations: 240.5 kB / 478.5 MB, free: 85.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5287, allocations: 0 / 478.5 MB, free: 85.48 MB / 378.7 MB Notification: Performance of Templates: time 0.0489/0.5776, allocations: 35.52 MB / 0.502 GB, free: 50.53 MB / 378.7 MB " [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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.101984536275268]