Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.001792/0.001792, allocations: 85.91 kB / 20.68 MB, free: 1.035 MB / 14.72 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.002076/0.002076, allocations: 164.8 kB / 23.96 MB, free: 4.164 MB / 14.72 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 1.425/1.425, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] 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(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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 325.1 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/1.984e-05, allocations: 6.734 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01079/0.01081, allocations: 9.143 MB / 334.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007826/0.01864, allocations: 3.801 MB / 338 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.01981, allocations: 79.62 kB / 338.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004392/0.0242, allocations: 2.267 MB / 340.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00435/0.02855, allocations: 1.943 MB / 342.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001686/0.03024, allocations: 0.8187 MB / 343.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00723/0.03747, allocations: 5.982 MB / 349.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003506/0.04097, allocations: 2.903 MB / 352 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003181/0.04415, allocations: 2.307 MB / 354.3 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.04746, allocations: 2.346 MB / 356.7 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005449/0.04801, allocations: 316 kB / 357 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002006/0.05001, allocations: 1.135 MB / 358.1 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001861/0.05188, allocations: 1.967 MB / 360.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001629/0.0535, allocations: 1.203 MB / 361.3 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007506/0.06101, allocations: 6.788 MB / 368.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.06101, allocations: 0 / 368.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.06102, allocations: 3.938 kB / 368.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.116e-05/0.0611, allocations: 0 / 368.1 MB, free: 10.02 MB / 334.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.009427/0.07052, allocations: 4.779 MB / 372.9 MB, free: 5.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.07056, allocations: 8.031 kB / 372.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02841/0.09897, allocations: 3.193 MB / 376.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007973/0.1069, allocations: 3.201 MB / 379.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.1071, allocations: 201.4 kB / 379.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006195/0.1077, allocations: 275.7 kB / 379.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01442/0.1222, allocations: 8.963 MB / 388.7 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/0.1223, allocations: 51.62 kB / 388.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000366/0.1226, allocations: 131.9 kB / 388.9 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003229/0.1259, allocations: 1.766 MB / 390.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01388/0.1398, allocations: 7.76 MB / 398.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04276/0.1825, allocations: 33.68 MB / 432.1 MB, free: 8.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008625/0.1911, allocations: 3.323 MB / 435.4 MB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00281/0.194, allocations: 2.021 MB / 437.4 MB, free: 2.859 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003051/0.1943, allocations: 97.06 kB / 437.5 MB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.378e-05/0.1943, allocations: 51.55 kB / 437.6 MB, free: 2.703 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 4.328e-06/0.1943, allocations: 0 / 437.6 MB, free: 2.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.06131/0.2556, allocations: 22.02 MB / 459.6 MB, free: 12.63 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.2558, allocations: 248.6 kB / 459.8 MB, free: 12.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005429/0.2612, allocations: 3.881 MB / 463.7 MB, free: 8.449 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003052/0.2615, allocations: 49.7 kB / 463.8 MB, free: 8.395 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.2637, allocations: 2.874 MB / 466.6 MB, free: 5.492 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008753/0.2646, allocations: 0.752 MB / 467.4 MB, free: 4.734 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00165/0.2662, allocations: 1.167 MB / 468.5 MB, free: 3.555 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.2664, allocations: 305.1 kB / 468.8 MB, free: 3.254 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003603/0.27, allocations: 2.381 MB / 471.2 MB, free: 0.8672 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1758/0.4458, allocations: 5.746 MB / 477 MB, free: 121.6 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009594/0.4554, allocations: 8.566 MB / 485.5 MB, free: 115.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001805/0.4555, allocations: 33.12 kB / 485.6 MB, free: 115.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01592/0.4715, allocations: 9.587 MB / 495.2 MB, free: 112 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.4716, allocations: 50.72 kB / 495.2 MB, free: 112 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001639/0.4717, allocations: 113.4 kB / 495.3 MB, free: 112 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005146/0.4769, allocations: 2.022 MB / 497.3 MB, free: 111.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004/0.4809, allocations: 1.287 MB / 498.6 MB, free: 111.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01318/0.4941, allocations: 11.16 MB / 0.4978 GB, free: 102.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004812/0.4989, allocations: 400.4 kB / 0.4982 GB, free: 102.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009243/0.4998, allocations: 336 kB / 0.4985 GB, free: 101.8 MB / 430.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.003037/0.5028, allocations: 1.949 MB / 0.5004 GB, free: 99.95 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008227/0.5037, allocations: 327.9 kB / 0.5008 GB, free: 99.81 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008146/0.5118, allocations: 4.832 MB / 0.5055 GB, free: 94.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/0.5118, allocations: 26.28 kB / 0.5055 GB, free: 94.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.5119, allocations: 11.94 kB / 0.5055 GB, free: 94.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-05/0.5119, allocations: 7.969 kB / 0.5055 GB, free: 94.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/0.5284, allocations: 9.041 MB / 0.5143 GB, free: 85.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.831e-05/0.5284, allocations: 7.922 kB / 0.5144 GB, free: 85.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.5297, allocations: 267.6 kB / 0.5146 GB, free: 85.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004795/0.5345, allocations: 1.846 MB / 0.5164 GB, free: 83.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002962/0.5348, allocations: 39.92 kB / 0.5164 GB, free: 83.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/0.547, allocations: 10.23 MB / 0.5264 GB, free: 73.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.547, allocations: 0 / 0.5264 GB, free: 73.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/0.5591, allocations: 7.915 MB / 0.5342 GB, free: 65.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.5601, allocations: 350.1 kB / 0.5345 GB, free: 65.41 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009447/0.561, allocations: 31.19 kB / 0.5345 GB, free: 65.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002419/0.5635, allocations: 195.7 kB / 0.5347 GB, free: 65.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004386/0.5639, allocations: 121 kB / 0.5348 GB, free: 65.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.5641, allocations: 51.98 kB / 0.5349 GB, free: 65.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003185/0.5672, allocations: 2.31 MB / 0.5371 GB, free: 62.72 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5672, allocations: 0 / 0.5371 GB, free: 62.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005636/0.5729, allocations: 1.198 MB / 0.5383 GB, free: 61.54 MB / 430.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.0006462/0.5735, allocations: 190.2 kB / 0.5385 GB, free: 61.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007941/0.5815, allocations: 5.556 MB / 0.5439 GB, free: 55.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.5815, allocations: 0 / 0.5439 GB, free: 55.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.584, allocations: 1.937 MB / 0.5458 GB, free: 53.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003198/0.5872, allocations: 418.6 kB / 0.5462 GB, free: 53.46 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.6011, allocations: 9.524 MB / 0.5555 GB, free: 43.93 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002677/0.6038, allocations: 2.538 MB / 0.558 GB, free: 41.37 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003557/0.6074, allocations: 1.793 MB / 0.5597 GB, free: 39.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009269/0.6083, allocations: 228.4 kB / 0.56 GB, free: 39.35 MB / 430.1 MB Notification: Performance of SimCode: time 2.084e-06/0.6083, allocations: 4 kB / 0.56 GB, free: 39.34 MB / 430.1 MB Notification: Performance of Templates: time 0.06468/0.673, allocations: 41.83 MB / 0.6008 GB, free: 13.98 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.328183799982071]