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.001075/0.001075, allocations: 114.2 kB / 17.07 MB, free: 5.961 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.001007/0.001008, allocations: 198.8 kB / 18 MB, free: 5.051 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.437/1.437, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009698/0.0009698, allocations: 51.91 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.235, allocations: 49.43 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01108/0.2461, allocations: 10.42 MB / 411.2 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007437/0.2536, allocations: 3.952 MB / 415.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001485/0.2551, allocations: 71.75 kB / 415.2 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004131/0.2593, allocations: 2.204 MB / 417.4 MB, free: 8.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004212/0.2636, allocations: 1.901 MB / 419.3 MB, free: 6.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.2651, allocations: 0.7487 MB / 420 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006185/0.2713, allocations: 5.169 MB / 425.2 MB, free: 332 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003226/0.2746, allocations: 2.889 MB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.2765, allocations: 1.483 MB / 429.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002432/0.279, allocations: 2.048 MB / 431.6 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005502/0.2795, allocations: 300 kB / 431.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001838/0.2814, allocations: 1.19 MB / 433.1 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001563/0.2829, allocations: 1.862 MB / 435 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002112/0.2851, allocations: 2.07 MB / 437 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005877/0.291, allocations: 6.682 MB / 443.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.291, allocations: 3.938 kB / 443.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.291, allocations: 0 / 443.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.621e-05/0.2911, allocations: 4 kB / 443.7 MB, free: 13.7 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.007668/0.2988, allocations: 4.666 MB / 448.4 MB, free: 8.957 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.2988, allocations: 16.03 kB / 448.4 MB, free: 8.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02228/0.3211, allocations: 3.081 MB / 451.5 MB, free: 5.852 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007081/0.3282, allocations: 3.334 MB / 454.8 MB, free: 2.457 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001465/0.3284, allocations: 197 kB / 455 MB, free: 2.262 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005587/0.3289, allocations: 271.8 kB / 455.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.3412, allocations: 8.851 MB / 464.1 MB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.3413, allocations: 55.48 kB / 464.2 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000315/0.3416, allocations: 131.8 kB / 464.3 MB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/0.3443, allocations: 1.77 MB / 466.1 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.3569, allocations: 7.788 MB / 473.9 MB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03697/0.3939, allocations: 35.86 MB / 0.4978 GB, free: 9.809 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007573/0.4015, allocations: 3.813 MB / 0.5015 GB, free: 5.852 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/0.404, allocations: 2.158 MB / 0.5036 GB, free: 3.684 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004134/0.4044, allocations: 332.2 kB / 0.5039 GB, free: 3.301 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.4045, allocations: 55.44 kB / 0.504 GB, free: 3.238 MB / 430.1 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.4045, allocations: 0 / 0.504 GB, free: 3.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=190): time 0.05259/0.4571, allocations: 21.4 MB / 0.5249 GB, free: 13.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.4572, allocations: 260.6 kB / 0.5251 GB, free: 13.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004828/0.4621, allocations: 3.93 MB / 0.529 GB, free: 9.488 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.4623, allocations: 53.7 kB / 0.529 GB, free: 9.43 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001732/0.464, allocations: 2.779 MB / 0.5317 GB, free: 6.613 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006345/0.4647, allocations: 0.725 MB / 0.5324 GB, free: 5.879 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/0.4662, allocations: 1.174 MB / 0.5336 GB, free: 4.691 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.4663, allocations: 305.1 kB / 0.5339 GB, free: 4.391 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/0.4696, allocations: 2.377 MB / 0.5362 GB, free: 2.008 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.195/0.6646, allocations: 5.641 MB / 0.5417 GB, free: 125.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007655/0.6723, allocations: 8.571 MB / 0.5501 GB, free: 119.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.851e-05/0.6724, allocations: 33.09 kB / 0.5501 GB, free: 119.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01371/0.6861, allocations: 9.626 MB / 0.5595 GB, free: 116.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.562e-05/0.6862, allocations: 55.03 kB / 0.5596 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000102/0.6863, allocations: 115.8 kB / 0.5597 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004762/0.6911, allocations: 2.015 MB / 0.5616 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/0.6944, allocations: 1.286 MB / 0.5629 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.7062, allocations: 11.35 MB / 0.574 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003999/0.7102, allocations: 347.7 kB / 0.5743 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004303/0.7106, allocations: 351.8 kB / 0.5746 GB, free: 102.9 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.002309/0.713, allocations: 1.939 MB / 0.5765 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004302/0.7134, allocations: 345.6 kB / 0.5769 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007666/0.7211, allocations: 4.88 MB / 0.5816 GB, free: 96.02 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-05/0.7211, allocations: 24 kB / 0.5817 GB, free: 95.99 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/0.7211, allocations: 11.94 kB / 0.5817 GB, free: 95.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.7211, allocations: 8.719 kB / 0.5817 GB, free: 95.97 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01323/0.7344, allocations: 10.01 MB / 0.5914 GB, free: 85.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.7344, allocations: 6.812 kB / 0.5915 GB, free: 85.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.7355, allocations: 267.6 kB / 0.5917 GB, free: 85.72 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004352/0.7398, allocations: 1.85 MB / 0.5935 GB, free: 83.86 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.74, allocations: 28 kB / 0.5935 GB, free: 83.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/0.7507, allocations: 10.38 MB / 0.6037 GB, free: 73.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.7507, allocations: 7.969 kB / 0.6037 GB, free: 73.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/0.7609, allocations: 7.952 MB / 0.6115 GB, free: 65.44 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000721/0.7616, allocations: 412.4 kB / 0.6119 GB, free: 65.02 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.762, allocations: 31.94 kB / 0.6119 GB, free: 64.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001377/0.7634, allocations: 135.8 kB / 0.612 GB, free: 64.85 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.7637, allocations: 117 kB / 0.6121 GB, free: 64.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.7639, allocations: 51.98 kB / 0.6122 GB, free: 64.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002812/0.7667, allocations: 2.484 MB / 0.6146 GB, free: 62.22 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7667, allocations: 0 / 0.6146 GB, free: 62.22 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004554/0.7712, allocations: 1.071 MB / 0.6156 GB, free: 61.16 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.0003381/0.7716, allocations: 157.6 kB / 0.6158 GB, free: 61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006586/0.7782, allocations: 5.836 MB / 0.6215 GB, free: 55.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7782, allocations: 4.125 kB / 0.6215 GB, free: 55.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002216/0.7804, allocations: 2.084 MB / 0.6235 GB, free: 53.08 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.7824, allocations: 468.8 kB / 0.624 GB, free: 52.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.7932, allocations: 9.414 MB / 0.6332 GB, free: 43.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/0.7955, allocations: 3.087 MB / 0.6362 GB, free: 40.05 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003119/0.7986, allocations: 1.815 MB / 0.638 GB, free: 38.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005754/0.7992, allocations: 244.3 kB / 0.6382 GB, free: 37.99 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.7992, allocations: 0 / 0.6382 GB, free: 37.99 MB / 462.1 MB Notification: Performance of Templates: time 0.05948/0.8587, allocations: 42.26 MB / 0.6795 GB, free: 11.98 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