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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 116.1 kB / 17.06 MB, free: 5.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001001/0.001001, allocations: 196 kB / 18.01 MB, free: 4.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009618/0.0009618, allocations: 43.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2455, allocations: 49.44 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01139/0.2569, allocations: 10.43 MB / 411.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007152/0.2641, allocations: 3.944 MB / 415.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008598/0.265, allocations: 67.81 kB / 415.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003636/0.2686, allocations: 2.215 MB / 417.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00345/0.2721, allocations: 1.854 MB / 419.2 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2735, allocations: 0.7409 MB / 420 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005997/0.2795, allocations: 5.174 MB / 425.2 MB, free: 392 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003068/0.2826, allocations: 2.885 MB / 428 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.2844, allocations: 1.476 MB / 429.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002315/0.2867, allocations: 2.033 MB / 431.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004943/0.2872, allocations: 300 kB / 431.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.2893, allocations: 1.194 MB / 433 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.2908, allocations: 1.843 MB / 434.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001751/0.2925, allocations: 2.07 MB / 436.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006487/0.299, allocations: 6.712 MB / 443.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.299, allocations: 0 / 443.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2991, allocations: 0 / 443.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001193/0.2992, allocations: 0 / 443.7 MB, free: 13.77 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.00889/0.3081, allocations: 4.788 MB / 448.4 MB, free: 8.902 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3081, allocations: 8.031 kB / 448.5 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02564/0.3338, allocations: 3.111 MB / 451.6 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008173/0.342, allocations: 3.352 MB / 454.9 MB, free: 2.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.3422, allocations: 205 kB / 455.1 MB, free: 2.164 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001049/0.3433, allocations: 267.8 kB / 455.4 MB, free: 1.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.3576, allocations: 8.855 MB / 464.2 MB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001302/0.3578, allocations: 55.58 kB / 464.3 MB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004138/0.3582, allocations: 127.9 kB / 464.4 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003183/0.3614, allocations: 1.766 MB / 466.2 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.3769, allocations: 7.788 MB / 474 MB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03911/0.416, allocations: 35.92 MB / 0.4979 GB, free: 9.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007941/0.424, allocations: 3.821 MB / 0.5017 GB, free: 5.695 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002556/0.4266, allocations: 2.162 MB / 0.5038 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004211/0.427, allocations: 324.2 kB / 0.5041 GB, free: 3.148 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.4271, allocations: 59.44 kB / 0.5041 GB, free: 3.082 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 3.827e-06/0.4271, allocations: 4 kB / 0.5042 GB, free: 3.078 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.06149/0.4886, allocations: 21.6 MB / 0.5252 GB, free: 13.37 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001585/0.4888, allocations: 252.6 kB / 0.5255 GB, free: 13.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006135/0.4949, allocations: 3.955 MB / 0.5293 GB, free: 9.133 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004578/0.4954, allocations: 53.7 kB / 0.5294 GB, free: 9.074 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/0.4977, allocations: 2.877 MB / 0.5322 GB, free: 6.172 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00123/0.4989, allocations: 0.7636 MB / 0.533 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002667/0.5016, allocations: 1.183 MB / 0.5341 GB, free: 4.207 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5018, allocations: 301.1 kB / 0.5344 GB, free: 3.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003965/0.5057, allocations: 2.381 MB / 0.5367 GB, free: 1.523 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2502/0.756, allocations: 5.636 MB / 0.5422 GB, free: 125.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008335/0.7643, allocations: 8.574 MB / 0.5506 GB, free: 119.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/0.7645, allocations: 33.25 kB / 0.5506 GB, free: 119.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01508/0.7796, allocations: 9.637 MB / 0.56 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.435e-05/0.7797, allocations: 55.84 kB / 0.5601 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.336e-05/0.7798, allocations: 109.7 kB / 0.5602 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004827/0.7846, allocations: 2.026 MB / 0.5622 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003606/0.7882, allocations: 1.281 MB / 0.5634 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01206/0.8003, allocations: 11.35 MB / 0.5745 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004407/0.8048, allocations: 350.9 kB / 0.5749 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007359/0.8055, allocations: 343.6 kB / 0.5752 GB, free: 102.3 MB / 462.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.002501/0.808, allocations: 1.943 MB / 0.5771 GB, free: 100.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005566/0.8086, allocations: 370.9 kB / 0.5774 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008101/0.8167, allocations: 4.884 MB / 0.5822 GB, free: 95.37 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.834e-05/0.8168, allocations: 23.94 kB / 0.5822 GB, free: 95.35 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/0.8168, allocations: 11.94 kB / 0.5822 GB, free: 95.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/0.8168, allocations: 7.969 kB / 0.5822 GB, free: 95.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01412/0.8309, allocations: 10.01 MB / 0.592 GB, free: 85.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.831, allocations: 7.812 kB / 0.592 GB, free: 85.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.8322, allocations: 268.2 kB / 0.5923 GB, free: 85.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004661/0.8368, allocations: 1.846 MB / 0.5941 GB, free: 83.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002823/0.8371, allocations: 36 kB / 0.5941 GB, free: 83.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/0.8483, allocations: 10.39 MB / 0.6043 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.8483, allocations: 4.812 kB / 0.6043 GB, free: 72.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.8588, allocations: 7.965 MB / 0.612 GB, free: 64.78 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008703/0.8597, allocations: 429.5 kB / 0.6125 GB, free: 64.35 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004991/0.8602, allocations: 32 kB / 0.6125 GB, free: 64.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001567/0.8618, allocations: 135.6 kB / 0.6126 GB, free: 64.19 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004122/0.8622, allocations: 113.2 kB / 0.6127 GB, free: 64.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.8624, allocations: 51.98 kB / 0.6128 GB, free: 64.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00288/0.8653, allocations: 2.484 MB / 0.6152 GB, free: 61.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8653, allocations: 4 kB / 0.6152 GB, free: 61.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004188/0.8695, allocations: 1.063 MB / 0.6162 GB, free: 60.5 MB / 462.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.0004124/0.8699, allocations: 178 kB / 0.6164 GB, free: 60.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007668/0.8776, allocations: 5.83 MB / 0.6221 GB, free: 54.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.755e-06/0.8776, allocations: 0 / 0.6221 GB, free: 54.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002501/0.8801, allocations: 2.094 MB / 0.6241 GB, free: 52.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.883, allocations: 466 kB / 0.6246 GB, free: 51.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.8955, allocations: 9.546 MB / 0.6339 GB, free: 42.37 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002506/0.8981, allocations: 3.091 MB / 0.6369 GB, free: 39.25 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003475/0.9015, allocations: 1.817 MB / 0.6387 GB, free: 37.42 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006534/0.9022, allocations: 235.4 kB / 0.6389 GB, free: 37.19 MB / 462.1 MB Notification: Performance of SimCode: time 9.31e-07/0.9022, allocations: 0 / 0.6389 GB, free: 37.19 MB / 462.1 MB Notification: Performance of Templates: time 0.06315/0.9654, allocations: 42.27 MB / 0.6802 GB, free: 11.16 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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) 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) Reference file matches