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.001567/0.001566, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001908/0.001908, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 227.4 MB / 246.3 MB, free: 10.88 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 60.62 kB / 306.3 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 50.55 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2149/0.3187, allocations: 38.14 MB / 394.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.3414, allocations: 8.569 MB / 403.5 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00916/0.3506, allocations: 173.3 kB / 403.7 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004933/0.3557, allocations: 2.177 MB / 405.9 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006203/0.3619, allocations: 1.704 MB / 407.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002144/0.3641, allocations: 0.6889 MB / 408.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009968/0.3741, allocations: 7.297 MB / 415.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004714/0.3788, allocations: 2.814 MB / 418.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003369/0.3822, allocations: 1.288 MB / 419.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003834/0.3861, allocations: 2.185 MB / 421.8 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001139/0.3872, allocations: 200 kB / 422 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003174/0.3904, allocations: 1.127 MB / 423.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002834/0.3933, allocations: 1.765 MB / 424.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003996/0.3973, allocations: 1.957 MB / 426.9 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007654/0.405, allocations: 6.355 MB / 433.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.405, allocations: 0 / 433.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.405, allocations: 0 / 433.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000208/0.4052, allocations: 0 / 433.2 MB, free: 15.28 MB / 350.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.01135/0.4166, allocations: 4.67 MB / 437.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.4167, allocations: 8.031 kB / 437.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0235/0.4402, allocations: 3.085 MB / 441 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007434/0.4477, allocations: 3.206 MB / 444.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.4478, allocations: 201 kB / 444.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006587/0.4485, allocations: 275.6 kB / 444.7 MB, free: 3.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.4612, allocations: 8.855 MB / 453.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001054/0.4614, allocations: 43.59 kB / 453.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/0.4617, allocations: 127.9 kB / 453.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.4645, allocations: 1.766 MB / 455.5 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.478, allocations: 7.788 MB / 463.2 MB, free: 468 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04143/0.5195, allocations: 36.02 MB / 499.3 MB, free: 11.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008333/0.5279, allocations: 3.82 MB / 0.4913 GB, free: 7.406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002709/0.5306, allocations: 2.157 MB / 0.4934 GB, free: 5.238 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004584/0.5311, allocations: 332.4 kB / 0.4937 GB, free: 4.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.501e-05/0.5312, allocations: 59.55 kB / 0.4938 GB, free: 4.789 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 3.967e-06/0.5312, allocations: 3.938 kB / 0.4938 GB, free: 4.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.05873/0.5899, allocations: 21.38 MB / 0.5147 GB, free: 15.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.5901, allocations: 256.6 kB / 0.5149 GB, free: 14.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007982/0.5981, allocations: 3.918 MB / 0.5187 GB, free: 11.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000587/0.5988, allocations: 53.7 kB / 0.5188 GB, free: 11.01 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002247/0.601, allocations: 2.786 MB / 0.5215 GB, free: 8.188 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.6022, allocations: 0.7171 MB / 0.5222 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002247/0.6044, allocations: 1.178 MB / 0.5234 GB, free: 6.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.6046, allocations: 309 kB / 0.5236 GB, free: 5.965 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/0.6078, allocations: 2.381 MB / 0.526 GB, free: 3.578 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2037/0.8116, allocations: 5.635 MB / 0.5315 GB, free: 140.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009355/0.8209, allocations: 8.578 MB / 0.5399 GB, free: 134.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/0.8211, allocations: 31.73 kB / 0.5399 GB, free: 134.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01998/0.8411, allocations: 9.622 MB / 0.5493 GB, free: 131.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/0.8413, allocations: 52.69 kB / 0.5493 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002087/0.8415, allocations: 113.7 kB / 0.5494 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008186/0.8497, allocations: 2.021 MB / 0.5514 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006149/0.8559, allocations: 1.28 MB / 0.5527 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01897/0.8748, allocations: 10.59 MB / 0.563 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/0.8812, allocations: 347.7 kB / 0.5633 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008104/0.882, allocations: 333.5 kB / 0.5637 GB, free: 126.4 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.003546/0.8855, allocations: 1.946 MB / 0.5656 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008323/0.8864, allocations: 343 kB / 0.5659 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/0.8979, allocations: 4.878 MB / 0.5706 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.344e-05/0.898, allocations: 30.75 kB / 0.5707 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.898, allocations: 4 kB / 0.5707 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.898, allocations: 15.97 kB / 0.5707 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.9119, allocations: 10.03 MB / 0.5805 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.912, allocations: 0 / 0.5805 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.913, allocations: 271.5 kB / 0.5807 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004463/0.9175, allocations: 1.846 MB / 0.5826 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.9177, allocations: 35.92 kB / 0.5826 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009931/0.9276, allocations: 9.705 MB / 0.5921 GB, free: 99.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.9276, allocations: 4.031 kB / 0.5921 GB, free: 99.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.9377, allocations: 7.946 MB / 0.5998 GB, free: 91.99 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007746/0.9385, allocations: 404.5 kB / 0.6002 GB, free: 91.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004234/0.9389, allocations: 32 kB / 0.6002 GB, free: 91.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001387/0.9403, allocations: 135.8 kB / 0.6004 GB, free: 91.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003438/0.9407, allocations: 115.2 kB / 0.6005 GB, free: 91.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.9408, allocations: 51.98 kB / 0.6005 GB, free: 91.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.9434, allocations: 2.48 MB / 0.603 GB, free: 88.79 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9434, allocations: 0 / 0.603 GB, free: 88.79 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003898/0.9473, allocations: 1.052 MB / 0.604 GB, free: 87.74 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.0003615/0.9477, allocations: 172.8 kB / 0.6041 GB, free: 87.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006775/0.9545, allocations: 5.8 MB / 0.6098 GB, free: 81.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.9545, allocations: 4 kB / 0.6098 GB, free: 81.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/0.9568, allocations: 2.092 MB / 0.6119 GB, free: 79.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.9592, allocations: 447.3 kB / 0.6123 GB, free: 79.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.972, allocations: 11.28 MB / 0.6233 GB, free: 67.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/0.9745, allocations: 3.091 MB / 0.6263 GB, free: 64.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003941/0.9785, allocations: 1.815 MB / 0.6281 GB, free: 63.01 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006907/0.9792, allocations: 239.4 kB / 0.6283 GB, free: 62.77 MB / 446.1 MB Notification: Performance of SimCode: time 1.373e-06/0.9792, allocations: 0 / 0.6283 GB, free: 62.77 MB / 446.1 MB Notification: Performance of Templates: time 0.05904/1.038, allocations: 43.36 MB / 0.6707 GB, free: 19.59 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