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.001285/0.001285, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001381/0.001381, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.424/1.424, allocations: 230.6 MB / 258.2 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.001552/0.001552, allocations: 51.91 kB / 379 MB, free: 2.535 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2077/0.2093, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01144/0.2207, allocations: 9.119 MB / 441.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006727/0.2275, allocations: 3.777 MB / 445.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005885/0.2281, allocations: 79.56 kB / 445.3 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004099/0.2322, allocations: 2.153 MB / 447.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003417/0.2356, allocations: 1.895 MB / 449.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.2369, allocations: 0.7409 MB / 450.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005903/0.2428, allocations: 5.271 MB / 455.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002549/0.2453, allocations: 2.397 MB / 457.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001645/0.247, allocations: 1.499 MB / 459.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.2496, allocations: 2.212 MB / 461.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005273/0.2502, allocations: 300 kB / 461.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001822/0.252, allocations: 1.092 MB / 462.9 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.2537, allocations: 1.878 MB / 464.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001605/0.2553, allocations: 1.541 MB / 466.3 MB, free: 4.594 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006817/0.2621, allocations: 6.683 MB / 473 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2621, allocations: 0 / 473 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2621, allocations: 0 / 473 MB, free: 13.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.197e-05/0.2622, allocations: 0 / 473 MB, free: 13.89 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.008848/0.2711, allocations: 4.709 MB / 477.7 MB, free: 9.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.2711, allocations: 8.031 kB / 477.7 MB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03321/0.3043, allocations: 3.103 MB / 480.8 MB, free: 6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/0.318, allocations: 3.225 MB / 484 MB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002886/0.3183, allocations: 197 kB / 484.2 MB, free: 2.527 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001001/0.3193, allocations: 271.8 kB / 484.5 MB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02517/0.3445, allocations: 8.959 MB / 493.4 MB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001872/0.3447, allocations: 51.64 kB / 493.5 MB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000623/0.3453, allocations: 127.9 kB / 493.6 MB, free: 8.449 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006326/0.3516, allocations: 1.77 MB / 495.4 MB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02685/0.3785, allocations: 7.756 MB / 0.4913 GB, free: 14.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07342/0.4519, allocations: 33.37 MB / 0.5239 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.015/0.4669, allocations: 3.228 MB / 0.5271 GB, free: 9.336 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004849/0.4718, allocations: 2.028 MB / 0.5291 GB, free: 7.301 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005218/0.4723, allocations: 100.9 kB / 0.5292 GB, free: 7.203 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.083e-05/0.4723, allocations: 51.5 kB / 0.5292 GB, free: 7.141 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 6.943e-06/0.4724, allocations: 0 / 0.5292 GB, free: 7.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2483/0.7207, allocations: 21.4 MB / 0.5501 GB, free: 97.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.312e-05/0.7207, allocations: 252.2 kB / 0.5504 GB, free: 96.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/0.7239, allocations: 3.709 MB / 0.554 GB, free: 95.05 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.7241, allocations: 53.7 kB / 0.554 GB, free: 94.99 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009793/0.725, allocations: 2.901 MB / 0.5569 GB, free: 92.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/0.7255, allocations: 0.762 MB / 0.5576 GB, free: 91.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/0.7266, allocations: 1.181 MB / 0.5588 GB, free: 90.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.176e-05/0.7267, allocations: 301.1 kB / 0.559 GB, free: 90.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002818/0.7295, allocations: 2.385 MB / 0.5614 GB, free: 88.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.7328, allocations: 5.748 MB / 0.567 GB, free: 80.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006207/0.739, allocations: 8.565 MB / 0.5753 GB, free: 70.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.53e-05/0.7391, allocations: 36 kB / 0.5754 GB, free: 70.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01294/0.752, allocations: 9.583 MB / 0.5847 GB, free: 61.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.287e-05/0.752, allocations: 52 kB / 0.5848 GB, free: 61.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.871e-05/0.7521, allocations: 116.1 kB / 0.5849 GB, free: 60.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004883/0.757, allocations: 2.022 MB / 0.5869 GB, free: 58.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003321/0.7603, allocations: 1.287 MB / 0.5881 GB, free: 57.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/0.7719, allocations: 11.11 MB / 0.599 GB, free: 46.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.7752, allocations: 347.5 kB / 0.5993 GB, free: 46.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.7755, allocations: 339.6 kB / 0.5996 GB, free: 45.79 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.001887/0.7774, allocations: 1.943 MB / 0.6015 GB, free: 43.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004043/0.7778, allocations: 325.8 kB / 0.6018 GB, free: 43.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007933/0.7858, allocations: 4.833 MB / 0.6066 GB, free: 38.67 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.7858, allocations: 23.94 kB / 0.6066 GB, free: 38.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.7858, allocations: 8 kB / 0.6066 GB, free: 38.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.7858, allocations: 11.91 kB / 0.6066 GB, free: 38.63 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/0.7995, allocations: 8.9 MB / 0.6153 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.7995, allocations: 0 / 0.6153 GB, free: 29.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.8007, allocations: 272.7 kB / 0.6156 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004628/0.8053, allocations: 1.842 MB / 0.6174 GB, free: 27.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.8054, allocations: 35.98 kB / 0.6174 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.8161, allocations: 10.16 MB / 0.6273 GB, free: 17.31 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.8161, allocations: 4.031 kB / 0.6273 GB, free: 17.31 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/0.8262, allocations: 7.904 MB / 0.635 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005817/0.8268, allocations: 313.6 kB / 0.6353 GB, free: 9.066 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003944/0.8272, allocations: 34.91 kB / 0.6354 GB, free: 9.035 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001444/0.8286, allocations: 135.8 kB / 0.6355 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/0.8289, allocations: 117 kB / 0.6356 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001412/0.8291, allocations: 55.59 kB / 0.6357 GB, free: 8.734 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002275/0.8314, allocations: 2.185 MB / 0.6378 GB, free: 6.559 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8314, allocations: 0 / 0.6378 GB, free: 6.559 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003639/0.835, allocations: 1.043 MB / 0.6388 GB, free: 5.516 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.0003407/0.8353, allocations: 166.8 kB / 0.639 GB, free: 5.344 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00645/0.8418, allocations: 5.559 MB / 0.6444 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.341e-05/0.8418, allocations: 4.312 kB / 0.6444 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003065/0.8449, allocations: 1.95 MB / 0.6463 GB, free: 13.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002166/0.847, allocations: 408.4 kB / 0.6467 GB, free: 13.43 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01475/0.8618, allocations: 9.573 MB / 0.6561 GB, free: 3.809 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003382/0.8652, allocations: 2.549 MB / 0.6585 GB, free: 1.238 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003874/0.869, allocations: 1.774 MB / 0.6603 GB, free: 15.46 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006624/0.8697, allocations: 223.4 kB / 0.6605 GB, free: 15.24 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8697, allocations: 0 / 0.6605 GB, free: 15.24 MB / 478.1 MB Notification: Performance of Templates: time 0.08144/0.9511, allocations: 46.3 MB / 0.7057 GB, free: 1.426 MB / 0.4981 GB " [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 -s gbode -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.3261828899994725]