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.001332/0.001332, allocations: 118.4 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001813/0.001813, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 227.4 MB / 247.6 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2648, allocations: 50.55 MB / 409.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01168/0.2766, allocations: 10.4 MB / 420.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008005/0.2846, allocations: 3.948 MB / 424.3 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001911/0.2866, allocations: 67.75 kB / 424.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004487/0.2911, allocations: 2.204 MB / 426.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004847/0.296, allocations: 1.825 MB / 428.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00189/0.2979, allocations: 0.7407 MB / 429.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007353/0.3053, allocations: 5.256 MB / 434.4 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004303/0.3096, allocations: 2.878 MB / 437.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003023/0.3127, allocations: 1.476 MB / 438.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003291/0.316, allocations: 2.033 MB / 440.8 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.3172, allocations: 300 kB / 441.1 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002817/0.3201, allocations: 1.19 MB / 442.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002398/0.3225, allocations: 1.851 MB / 444.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003286/0.3258, allocations: 2.047 MB / 446.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007869/0.3337, allocations: 6.631 MB / 452.8 MB, free: 6.602 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3337, allocations: 4 kB / 452.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.3337, allocations: 0 / 452.8 MB, free: 6.598 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002156/0.334, allocations: 3.938 kB / 452.8 MB, free: 6.594 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.01121/0.3452, allocations: 4.666 MB / 457.5 MB, free: 1.855 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.3452, allocations: 11.97 kB / 457.5 MB, free: 1.844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02814/0.3734, allocations: 3.081 MB / 460.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009584/0.383, allocations: 3.284 MB / 463.8 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002509/0.3833, allocations: 193 kB / 464 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001285/0.3846, allocations: 275.7 kB / 464.3 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/0.4006, allocations: 8.863 MB / 473.2 MB, free: 1.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001646/0.4008, allocations: 47.59 kB / 473.2 MB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006971/0.4015, allocations: 127.9 kB / 473.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003115/0.4047, allocations: 1.759 MB / 475.1 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0148/0.4195, allocations: 7.792 MB / 482.9 MB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04659/0.4661, allocations: 35.86 MB / 0.5066 GB, free: 2.762 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008195/0.4744, allocations: 3.813 MB / 0.5103 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002927/0.4773, allocations: 2.156 MB / 0.5124 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000462/0.4778, allocations: 332 kB / 0.5127 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.56e-05/0.4779, allocations: 63.38 kB / 0.5128 GB, free: 12.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.578e-06/0.4779, allocations: 0 / 0.5128 GB, free: 12.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05855/0.5365, allocations: 21.39 MB / 0.5337 GB, free: 6.668 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00016/0.5367, allocations: 256.6 kB / 0.5339 GB, free: 6.363 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006729/0.5434, allocations: 3.93 MB / 0.5378 GB, free: 2.449 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004671/0.5439, allocations: 53.7 kB / 0.5378 GB, free: 2.391 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2332/0.7771, allocations: 2.765 MB / 0.5405 GB, free: 124.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/0.7787, allocations: 0.7263 MB / 0.5412 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002743/0.7815, allocations: 1.175 MB / 0.5424 GB, free: 124.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.424e-05/0.7816, allocations: 303.7 kB / 0.5427 GB, free: 124.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003649/0.7852, allocations: 2.386 MB / 0.545 GB, free: 123.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00405/0.7893, allocations: 5.642 MB / 0.5505 GB, free: 118.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007457/0.7967, allocations: 8.571 MB / 0.5589 GB, free: 111.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.257e-05/0.7968, allocations: 33.28 kB / 0.5589 GB, free: 111.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01463/0.8115, allocations: 9.627 MB / 0.5683 GB, free: 105.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.34e-05/0.8116, allocations: 56 kB / 0.5683 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.8117, allocations: 115.9 kB / 0.5685 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005237/0.817, allocations: 2.012 MB / 0.5704 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00501/0.822, allocations: 1.286 MB / 0.5717 GB, free: 102.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01648/0.8385, allocations: 11.36 MB / 0.5828 GB, free: 91.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00606/0.8446, allocations: 347.4 kB / 0.5831 GB, free: 90.77 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/0.8457, allocations: 339.7 kB / 0.5834 GB, free: 90.44 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.00322/0.8489, allocations: 1.943 MB / 0.5853 GB, free: 88.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007691/0.8497, allocations: 339.6 kB / 0.5856 GB, free: 88.15 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/0.86, allocations: 4.891 MB / 0.5904 GB, free: 83.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.783e-05/0.8602, allocations: 23.61 kB / 0.5904 GB, free: 83.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/0.8602, allocations: 8 kB / 0.5905 GB, free: 83.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.64e-05/0.8602, allocations: 7.969 kB / 0.5905 GB, free: 83.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02097/0.8812, allocations: 10 MB / 0.6002 GB, free: 73.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-05/0.8813, allocations: 2.688 kB / 0.6002 GB, free: 73.18 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.883, allocations: 263.6 kB / 0.6005 GB, free: 72.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006112/0.8891, allocations: 1.85 MB / 0.6023 GB, free: 71.07 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003679/0.8895, allocations: 32 kB / 0.6023 GB, free: 71.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/0.9043, allocations: 10.4 MB / 0.6125 GB, free: 60.49 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.9044, allocations: 0 / 0.6125 GB, free: 60.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0133/0.9177, allocations: 7.947 MB / 0.6202 GB, free: 52.51 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009327/0.9187, allocations: 404.4 kB / 0.6206 GB, free: 52.09 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004762/0.9192, allocations: 37.3 kB / 0.6207 GB, free: 52.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.9208, allocations: 139.3 kB / 0.6208 GB, free: 51.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.9211, allocations: 114.2 kB / 0.6209 GB, free: 51.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.9212, allocations: 51.98 kB / 0.6209 GB, free: 51.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002977/0.9242, allocations: 2.48 MB / 0.6234 GB, free: 49.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9242, allocations: 0 / 0.6234 GB, free: 49.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004574/0.9288, allocations: 1.052 MB / 0.6244 GB, free: 48.26 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.0004699/0.9293, allocations: 172.9 kB / 0.6246 GB, free: 48.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007268/0.9366, allocations: 5.816 MB / 0.6302 GB, free: 42.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.9366, allocations: 3.703 kB / 0.6302 GB, free: 42.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.9391, allocations: 2.103 MB / 0.6323 GB, free: 40.16 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002626/0.9417, allocations: 464.7 kB / 0.6327 GB, free: 39.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/0.955, allocations: 9.778 MB / 0.6423 GB, free: 29.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002404/0.9574, allocations: 3.055 MB / 0.6453 GB, free: 26.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.9585, allocations: 275.4 kB / 0.6455 GB, free: 26.55 MB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.9585, allocations: 0 / 0.6455 GB, free: 26.55 MB / 462.1 MB Notification: Performance of Templates: time 0.09433/1.053, allocations: 74.92 MB / 0.7187 GB, free: 15.71 MB / 0.5138 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","/var/lib/jenkins1/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