Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009521/0.0009521, allocations: 89.38 kB / 17.34 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 202.7 kB / 18.28 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.8 MB / 246.8 MB, free: 9.652 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002255, allocations: 8 kB / 307.7 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09121, allocations: 51.53 MB / 359.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1996/0.2909, allocations: 37.08 MB / 396.3 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.3134, allocations: 8.506 MB / 404.9 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008807/0.3222, allocations: 174.8 kB / 405 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001617/0.3238, allocations: 388.2 kB / 405.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005308/0.3292, allocations: 1.724 MB / 407.1 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002024/0.3312, allocations: 0.6757 MB / 407.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009288/0.3405, allocations: 7.29 MB / 415.1 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006161/0.3467, allocations: 3.882 MB / 419 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002604/0.3494, allocations: 1.128 MB / 420.1 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003238/0.3526, allocations: 1.974 MB / 422.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007319/0.3534, allocations: 131.9 kB / 422.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00244/0.3558, allocations: 1.073 MB / 423.3 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002364/0.3582, allocations: 1.671 MB / 424.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003183/0.3614, allocations: 1.853 MB / 426.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007329/0.3688, allocations: 6.194 MB / 433 MB, free: 0.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.3688, allocations: 4 kB / 433 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3688, allocations: 0 / 433 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001971/0.369, allocations: 0 / 433 MB, free: 0.9531 MB / 334.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.009202/0.3782, allocations: 3.864 MB / 436.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3783, allocations: 12.03 kB / 436.9 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02874/0.407, allocations: 3.155 MB / 440 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008128/0.4152, allocations: 3.218 MB / 443.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.4155, allocations: 197 kB / 443.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001152/0.4166, allocations: 279.6 kB / 443.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01599/0.4326, allocations: 8.882 MB / 452.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.4328, allocations: 43.59 kB / 452.6 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003542/0.4331, allocations: 127.9 kB / 452.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003046/0.4362, allocations: 1.762 MB / 454.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01544/0.4516, allocations: 7.811 MB / 462.3 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04348/0.4952, allocations: 36.04 MB / 498.4 MB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008521/0.5037, allocations: 3.809 MB / 0.4904 GB, free: 9.742 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00279/0.5065, allocations: 2.168 MB / 0.4925 GB, free: 7.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000455/0.507, allocations: 332.1 kB / 0.4928 GB, free: 7.184 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.5071, allocations: 51.5 kB / 0.4929 GB, free: 7.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 3.867e-06/0.5071, allocations: 4 kB / 0.4929 GB, free: 7.117 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.0617/0.5688, allocations: 21.39 MB / 0.5138 GB, free: 1.609 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001603/0.569, allocations: 256.6 kB / 0.514 GB, free: 1.301 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009636/0.5787, allocations: 3.926 MB / 0.5179 GB, free: 13.39 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005987/0.5793, allocations: 53.7 kB / 0.5179 GB, free: 13.33 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00261/0.5819, allocations: 2.779 MB / 0.5206 GB, free: 10.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00119/0.5832, allocations: 0.7172 MB / 0.5213 GB, free: 9.789 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.5844, allocations: 0.4948 MB / 0.5218 GB, free: 9.285 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/0.5846, allocations: 309.1 kB / 0.5221 GB, free: 8.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003947/0.5885, allocations: 2.381 MB / 0.5244 GB, free: 6.594 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1811/0.7696, allocations: 5.64 MB / 0.5299 GB, free: 139.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01002/0.7796, allocations: 8.575 MB / 0.5383 GB, free: 134.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001144/0.7798, allocations: 33.62 kB / 0.5384 GB, free: 134.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02002/0.7998, allocations: 9.62 MB / 0.5477 GB, free: 131.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.8, allocations: 53.62 kB / 0.5478 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000225/0.8002, allocations: 113.6 kB / 0.5479 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005729/0.8059, allocations: 2.022 MB / 0.5499 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004033/0.81, allocations: 1.281 MB / 0.5511 GB, free: 130.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/0.8231, allocations: 10.6 MB / 0.5615 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004613/0.8277, allocations: 345.1 kB / 0.5618 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008721/0.8286, allocations: 338.4 kB / 0.5621 GB, free: 126.1 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.003759/0.8324, allocations: 1.949 MB / 0.564 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009338/0.8333, allocations: 343.8 kB / 0.5644 GB, free: 125.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009151/0.8425, allocations: 4.882 MB / 0.5691 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.395e-05/0.8426, allocations: 25.81 kB / 0.5692 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.8426, allocations: 8 kB / 0.5692 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-05/0.8426, allocations: 7.969 kB / 0.5692 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01743/0.8601, allocations: 10.04 MB / 0.579 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.437e-05/0.8602, allocations: 3 kB / 0.579 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.8615, allocations: 263.6 kB / 0.5792 GB, free: 111 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004814/0.8663, allocations: 1.85 MB / 0.581 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002178/0.8666, allocations: 35.94 kB / 0.5811 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/0.878, allocations: 9.706 MB / 0.5905 GB, free: 99.34 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.899e-06/0.8781, allocations: 4.031 kB / 0.5905 GB, free: 99.33 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/0.8895, allocations: 7.951 MB / 0.5983 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008401/0.8904, allocations: 419.2 kB / 0.5987 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006673/0.8911, allocations: 32 kB / 0.5987 GB, free: 90.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/0.893, allocations: 136.7 kB / 0.5989 GB, free: 90.81 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003642/0.8934, allocations: 113.1 kB / 0.599 GB, free: 90.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/0.8936, allocations: 49.09 kB / 0.599 GB, free: 90.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003489/0.8971, allocations: 2.48 MB / 0.6014 GB, free: 88.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8971, allocations: 0 / 0.6014 GB, free: 88.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004409/0.9015, allocations: 1.057 MB / 0.6025 GB, free: 87.14 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.0004072/0.9019, allocations: 163.8 kB / 0.6026 GB, free: 86.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007259/0.9092, allocations: 5.808 MB / 0.6083 GB, free: 81.18 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.9092, allocations: 0.5469 kB / 0.6083 GB, free: 81.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002357/0.9116, allocations: 2.085 MB / 0.6103 GB, free: 79.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003188/0.9148, allocations: 447.6 kB / 0.6108 GB, free: 78.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.9284, allocations: 11.38 MB / 0.6219 GB, free: 67.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003185/0.9316, allocations: 3.087 MB / 0.6249 GB, free: 64.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003977/0.9356, allocations: 1.824 MB / 0.6267 GB, free: 62.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007677/0.9364, allocations: 235.4 kB / 0.6269 GB, free: 62.07 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/0.9364, allocations: 0 / 0.6269 GB, free: 62.07 MB / 446.1 MB Notification: Performance of Templates: time 0.05972/0.9961, allocations: 42.49 MB / 0.6684 GB, free: 19.75 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches