Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001295/0.001295, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001344/0.001344, allocations: 187.8 kB / 23.72 MB, free: 4.68 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.42/1.42, allocations: 225.6 MB / 252.5 MB, free: 13 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.DoublePendulum,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.DoublePendulum")
translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,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.DoublePendulum") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 51.92 kB / 370.9 MB, free: 9.324 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2818, allocations: 52.18 MB / 423.1 MB, free: 14.66 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01417/0.296, allocations: 10.51 MB / 433.6 MB, free: 4.109 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.009544/0.3056, allocations: 3.999 MB / 437.6 MB, free: 100 kB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.3072, allocations: 79.56 kB / 437.7 MB, free: 20 kB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.004726/0.3119, allocations: 2.246 MB / 439.9 MB, free: 13.77 MB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.005732/0.3177, allocations: 1.918 MB / 441.9 MB, free: 11.84 MB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.3196, allocations: 0.7409 MB / 442.6 MB, free: 11.1 MB / 350.1 MB
Notification: Performance of NFFlatten.flatten: time 0.009272/0.3289, allocations: 5.182 MB / 447.8 MB, free: 5.91 MB / 350.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.003524/0.3324, allocations: 2.177 MB / 450 MB, free: 3.684 MB / 350.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.335, allocations: 1.515 MB / 451.5 MB, free: 2.164 MB / 350.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.003393/0.3384, allocations: 2.212 MB / 453.7 MB, free: 15.94 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0007908/0.3392, allocations: 300 kB / 454 MB, free: 15.65 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00241/0.3416, allocations: 1.233 MB / 455.2 MB, free: 14.42 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.002302/0.3439, allocations: 1.893 MB / 457.1 MB, free: 12.52 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0026/0.3465, allocations: 2.066 MB / 459.2 MB, free: 10.44 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.008951/0.3555, allocations: 6.708 MB / 465.9 MB, free: 3.707 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.3555, allocations: 4 kB / 465.9 MB, free: 3.703 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.433e-06/0.3555, allocations: 0 / 465.9 MB, free: 3.703 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 0.0001932/0.3557, allocations: 0 / 465.9 MB, free: 3.703 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: 1302
 * Number of variables: 1302
Notification: Performance of Generate backend data structure: time 0.01201/0.3677, allocations: 4.713 MB / 470.6 MB, free: 14.93 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.3677, allocations: 12.03 kB / 470.6 MB, free: 14.92 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02752/0.3953, allocations: 3.111 MB / 473.7 MB, free: 11.8 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.008426/0.4037, allocations: 3.271 MB / 477 MB, free: 8.477 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001836/0.4039, allocations: 197 kB / 477.2 MB, free: 8.281 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007556/0.4046, allocations: 279.8 kB / 477.5 MB, free: 8.008 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.4197, allocations: 8.855 MB / 486.3 MB, free: 14.5 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.4198, allocations: 47.58 kB / 486.4 MB, free: 14.46 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003925/0.4202, allocations: 131.9 kB / 486.5 MB, free: 14.33 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/0.4237, allocations: 1.766 MB / 488.3 MB, free: 12.56 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/0.4391, allocations: 7.788 MB / 496 MB, free: 4.766 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04814/0.4872, allocations: 35.82 MB / 0.5194 GB, free: 15.86 MB / 446.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.008569/0.4958, allocations: 3.251 MB / 0.5226 GB, free: 12.57 MB / 446.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002945/0.4987, allocations: 2.021 MB / 0.5245 GB, free: 10.54 MB / 446.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0003399/0.4991, allocations: 100.9 kB / 0.5246 GB, free: 10.45 MB / 446.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.275e-05/0.4991, allocations: 51.5 kB / 0.5247 GB, free: 10.39 MB / 446.1 MB
Notification: Performance of pre-optimization done (n=160): time 4.248e-06/0.4991, allocations: 0 / 0.5247 GB, free: 10.39 MB / 446.1 MB
Notification: Performance of matching and sorting (n=190): time 0.2421/0.7412, allocations: 21.38 MB / 0.5456 GB, free: 103.9 MB / 446.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/0.7413, allocations: 253.5 kB / 0.5458 GB, free: 103.6 MB / 446.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003904/0.7452, allocations: 3.937 MB / 0.5497 GB, free: 102.3 MB / 446.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0003053/0.7455, allocations: 53.17 kB / 0.5497 GB, free: 102.2 MB / 446.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.001137/0.7467, allocations: 2.886 MB / 0.5525 GB, free: 100.3 MB / 446.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0005439/0.7472, allocations: 0.764 MB / 0.5533 GB, free: 99.71 MB / 446.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/0.7484, allocations: 1.186 MB / 0.5544 GB, free: 99.14 MB / 446.1 MB
Notification: Performance of setup shared object (initialization): time 3.915e-05/0.7484, allocations: 301.1 kB / 0.5547 GB, free: 98.84 MB / 446.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00252/0.751, allocations: 2.382 MB / 0.557 GB, free: 97.89 MB / 446.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.003746/0.7547, allocations: 5.634 MB / 0.5625 GB, free: 91.05 MB / 446.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007564/0.7623, allocations: 8.572 MB / 0.5709 GB, free: 80.93 MB / 446.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.135e-05/0.7624, allocations: 36 kB / 0.5709 GB, free: 80.89 MB / 446.1 MB
Notification: Performance of matching and sorting (n=749) (initialization): time 0.01568/0.778, allocations: 9.625 MB / 0.5803 GB, free: 71.27 MB / 446.1 MB
Notification: Performance of prepare postOptimizeDAE: time 6.786e-05/0.7781, allocations: 52.22 kB / 0.5804 GB, free: 71.22 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.341e-05/0.7782, allocations: 120 kB / 0.5805 GB, free: 71.1 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.005232/0.7834, allocations: 2.023 MB / 0.5825 GB, free: 69.07 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/0.7871, allocations: 1.275 MB / 0.5837 GB, free: 67.8 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.7993, allocations: 11.26 MB / 0.5947 GB, free: 56.42 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004135/0.8034, allocations: 343.6 kB / 0.5951 GB, free: 56.08 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004691/0.8039, allocations: 343.8 kB / 0.5954 GB, free: 55.75 MB / 446.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 515
 * Number of states: 0 ()
 * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (688):
 * Single equations (assignments): 684
 * 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
   {(3,35,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of prepare postOptimizeDAE: time 0.002107/0.806, allocations: 1.94 MB / 0.5973 GB, free: 53.8 MB / 446.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005408/0.8065, allocations: 357.6 kB / 0.5976 GB, free: 53.45 MB / 446.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008121/0.8146, allocations: 4.875 MB / 0.6024 GB, free: 48.56 MB / 446.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/0.8147, allocations: 20 kB / 0.6024 GB, free: 48.54 MB / 446.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.8147, allocations: 8 kB / 0.6024 GB, free: 48.53 MB / 446.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.797e-05/0.8147, allocations: 11.97 kB / 0.6024 GB, free: 48.52 MB / 446.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01508/0.8298, allocations: 9.946 MB / 0.6121 GB, free: 38.54 MB / 446.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/0.8298, allocations: 0 / 0.6121 GB, free: 38.54 MB / 446.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.831, allocations: 263.6 kB / 0.6124 GB, free: 38.28 MB / 446.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.004719/0.8357, allocations: 1.846 MB / 0.6142 GB, free: 36.43 MB / 446.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001907/0.8359, allocations: 32 kB / 0.6142 GB, free: 36.4 MB / 446.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.8468, allocations: 10.31 MB / 0.6243 GB, free: 25.97 MB / 446.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8468, allocations: 0 / 0.6243 GB, free: 25.97 MB / 446.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.8575, allocations: 7.945 MB / 0.632 GB, free: 18 MB / 446.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0009515/0.8585, allocations: 349.4 kB / 0.6324 GB, free: 17.66 MB / 446.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004966/0.859, allocations: 32 kB / 0.6324 GB, free: 17.63 MB / 446.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.8606, allocations: 131.8 kB / 0.6325 GB, free: 17.5 MB / 446.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003271/0.8609, allocations: 121 kB / 0.6326 GB, free: 17.38 MB / 446.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001355/0.8611, allocations: 48 kB / 0.6327 GB, free: 17.33 MB / 446.1 MB
Notification: Performance of sorting global known variables: time 0.00278/0.8639, allocations: 2.488 MB / 0.6351 GB, free: 14.86 MB / 446.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.8639, allocations: 0 / 0.6351 GB, free: 14.86 MB / 446.1 MB
Notification: Performance of remove unused functions: time 0.004347/0.8682, allocations: 1.064 MB / 0.6362 GB, free: 13.8 MB / 446.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 6
 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136):
 * Single equations (assignments): 132
 * 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,33,100.0%)}
 * Non-linear torn systems (#iteration vars, #inner vars): 0 systems
Notification: Performance of Backend phase and start with SimCode phase: time 0.0005598/0.8688, allocations: 165.5 kB / 0.6363 GB, free: 13.63 MB / 446.1 MB
Notification: Performance of simCode: created initialization part: time 0.007287/0.8761, allocations: 5.57 MB / 0.6418 GB, free: 8.07 MB / 446.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.8761, allocations: 4.062 kB / 0.6418 GB, free: 8.066 MB / 446.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002422/0.8785, allocations: 1.945 MB / 0.6437 GB, free: 6.117 MB / 446.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002692/0.8812, allocations: 460.3 kB / 0.6441 GB, free: 5.676 MB / 446.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01415/0.8953, allocations: 9.636 MB / 0.6535 GB, free: 11.98 MB / 462.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003647/0.899, allocations: 3.087 MB / 0.6565 GB, free: 8.867 MB / 462.1 MB
Notification: Performance of simCode: alias equations: time 0.004036/0.903, allocations: 1.815 MB / 0.6583 GB, free: 7.043 MB / 462.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007479/0.9038, allocations: 243.3 kB / 0.6585 GB, free: 6.805 MB / 462.1 MB
Notification: Performance of SimCode: time 8.62e-07/0.9038, allocations: 0 / 0.6585 GB, free: 6.805 MB / 462.1 MB
Notification: Performance of Templates: time 0.08729/0.991, allocations: 46.63 MB / 0.7041 GB, free: 8.473 MB / 0.4981 GB
"
[Timeout remaining time 659]
make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.590752298012376]