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.001237/0.001237, allocations: 110.4 kB / 21.19 MB, free: 0.6641 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.001477/0.001477, allocations: 204.7 kB / 24.49 MB, free: 3.965 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.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.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 0.002268/0.002268, allocations: 51.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.235/0.2373, allocations: 53.35 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01159/0.2489, allocations: 9.137 MB / 441.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007471/0.2564, allocations: 3.792 MB / 445.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008638/0.2572, allocations: 83.56 kB / 445.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004127/0.2613, allocations: 2.145 MB / 447.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.2653, allocations: 1.887 MB / 449.4 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.2668, allocations: 0.7448 MB / 450.1 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006492/0.2733, allocations: 5.264 MB / 455.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002824/0.2761, allocations: 2.408 MB / 457.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.2781, allocations: 1.507 MB / 459.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002765/0.2808, allocations: 2.204 MB / 461.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005349/0.2814, allocations: 300 kB / 461.8 MB, free: 9.129 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001898/0.2833, allocations: 1.092 MB / 462.9 MB, free: 8.035 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001752/0.285, allocations: 1.881 MB / 464.8 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.2867, allocations: 1.522 MB / 466.3 MB, free: 4.617 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006963/0.2936, allocations: 6.681 MB / 473 MB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2936, allocations: 0 / 473 MB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2936, allocations: 0 / 473 MB, free: 13.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.246e-05/0.2937, allocations: 0 / 473 MB, free: 13.91 MB / 382.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.009062/0.3028, allocations: 4.709 MB / 477.7 MB, free: 9.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.3028, allocations: 12.03 kB / 477.7 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02591/0.3287, allocations: 3.115 MB / 480.8 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008326/0.337, allocations: 3.213 MB / 484 MB, free: 2.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.3372, allocations: 197 kB / 484.2 MB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005721/0.3378, allocations: 283.7 kB / 484.5 MB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/0.3513, allocations: 8.955 MB / 493.4 MB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001168/0.3514, allocations: 47.64 kB / 493.5 MB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003586/0.3517, allocations: 135.9 kB / 493.6 MB, free: 8.457 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003147/0.3549, allocations: 1.762 MB / 495.4 MB, free: 6.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/0.3683, allocations: 7.764 MB / 0.4914 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04253/0.4108, allocations: 33.36 MB / 0.5239 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007982/0.4188, allocations: 3.244 MB / 0.5271 GB, free: 9.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002701/0.4215, allocations: 2.02 MB / 0.5291 GB, free: 7.312 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/0.4218, allocations: 97.11 kB / 0.5292 GB, free: 7.219 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.904e-05/0.4219, allocations: 51.56 kB / 0.5292 GB, free: 7.156 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.528e-06/0.4219, allocations: 0 / 0.5292 GB, free: 7.156 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2232/0.6451, allocations: 21.4 MB / 0.5501 GB, free: 97.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.6451, allocations: 251.7 kB / 0.5504 GB, free: 96.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00328/0.6484, allocations: 3.712 MB / 0.554 GB, free: 95.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.6486, allocations: 57.3 kB / 0.554 GB, free: 95.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00098/0.6495, allocations: 2.902 MB / 0.5569 GB, free: 92.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004414/0.65, allocations: 0.7579 MB / 0.5576 GB, free: 92.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.6512, allocations: 1.184 MB / 0.5588 GB, free: 90.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.276e-05/0.6512, allocations: 301.1 kB / 0.5591 GB, free: 90.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/0.6537, allocations: 2.381 MB / 0.5614 GB, free: 88.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00339/0.6571, allocations: 5.744 MB / 0.567 GB, free: 80.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006416/0.6635, allocations: 8.576 MB / 0.5754 GB, free: 70.79 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-05/0.6635, allocations: 32 kB / 0.5754 GB, free: 70.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01329/0.6768, allocations: 9.58 MB / 0.5847 GB, free: 61.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.51e-05/0.6769, allocations: 52 kB / 0.5848 GB, free: 61.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.429e-05/0.677, allocations: 116 kB / 0.5849 GB, free: 61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004914/0.6819, allocations: 2.027 MB / 0.5869 GB, free: 58.97 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003424/0.6853, allocations: 1.282 MB / 0.5881 GB, free: 57.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0119/0.6972, allocations: 11.11 MB / 0.599 GB, free: 46.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003996/0.7012, allocations: 347.5 kB / 0.5993 GB, free: 46.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003754/0.7016, allocations: 336 kB / 0.5996 GB, free: 45.81 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.002101/0.7037, allocations: 1.94 MB / 0.6015 GB, free: 43.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004318/0.7041, allocations: 333.8 kB / 0.6019 GB, free: 43.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007896/0.712, allocations: 4.833 MB / 0.6066 GB, free: 38.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.712, allocations: 11.91 kB / 0.6066 GB, free: 38.67 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.712, allocations: 0 / 0.6066 GB, free: 38.67 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005089/0.7125, allocations: 301.7 kB / 0.6069 GB, free: 38.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004026/0.7129, allocations: 39.94 kB / 0.6069 GB, free: 38.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.7143, allocations: 135.8 kB / 0.607 GB, free: 38.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002968/0.7146, allocations: 143.6 kB / 0.6072 GB, free: 38.06 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008291/0.7229, allocations: 5.291 MB / 0.6123 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005787/0.7287, allocations: 6.169 MB / 0.6184 GB, free: 26.61 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001501/0.7302, allocations: 1.53 MB / 0.6199 GB, free: 25.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002237/0.7325, allocations: 2.181 MB / 0.622 GB, free: 22.91 MB / 446.1 MB Notification: Performance of Backend: time 1.81e-07/0.7325, allocations: 0 / 0.622 GB, free: 22.91 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00668/0.7391, allocations: 4.304 MB / 0.6262 GB, free: 18.62 MB / 446.1 MB Notification: Performance of SimCode: time 0.009671/0.7488, allocations: 9.049 MB / 0.635 GB, free: 9.531 MB / 446.1 MB Notification: Performance of Templates: time 0.09327/0.8421, allocations: 57.78 MB / 0.6915 GB, free: 280 kB / 494.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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.213395856000716]