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.001432/0.001432, 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.001765/0.001766, 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.343/1.343, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 59.69 kB / 306.3 MB, free: 1.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09703/0.09826, allocations: 50.54 MB / 356.8 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.195/0.2933, allocations: 38.14 MB / 394.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01993/0.3132, allocations: 8.574 MB / 403.5 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007809/0.3211, allocations: 172.7 kB / 403.7 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004622/0.3258, allocations: 2.169 MB / 405.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004759/0.3306, allocations: 1.716 MB / 407.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001829/0.3324, allocations: 0.6817 MB / 408.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009199/0.3416, allocations: 7.299 MB / 415.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004303/0.346, allocations: 2.813 MB / 418.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002504/0.3485, allocations: 1.292 MB / 419.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00339/0.3519, allocations: 2.177 MB / 421.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.353, allocations: 204 kB / 422 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003113/0.3561, allocations: 1.135 MB / 423.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002641/0.3588, allocations: 1.749 MB / 424.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004512/0.3633, allocations: 1.968 MB / 426.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008335/0.3717, allocations: 6.347 MB / 433.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3717, allocations: 3.938 kB / 433.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3717, allocations: 0 / 433.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00022/0.372, allocations: 0 / 433.2 MB, free: 15.24 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.01002/0.382, allocations: 4.666 MB / 437.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.382, allocations: 12.03 kB / 437.9 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02331/0.4053, allocations: 3.077 MB / 441 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007869/0.4133, allocations: 3.214 MB / 444.2 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.4135, allocations: 193 kB / 444.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/0.4146, allocations: 279.6 kB / 444.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01684/0.4314, allocations: 8.855 MB / 453.5 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001957/0.4317, allocations: 51.64 kB / 453.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008422/0.4325, allocations: 123.9 kB / 453.7 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003309/0.4358, allocations: 1.766 MB / 455.5 MB, free: 8.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/0.4511, allocations: 7.792 MB / 463.3 MB, free: 424 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04589/0.4971, allocations: 36.01 MB / 499.3 MB, free: 11.33 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008417/0.5055, allocations: 3.825 MB / 0.4913 GB, free: 7.363 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00276/0.5083, allocations: 2.157 MB / 0.4934 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004369/0.5088, allocations: 336.1 kB / 0.4937 GB, free: 4.812 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.5088, allocations: 47.61 kB / 0.4938 GB, free: 4.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 3.547e-06/0.5088, allocations: 3.938 kB / 0.4938 GB, free: 4.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06012/0.569, allocations: 21.39 MB / 0.5147 GB, free: 15.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.5691, allocations: 256.6 kB / 0.5149 GB, free: 14.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006682/0.5758, allocations: 3.922 MB / 0.5187 GB, free: 11.03 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003675/0.5762, allocations: 53.7 kB / 0.5188 GB, free: 10.97 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002261/0.5785, allocations: 2.771 MB / 0.5215 GB, free: 8.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0011/0.5796, allocations: 0.7288 MB / 0.5222 GB, free: 7.422 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002445/0.5821, allocations: 1.17 MB / 0.5233 GB, free: 6.238 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5822, allocations: 305.1 kB / 0.5236 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/0.5859, allocations: 2.389 MB / 0.526 GB, free: 3.543 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2116/0.7976, allocations: 5.636 MB / 0.5315 GB, free: 141.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0099/0.8075, allocations: 8.577 MB / 0.5398 GB, free: 135.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000145/0.8077, allocations: 31.84 kB / 0.5399 GB, free: 135.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02026/0.828, allocations: 9.624 MB / 0.5493 GB, free: 132.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.8281, allocations: 55.48 kB / 0.5493 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001349/0.8283, allocations: 112.8 kB / 0.5494 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005484/0.8338, allocations: 2.02 MB / 0.5514 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003721/0.8375, allocations: 1.276 MB / 0.5527 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/0.8497, allocations: 10.59 MB / 0.563 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0043/0.8541, allocations: 347.5 kB / 0.5633 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006515/0.8547, allocations: 333.3 kB / 0.5637 GB, free: 127 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.002568/0.8573, allocations: 1.947 MB / 0.5656 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005833/0.8579, allocations: 346 kB / 0.5659 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008621/0.8665, allocations: 4.886 MB / 0.5707 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/0.8666, allocations: 20 kB / 0.5707 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.8666, allocations: 8 kB / 0.5707 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.8666, allocations: 7.969 kB / 0.5707 GB, free: 122.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/0.882, allocations: 10.04 MB / 0.5805 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.8821, allocations: 4 kB / 0.5805 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.8833, allocations: 271.7 kB / 0.5808 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004902/0.8883, allocations: 1.846 MB / 0.5826 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/0.8885, allocations: 31.94 kB / 0.5826 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.8998, allocations: 9.707 MB / 0.5921 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8998, allocations: 0 / 0.5921 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/0.9119, allocations: 7.947 MB / 0.5998 GB, free: 92.92 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/0.9128, allocations: 408.5 kB / 0.6002 GB, free: 92.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008371/0.9137, allocations: 32 kB / 0.6002 GB, free: 92.47 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/0.9162, allocations: 135.8 kB / 0.6004 GB, free: 92.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006005/0.9168, allocations: 113.9 kB / 0.6005 GB, free: 92.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002539/0.9171, allocations: 48 kB / 0.6005 GB, free: 92.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005749/0.9229, allocations: 2.48 MB / 0.603 GB, free: 89.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.9229, allocations: 0 / 0.603 GB, free: 89.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007594/0.9305, allocations: 1.051 MB / 0.604 GB, free: 88.68 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.0007248/0.9312, allocations: 179.5 kB / 0.6041 GB, free: 88.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01206/0.9433, allocations: 5.799 MB / 0.6098 GB, free: 82.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.9434, allocations: 0 / 0.6098 GB, free: 82.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003989/0.9474, allocations: 2.101 MB / 0.6119 GB, free: 80.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00572/0.9531, allocations: 434.8 kB / 0.6123 GB, free: 80.18 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/0.9757, allocations: 11.28 MB / 0.6233 GB, free: 68.89 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005451/0.9812, allocations: 3.091 MB / 0.6263 GB, free: 65.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006927/0.9882, allocations: 1.815 MB / 0.6281 GB, free: 63.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/0.9895, allocations: 231.4 kB / 0.6283 GB, free: 63.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.9895, allocations: 4 kB / 0.6283 GB, free: 63.71 MB / 446.1 MB Notification: Performance of Templates: time 0.06645/1.056, allocations: 43.36 MB / 0.6707 GB, free: 20.53 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