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.001832/0.001832, allocations: 113 kB / 19.04 MB, free: 3.254 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.002067/0.002067, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.4/1.4, allocations: 225.6 MB / 250.8 MB, free: 13.33 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.001543/0.001543, allocations: 43.92 kB / 368.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2671, allocations: 52.13 MB / 420.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01217/0.2793, allocations: 10.51 MB / 431.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00834/0.2876, allocations: 3.995 MB / 435.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001188/0.2888, allocations: 63.81 kB / 435.4 MB, free: 472 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004109/0.2929, allocations: 2.242 MB / 437.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004888/0.2978, allocations: 1.899 MB / 439.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.2997, allocations: 0.7525 MB / 440.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007113/0.3068, allocations: 5.174 MB / 445.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002804/0.3096, allocations: 2.168 MB / 447.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001857/0.3115, allocations: 1.495 MB / 449.2 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002626/0.3141, allocations: 2.212 MB / 451.4 MB, free: 440 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004537/0.3145, allocations: 300 kB / 451.7 MB, free: 140 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001963/0.3165, allocations: 1.233 MB / 452.9 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001673/0.3182, allocations: 1.893 MB / 454.8 MB, free: 13 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001951/0.3201, allocations: 2.066 MB / 456.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007148/0.3273, allocations: 6.708 MB / 463.6 MB, free: 4.191 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.3273, allocations: 0 / 463.6 MB, free: 4.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3273, allocations: 0 / 463.6 MB, free: 4.191 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.192e-05/0.3273, allocations: 0 / 463.6 MB, free: 4.191 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.008168/0.3355, allocations: 4.792 MB / 468.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.3356, allocations: 8.031 kB / 468.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02351/0.3591, allocations: 3.111 MB / 471.5 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008964/0.368, allocations: 3.351 MB / 474.8 MB, free: 8.785 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.3682, allocations: 201 kB / 475 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007227/0.369, allocations: 263.8 kB / 475.3 MB, free: 8.328 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01364/0.3826, allocations: 8.859 MB / 484.1 MB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.3827, allocations: 47.66 kB / 484.2 MB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.3831, allocations: 131.9 kB / 484.3 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003058/0.3861, allocations: 1.77 MB / 486.1 MB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01496/0.4011, allocations: 7.792 MB / 493.9 MB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04698/0.4481, allocations: 35.92 MB / 0.5174 GB, free: 80 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008343/0.4564, allocations: 3.692 MB / 0.521 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002912/0.4593, allocations: 2.018 MB / 0.523 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004721/0.4598, allocations: 324.2 kB / 0.5233 GB, free: 9.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/0.4599, allocations: 55.5 kB / 0.5233 GB, free: 9.777 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 3.797e-06/0.4599, allocations: 0 / 0.5233 GB, free: 9.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.2694/0.7292, allocations: 21.58 MB / 0.5444 GB, free: 103.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.458e-05/0.7293, allocations: 252.4 kB / 0.5446 GB, free: 103.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0045/0.7338, allocations: 3.936 MB / 0.5485 GB, free: 102.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003514/0.7341, allocations: 60.95 kB / 0.5485 GB, free: 102 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001382/0.7355, allocations: 2.885 MB / 0.5514 GB, free: 100.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008186/0.7363, allocations: 0.7672 MB / 0.5521 GB, free: 99.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001405/0.7377, allocations: 1.179 MB / 0.5533 GB, free: 98.95 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.331e-05/0.7378, allocations: 305 kB / 0.5535 GB, free: 98.65 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002572/0.7404, allocations: 2.383 MB / 0.5559 GB, free: 97.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003633/0.744, allocations: 5.64 MB / 0.5614 GB, free: 90.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00705/0.751, allocations: 8.577 MB / 0.5698 GB, free: 80.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-05/0.7511, allocations: 32 kB / 0.5698 GB, free: 80.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01399/0.7651, allocations: 9.62 MB / 0.5792 GB, free: 70.78 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.413e-05/0.7652, allocations: 52 kB / 0.5792 GB, free: 70.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.267e-05/0.7652, allocations: 116 kB / 0.5793 GB, free: 70.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004619/0.7698, allocations: 2.015 MB / 0.5813 GB, free: 68.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003505/0.7733, allocations: 1.283 MB / 0.5826 GB, free: 67.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01137/0.7847, allocations: 11.35 MB / 0.5936 GB, free: 55.83 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003899/0.7886, allocations: 351.4 kB / 0.594 GB, free: 55.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003959/0.789, allocations: 340 kB / 0.5943 GB, free: 55.16 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.002409/0.7914, allocations: 1.942 MB / 0.5962 GB, free: 53.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/0.7919, allocations: 369.6 kB / 0.5966 GB, free: 52.84 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007476/0.7994, allocations: 4.864 MB / 0.6013 GB, free: 47.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.623e-05/0.7994, allocations: 20 kB / 0.6013 GB, free: 47.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.7994, allocations: 8 kB / 0.6013 GB, free: 47.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.7994, allocations: 11.97 kB / 0.6013 GB, free: 47.92 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/0.8131, allocations: 9.982 MB / 0.6111 GB, free: 37.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/0.8131, allocations: 4 kB / 0.6111 GB, free: 37.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/0.8142, allocations: 270.1 kB / 0.6114 GB, free: 37.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004319/0.8185, allocations: 1.857 MB / 0.6132 GB, free: 35.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/0.8187, allocations: 31.94 kB / 0.6132 GB, free: 35.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.8292, allocations: 10.39 MB / 0.6233 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.8292, allocations: 8.062 kB / 0.6233 GB, free: 25.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01015/0.8394, allocations: 7.937 MB / 0.6311 GB, free: 17.24 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009982/0.8404, allocations: 430.5 kB / 0.6315 GB, free: 16.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005616/0.8409, allocations: 35.36 kB / 0.6315 GB, free: 16.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.8426, allocations: 135.8 kB / 0.6317 GB, free: 16.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/0.843, allocations: 113.1 kB / 0.6318 GB, free: 16.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.8431, allocations: 51.98 kB / 0.6318 GB, free: 16.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003466/0.8466, allocations: 2.488 MB / 0.6343 GB, free: 14 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.8466, allocations: 288 / 0.6343 GB, free: 14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004167/0.8507, allocations: 1.062 MB / 0.6353 GB, free: 12.94 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.000424/0.8512, allocations: 170.7 kB / 0.6355 GB, free: 12.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006995/0.8582, allocations: 5.563 MB / 0.6409 GB, free: 7.215 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.8582, allocations: 0 / 0.6409 GB, free: 7.215 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002418/0.8606, allocations: 1.949 MB / 0.6428 GB, free: 5.254 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.8634, allocations: 466.4 kB / 0.6432 GB, free: 4.805 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/0.8791, allocations: 9.634 MB / 0.6527 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004209/0.8833, allocations: 3.083 MB / 0.6557 GB, free: 8.008 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00446/0.8878, allocations: 1.819 MB / 0.6574 GB, free: 6.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008454/0.8886, allocations: 239.4 kB / 0.6577 GB, free: 5.945 MB / 462.1 MB Notification: Performance of SimCode: time 1.452e-06/0.8886, allocations: 0 / 0.6577 GB, free: 5.945 MB / 462.1 MB Notification: Performance of Templates: time 0.08543/0.9741, allocations: 44.32 MB / 0.7009 GB, free: 9.879 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.545947383157909]