Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.001532/0.001532, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.001366/0.001366, allocations: 161.4 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9594/0.9594, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2651/0.2651, allocations: 34.26 MB / 295.7 MB, free: 0.7734 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.364e-06/2.364e-06, allocations: 0 / 378 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.917e-05/3.153e-05, allocations: 10.25 kB / 378.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01293/0.01296, allocations: 9.238 MB / 387.3 MB, free: 9.352 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.008038/0.021, allocations: 3.761 MB / 391.1 MB, free: 5.578 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001131/0.02213, allocations: 63.75 kB / 391.1 MB, free: 5.516 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00318/0.02531, allocations: 2.971 MB / 394.1 MB, free: 2.535 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002983/0.0283, allocations: 1.711 MB / 395.8 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.02951, allocations: 0.7795 MB / 396.6 MB, free: 36 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.004631/0.03414, allocations: 4.3 MB / 400.9 MB, free: 11.73 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002887/0.03702, allocations: 3.116 MB / 404 MB, free: 8.543 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002314/0.03934, allocations: 2.148 MB / 406.1 MB, free: 6.391 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002115/0.04145, allocations: 2.081 MB / 408.2 MB, free: 4.305 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004489/0.0419, allocations: 324 kB / 408.5 MB, free: 3.988 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001406/0.04331, allocations: 1.135 MB / 409.7 MB, free: 2.852 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.04444, allocations: 1.874 MB / 411.5 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.04552, allocations: 1.172 MB / 412.7 MB, free: 15.79 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003822/0.04934, allocations: 4.403 MB / 417.1 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.04935, allocations: 0 / 417.1 MB, free: 11.38 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.04935, allocations: 0 / 417.1 MB, free: 11.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.365e-05/0.04942, allocations: 0 / 417.1 MB, free: 11.38 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.005133/0.05455, allocations: 4.745 MB / 421.9 MB, free: 6.574 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.05459, allocations: 8.031 kB / 421.9 MB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008117/0.06271, allocations: 2.897 MB / 424.8 MB, free: 3.664 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003571/0.06628, allocations: 2.228 MB / 427 MB, free: 1.383 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.06641, allocations: 222 kB / 427.2 MB, free: 1.164 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003892/0.06679, allocations: 292.2 kB / 427.5 MB, free: 0.8789 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006999/0.07379, allocations: 5.269 MB / 432.8 MB, free: 10.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.889e-05/0.07387, allocations: 35.64 kB / 432.8 MB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002593/0.07413, allocations: 143.9 kB / 432.9 MB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001564/0.0757, allocations: 1.657 MB / 434.6 MB, free: 8.895 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005577/0.08127, allocations: 2.577 MB / 437.2 MB, free: 6.309 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.185/0.2662, allocations: 38 MB / 475.2 MB, free: 59.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002866/0.2691, allocations: 1.004 MB / 476.2 MB, free: 59.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006771/0.2698, allocations: 401.8 kB / 476.6 MB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002236/0.27, allocations: 101.9 kB / 476.7 MB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.27, allocations: 46.92 kB / 476.7 MB, free: 58.93 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.047e-06/0.27, allocations: 6.797 kB / 476.7 MB, free: 58.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=140): time 0.01619/0.2862, allocations: 7.7 MB / 484.4 MB, free: 56.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.2863, allocations: 193.8 kB / 484.6 MB, free: 55.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00277/0.2891, allocations: 3.156 MB / 487.8 MB, free: 54.61 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001562/0.2892, allocations: 48.27 kB / 487.8 MB, free: 54.56 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.2904, allocations: 3.091 MB / 490.9 MB, free: 52.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005682/0.291, allocations: 0.6014 MB / 491.5 MB, free: 51.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/0.2923, allocations: 1.19 MB / 492.7 MB, free: 51.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.216e-05/0.2923, allocations: 480.5 kB / 493.2 MB, free: 50.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009241/0.2933, allocations: 0.5468 MB / 493.7 MB, free: 50.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002287/0.2955, allocations: 5.605 MB / 499.3 MB, free: 43.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004186/0.2997, allocations: 6.712 MB / 0.4942 GB, free: 36.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.631e-05/0.2998, allocations: 37.91 kB / 0.4942 GB, free: 36.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=701) (initialization): time 0.007418/0.3072, allocations: 4.862 MB / 0.499 GB, free: 34.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.856e-05/0.3073, allocations: 56.22 kB / 0.499 GB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/0.3075, allocations: 118.9 kB / 0.4991 GB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001127/0.3086, allocations: 479 kB / 0.4996 GB, free: 34.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/0.311, allocations: 1.224 MB / 0.5008 GB, free: 34.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00255/0.3136, allocations: 3.027 MB / 0.5037 GB, free: 32.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002762/0.3163, allocations: 317.7 kB / 0.504 GB, free: 32.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000491/0.3168, allocations: 336 kB / 0.5044 GB, free: 32.2 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 544 * Number of states: 0 () * Number of discrete variables: 36 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.twoHeadedArrow,cutForce.forceArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (663): * Single equations (assignments): 659 * 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,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001424/0.3182, allocations: 0.6038 MB / 0.5049 GB, free: 31.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005363/0.3188, allocations: 332.6 kB / 0.5053 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001782/0.3205, allocations: 1.096 MB / 0.5063 GB, free: 31.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.3206, allocations: 20.41 kB / 0.5063 GB, free: 31.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.3206, allocations: 2 kB / 0.5063 GB, free: 31.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/0.3206, allocations: 12.59 kB / 0.5064 GB, free: 31.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006134/0.3267, allocations: 4.308 MB / 0.5106 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-06/0.3267, allocations: 0 / 0.5106 GB, free: 29.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005302/0.3273, allocations: 207.9 kB / 0.5108 GB, free: 29.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007451/0.328, allocations: 300.6 kB / 0.5111 GB, free: 29.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.798e-05/0.3281, allocations: 30.73 kB / 0.5111 GB, free: 29.28 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001852/0.3299, allocations: 2.712 MB / 0.5137 GB, free: 27.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3299, allocations: 0 / 0.5137 GB, free: 27.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002627/0.3326, allocations: 2.068 MB / 0.5158 GB, free: 26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000421/0.333, allocations: 283.9 kB / 0.516 GB, free: 25.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.3332, allocations: 17.39 kB / 0.516 GB, free: 25.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.3338, allocations: 98.72 kB / 0.5161 GB, free: 25.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.334, allocations: 108.6 kB / 0.5162 GB, free: 25.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/0.3341, allocations: 39.72 kB / 0.5163 GB, free: 25.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001612/0.3357, allocations: 1.349 MB / 0.5176 GB, free: 25.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3357, allocations: 0 / 0.5176 GB, free: 25.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003072/0.3388, allocations: 0.9138 MB / 0.5185 GB, free: 25.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.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 (107): * Single equations (assignments): 103 * 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 {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003525/0.3391, allocations: 164 kB / 0.5186 GB, free: 25.06 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003789/0.3429, allocations: 2.608 MB / 0.5212 GB, free: 23.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3429, allocations: 0 / 0.5212 GB, free: 23.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007539/0.3437, allocations: 0.6332 MB / 0.5218 GB, free: 23.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/0.3451, allocations: 370 kB / 0.5222 GB, free: 22.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008894/0.354, allocations: 6.53 MB / 0.5285 GB, free: 16.89 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.3551, allocations: 1.138 MB / 0.5296 GB, free: 16.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003039/0.3581, allocations: 1.448 MB / 0.5311 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.3586, allocations: 209.4 kB / 0.5313 GB, free: 15.05 MB / 410.7 MB Notification: Performance of SimCode: time 1.944e-06/0.3586, allocations: 0 / 0.5313 GB, free: 15.05 MB / 410.7 MB Notification: Performance of Templates: time 0.03566/0.3942, allocations: 25.17 MB / 0.5558 GB, free: 8.418 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.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.489337608683854]