Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.001782/0.001782, allocations: 108.5 kB / 21.23 MB, free: 0.6602 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.002102/0.002102, allocations: 186.4 kB / 24.51 MB, free: 4.031 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.577/1.577, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2463/0.2463, allocations: 44.91 MB / 353.5 MB, free: 11.84 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
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(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_4.0.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.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 75.89 kB / 497.7 MB, free: 1.004 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3517, allocations: 64.28 MB / 0.5488 GB, free: 13.15 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.01392/0.3656, allocations: 9.873 MB / 0.5585 GB, free: 5.457 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.01028/0.3759, allocations: 3.899 MB / 0.5623 GB, free: 1.648 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.3782, allocations: 63.75 kB / 0.5623 GB, free: 1.586 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.005901/0.3841, allocations: 2.831 MB / 0.5651 GB, free: 14.75 MB / 414.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.005233/0.3893, allocations: 1.755 MB / 0.5668 GB, free: 12.99 MB / 414.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.3912, allocations: 0.7096 MB / 0.5675 GB, free: 12.28 MB / 414.1 MB
Notification: Performance of NFFlatten.flatten: time 0.006317/0.3975, allocations: 3.98 MB / 0.5714 GB, free: 8.289 MB / 414.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.003835/0.4013, allocations: 2.597 MB / 0.5739 GB, free: 5.629 MB / 414.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002837/0.4042, allocations: 1.484 MB / 0.5754 GB, free: 4.141 MB / 414.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.003386/0.4075, allocations: 2.107 MB / 0.5774 GB, free: 2.027 MB / 414.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0009098/0.4085, allocations: 331.9 kB / 0.5777 GB, free: 1.703 MB / 414.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00262/0.4111, allocations: 1.252 MB / 0.579 GB, free: 460 kB / 414.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002306/0.4134, allocations: 1.881 MB / 0.5808 GB, free: 14.56 MB / 430.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.003069/0.4164, allocations: 2.128 MB / 0.5829 GB, free: 12.42 MB / 430.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0103/0.4267, allocations: 7.055 MB / 0.5898 GB, free: 5.34 MB / 430.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.4268, allocations: 3.938 kB / 0.5898 GB, free: 5.336 MB / 430.1 MB
Notification: Performance of FrontEnd: time 1.663e-06/0.4268, allocations: 0 / 0.5898 GB, free: 5.336 MB / 430.1 MB
Notification: Performance of Transformations before backend: time 0.0002373/0.427, allocations: 0 / 0.5898 GB, free: 5.336 MB / 430.1 MB
Notification: Model statistics after passing the front-end and creating the data structures used by the back-end:
 * Number of equations: 1454
 * Number of variables: 1454
Notification: Performance of Generate backend data structure: time 0.01138/0.4384, allocations: 4.559 MB / 0.5942 GB, free: 0.7227 MB / 430.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.4384, allocations: 12.92 kB / 0.5942 GB, free: 0.7109 MB / 430.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01756/0.456, allocations: 2.486 MB / 0.5967 GB, free: 14.22 MB / 446.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.008611/0.4646, allocations: 2.467 MB / 0.5991 GB, free: 11.7 MB / 446.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002322/0.4648, allocations: 230.2 kB / 0.5993 GB, free: 11.47 MB / 446.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.466, allocations: 307.9 kB / 0.5996 GB, free: 11.17 MB / 446.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01747/0.4835, allocations: 9.289 MB / 0.6087 GB, free: 1.25 MB / 446.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001196/0.4836, allocations: 55.56 kB / 0.6087 GB, free: 1.195 MB / 446.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004161/0.484, allocations: 139.9 kB / 0.6089 GB, free: 1.059 MB / 446.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003401/0.4874, allocations: 1.841 MB / 0.6107 GB, free: 15.21 MB / 462.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0151/0.5025, allocations: 7.689 MB / 0.6182 GB, free: 7.492 MB / 462.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05287/0.5554, allocations: 34.56 MB / 0.6519 GB, free: 3.855 MB / 494.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.005092/0.5605, allocations: 1.921 MB / 0.6538 GB, free: 1.898 MB / 494.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.001923/0.5624, allocations: 1.184 MB / 0.6549 GB, free: 0.6992 MB / 494.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0002982/0.5627, allocations: 92.42 kB / 0.655 GB, free: 0.6094 MB / 494.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.5627, allocations: 59 kB / 0.6551 GB, free: 0.543 MB / 494.1 MB
Notification: Performance of pre-optimization done (n=122): time 4.409e-06/0.5627, allocations: 0 / 0.6551 GB, free: 0.543 MB / 494.1 MB
Notification: Performance of matching and sorting (n=140): time 0.03104/0.5938, allocations: 11.63 MB / 0.6664 GB, free: 4.844 MB / 0.4981 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.5939, allocations: 196.6 kB / 0.6666 GB, free: 4.609 MB / 0.4981 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00684/0.6008, allocations: 3.639 MB / 0.6702 GB, free: 0.9727 MB / 0.4981 GB
Notification: Performance of collectPreVariables (initialization): time 0.0005694/0.6013, allocations: 45.7 kB / 0.6702 GB, free: 0.9219 MB / 0.4981 GB
Notification: Performance of collectInitialEqns (initialization): time 0.002946/0.6043, allocations: 3.056 MB / 0.6732 GB, free: 13.84 MB / 0.5137 GB
Notification: Performance of collectInitialBindings (initialization): time 0.001207/0.6055, allocations: 0.5855 MB / 0.6738 GB, free: 13.25 MB / 0.5137 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.002276/0.6078, allocations: 1.131 MB / 0.6749 GB, free: 12.11 MB / 0.5137 GB
Notification: Performance of setup shared object (initialization): time 0.0001739/0.6079, allocations: 309.1 kB / 0.6752 GB, free: 11.8 MB / 0.5137 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.003126/0.6111, allocations: 1.818 MB / 0.677 GB, free: 9.98 MB / 0.5137 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00652/0.6176, allocations: 5.253 MB / 0.6821 GB, free: 3 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01141/0.629, allocations: 7.612 MB / 0.6895 GB, free: 9.691 MB / 0.5294 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/0.6291, allocations: 36 kB / 0.6896 GB, free: 9.656 MB / 0.5294 GB
Notification: Performance of matching and sorting (n=710) (initialization): time 0.01557/0.6447, allocations: 7.303 MB / 0.6967 GB, free: 2.344 MB / 0.5294 GB
Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.6448, allocations: 56.97 kB / 0.6967 GB, free: 2.289 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000223/0.645, allocations: 120 kB / 0.6969 GB, free: 2.172 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.647, allocations: 0.6799 MB / 0.6975 GB, free: 1.488 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004351/0.6513, allocations: 1.252 MB / 0.6987 GB, free: 240 kB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00623/0.6576, allocations: 4.263 MB / 0.7029 GB, free: 11.86 MB / 0.545 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004561/0.6621, allocations: 307.7 kB / 0.7032 GB, free: 11.56 MB / 0.545 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/0.6631, allocations: 347.8 kB / 0.7035 GB, free: 11.22 MB / 0.545 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 553
 * Number of states: 0 ()
 * Number of discrete variables: 36 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,cutForce.forceArrow.arrowLine.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 (672):
 * Single equations (assignments): 668
 * 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.004429/0.6676, allocations: 2.033 MB / 0.7055 GB, free: 9.172 MB / 0.545 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008297/0.6684, allocations: 317.9 kB / 0.7058 GB, free: 8.859 MB / 0.545 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005579/0.674, allocations: 2.241 MB / 0.708 GB, free: 6.602 MB / 0.545 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.789e-05/0.674, allocations: 19.98 kB / 0.708 GB, free: 6.582 MB / 0.545 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/0.6741, allocations: 4 kB / 0.708 GB, free: 6.578 MB / 0.545 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.213e-05/0.6741, allocations: 3.984 kB / 0.708 GB, free: 6.574 MB / 0.545 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.6898, allocations: 6.265 MB / 0.7142 GB, free: 252 kB / 0.545 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/0.6898, allocations: 0 / 0.7142 GB, free: 252 kB / 0.545 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.691, allocations: 219.7 kB / 0.7144 GB, free: 32 kB / 0.545 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.6925, allocations: 0.5041 MB / 0.7149 GB, free: 15.52 MB / 0.5606 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.6926, allocations: 27.97 kB / 0.7149 GB, free: 15.5 MB / 0.5606 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005213/0.6978, allocations: 3.82 MB / 0.7186 GB, free: 11.56 MB / 0.5606 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.6978, allocations: 3.938 kB / 0.7186 GB, free: 11.56 MB / 0.5606 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007573/0.7054, allocations: 4.407 MB / 0.7229 GB, free: 7.129 MB / 0.5606 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009049/0.7063, allocations: 297.7 kB / 0.7232 GB, free: 6.836 MB / 0.5606 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/0.7066, allocations: 24 kB / 0.7232 GB, free: 6.812 MB / 0.5606 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.7078, allocations: 91.81 kB / 0.7233 GB, free: 6.723 MB / 0.5606 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.7081, allocations: 100.5 kB / 0.7234 GB, free: 6.625 MB / 0.5606 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/0.7082, allocations: 39.98 kB / 0.7234 GB, free: 6.586 MB / 0.5606 GB
Notification: Performance of sorting global known variables: time 0.003491/0.7117, allocations: 2.254 MB / 0.7256 GB, free: 4.344 MB / 0.5606 GB
Notification: Performance of sort global known variables: time 1e-07/0.7117, allocations: 112 / 0.7256 GB, free: 4.344 MB / 0.5606 GB
Notification: Performance of remove unused functions: time 0.004053/0.7158, allocations: 0.8866 MB / 0.7265 GB, free: 3.457 MB / 0.5606 GB
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.0003554/0.7161, allocations: 154.9 kB / 0.7267 GB, free: 3.297 MB / 0.5606 GB
Notification: Performance of simCode: created initialization part: time 0.2816/0.9978, allocations: 4.169 MB / 0.7307 GB, free: 163.9 MB / 0.5606 GB
Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.9978, allocations: 0.5312 kB / 0.7307 GB, free: 163.9 MB / 0.5606 GB
Notification: Performance of simCode: created simulation system equations: time 0.002425/1, allocations: 1.172 MB / 0.7319 GB, free: 163.8 MB / 0.5606 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/1.003, allocations: 413.6 kB / 0.7323 GB, free: 163.8 MB / 0.5606 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/1.017, allocations: 8.472 MB / 0.7405 GB, free: 160.5 MB / 0.5606 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00289/1.02, allocations: 3.161 MB / 0.7436 GB, free: 159.2 MB / 0.5606 GB
Notification: Performance of simCode: alias equations: time 0.003364/1.024, allocations: 1.724 MB / 0.7453 GB, free: 159.1 MB / 0.5606 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006178/1.024, allocations: 220.7 kB / 0.7455 GB, free: 159.1 MB / 0.5606 GB
Notification: Performance of SimCode: time 1.844e-06/1.024, allocations: 0 / 0.7455 GB, free: 159.1 MB / 0.5606 GB
Notification: Performance of Templates: time 0.05748/1.082, allocations: 31.72 MB / 0.7765 GB, free: 129.3 MB / 0.5606 GB
"
[Timeout remaining time 659]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/DifferentiationOfForces/DifferentiationOfForces.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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: 7.299188846722245]