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.001314/0.001314, allocations: 80.67 kB / 20.68 MB, free: 1.039 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.001359/0.001359, allocations: 154.5 kB / 23.94 MB, free: 4.176 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.397/1.397, allocations: 173.3 MB / 200.4 MB, free: 12.89 MB / 190.1 MB " [Timeout remaining time 179] 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 1.813e-06/1.813e-06, allocations: 1.344 kB / 318.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.929e-05/2.11e-05, allocations: 6.281 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01006/0.01008, allocations: 9.15 MB / 328.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009673/0.01976, allocations: 3.782 MB / 331.9 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.02202, allocations: 79.81 kB / 331.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005016/0.02704, allocations: 2.26 MB / 334.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006545/0.03358, allocations: 1.968 MB / 336.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.03591, allocations: 0.8371 MB / 337 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.04619, allocations: 5.839 MB / 342.8 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007004/0.05319, allocations: 2.907 MB / 345.8 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00727/0.06046, allocations: 2.315 MB / 348.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004808/0.06527, allocations: 2.358 MB / 350.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001226/0.0665, allocations: 312 kB / 350.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003754/0.07025, allocations: 1.143 MB / 351.9 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003556/0.07381, allocations: 1.991 MB / 353.9 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003725/0.07753, allocations: 1.215 MB / 355.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01222/0.08975, allocations: 6.838 MB / 361.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.179e-05/0.08976, allocations: 3.984 kB / 361.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.08976, allocations: 0 / 361.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002898/0.09005, allocations: 0 / 361.9 MB, free: 0.5625 MB / 318.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.01639/0.1064, allocations: 4.787 MB / 366.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.1065, allocations: 12.92 kB / 366.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02996/0.1365, allocations: 3.201 MB / 369.9 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.1468, allocations: 3.197 MB / 373.1 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/0.1471, allocations: 201.4 kB / 373.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/0.1484, allocations: 271.8 kB / 373.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02064/0.1691, allocations: 8.967 MB / 382.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000241/0.1693, allocations: 47.59 kB / 382.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009174/0.1702, allocations: 127.9 kB / 382.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003575/0.1738, allocations: 1.77 MB / 384.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.1902, allocations: 7.764 MB / 392.3 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04856/0.2388, allocations: 33.7 MB / 425.9 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009066/0.2478, allocations: 3.326 MB / 429.3 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003209/0.2511, allocations: 2.033 MB / 431.3 MB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003702/0.2514, allocations: 92.81 kB / 431.4 MB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.043e-05/0.2515, allocations: 55.5 kB / 431.5 MB, free: 9.219 MB / 398.1 MB Notification: Performance of pre-optimization done (n=160): time 5.46e-06/0.2515, allocations: 0 / 431.5 MB, free: 9.219 MB / 398.1 MB Notification: Performance of matching and sorting (n=190): time 0.06733/0.3188, allocations: 22.02 MB / 453.5 MB, free: 3.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/0.319, allocations: 252.6 kB / 453.7 MB, free: 2.852 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007291/0.3263, allocations: 3.878 MB / 457.6 MB, free: 14.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004643/0.3268, allocations: 49.7 kB / 457.6 MB, free: 14.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002518/0.3293, allocations: 2.882 MB / 460.5 MB, free: 12 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001203/0.3305, allocations: 0.7519 MB / 461.3 MB, free: 11.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002828/0.3333, allocations: 1.159 MB / 462.4 MB, free: 10.07 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3335, allocations: 305.1 kB / 462.7 MB, free: 9.773 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004186/0.3376, allocations: 2.385 MB / 465.1 MB, free: 7.383 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1795/0.5172, allocations: 5.745 MB / 470.9 MB, free: 123.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/0.5274, allocations: 8.571 MB / 479.4 MB, free: 117.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-05/0.5275, allocations: 31.94 kB / 479.5 MB, free: 117.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01828/0.5457, allocations: 9.586 MB / 489.1 MB, free: 114.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.139e-05/0.5458, allocations: 54.31 kB / 489.1 MB, free: 114.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001296/0.546, allocations: 112.3 kB / 489.2 MB, free: 114.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005384/0.5513, allocations: 2.018 MB / 491.2 MB, free: 114.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004691/0.556, allocations: 1.291 MB / 492.5 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/0.5756, allocations: 11.16 MB / 0.4919 GB, free: 109.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006531/0.5822, allocations: 405.2 kB / 0.4923 GB, free: 109.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008265/0.583, allocations: 333.9 kB / 0.4926 GB, free: 109.1 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.002928/0.5859, allocations: 1.949 MB / 0.4945 GB, free: 107.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007651/0.5867, allocations: 328.2 kB / 0.4948 GB, free: 107.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008014/0.5947, allocations: 4.824 MB / 0.4995 GB, free: 103.1 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.873e-05/0.5947, allocations: 26.41 kB / 0.4995 GB, free: 103.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.5947, allocations: 12.88 kB / 0.4996 GB, free: 103.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.5947, allocations: 11.97 kB / 0.4996 GB, free: 103 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01447/0.6092, allocations: 9.05 MB / 0.5084 GB, free: 94.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.6092, allocations: 5.672 kB / 0.5084 GB, free: 94.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/0.6106, allocations: 267.6 kB / 0.5087 GB, free: 93.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004908/0.6155, allocations: 1.85 MB / 0.5105 GB, free: 91.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/0.6158, allocations: 31.98 kB / 0.5105 GB, free: 91.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01121/0.627, allocations: 10.21 MB / 0.5205 GB, free: 81.64 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.627, allocations: 7.938 kB / 0.5205 GB, free: 81.63 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/0.6377, allocations: 7.911 MB / 0.5282 GB, free: 73.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.6388, allocations: 354 kB / 0.5285 GB, free: 73.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004569/0.6392, allocations: 32 kB / 0.5286 GB, free: 73.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/0.6412, allocations: 198.3 kB / 0.5288 GB, free: 73.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004291/0.6416, allocations: 119 kB / 0.5289 GB, free: 73.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/0.6417, allocations: 48 kB / 0.5289 GB, free: 73.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002706/0.6444, allocations: 2.329 MB / 0.5312 GB, free: 70.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6444, allocations: 0 / 0.5312 GB, free: 70.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004051/0.6485, allocations: 1.21 MB / 0.5324 GB, free: 69.61 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.0004314/0.6489, allocations: 188.5 kB / 0.5326 GB, free: 69.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007017/0.6559, allocations: 5.568 MB / 0.538 GB, free: 63.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.6559, allocations: 0 / 0.538 GB, free: 63.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002391/0.6583, allocations: 1.936 MB / 0.5399 GB, free: 61.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002905/0.6612, allocations: 417.6 kB / 0.5403 GB, free: 61.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.6739, allocations: 9.515 MB / 0.5496 GB, free: 51.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002454/0.6763, allocations: 2.55 MB / 0.5521 GB, free: 49.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003387/0.6797, allocations: 1.782 MB / 0.5538 GB, free: 47.61 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007469/0.6804, allocations: 232.4 kB / 0.554 GB, free: 47.39 MB / 430.1 MB Notification: Performance of SimCode: time 1.603e-06/0.6804, allocations: 0 / 0.554 GB, free: 47.39 MB / 430.1 MB Notification: Performance of Templates: time 0.06479/0.7452, allocations: 41.97 MB / 0.595 GB, free: 5.891 MB / 430.1 MB " [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.295541252940893]