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.001148/0.001148, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001172/0.001172, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2489, allocations: 50.54 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01082/0.2597, allocations: 10.39 MB / 420.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0082/0.268, allocations: 3.956 MB / 424.3 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.2696, allocations: 63.81 kB / 424.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004182/0.2739, allocations: 2.207 MB / 426.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004433/0.2783, allocations: 1.821 MB / 428.4 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001706/0.28, allocations: 0.7447 MB / 429.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006862/0.2869, allocations: 5.256 MB / 434.4 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003936/0.2909, allocations: 2.878 MB / 437.3 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.2935, allocations: 1.48 MB / 438.7 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003135/0.2967, allocations: 2.033 MB / 440.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.2977, allocations: 300 kB / 441.1 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002607/0.3004, allocations: 1.178 MB / 442.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002188/0.3026, allocations: 1.862 MB / 444.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002887/0.3055, allocations: 2.039 MB / 446.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007598/0.3131, allocations: 6.632 MB / 452.8 MB, free: 6.551 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3131, allocations: 7.938 kB / 452.8 MB, free: 6.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3131, allocations: 3.984 kB / 452.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002074/0.3134, allocations: 0 / 452.8 MB, free: 6.539 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.0114/0.3248, allocations: 4.659 MB / 457.4 MB, free: 1.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3248, allocations: 8.031 kB / 457.5 MB, free: 1.801 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0277/0.3525, allocations: 3.092 MB / 460.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007597/0.3602, allocations: 3.276 MB / 463.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.3604, allocations: 197 kB / 464 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009184/0.3613, allocations: 271.7 kB / 464.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01411/0.3754, allocations: 8.863 MB / 473.1 MB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.3756, allocations: 39.66 kB / 473.2 MB, free: 1.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003933/0.376, allocations: 139.8 kB / 473.3 MB, free: 1.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003137/0.3791, allocations: 1.762 MB / 475.1 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.3932, allocations: 7.784 MB / 482.9 MB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04046/0.4337, allocations: 35.87 MB / 0.5066 GB, free: 2.707 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008104/0.4419, allocations: 3.804 MB / 0.5103 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002664/0.4446, allocations: 2.169 MB / 0.5124 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004304/0.445, allocations: 336.2 kB / 0.5127 GB, free: 12.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.4451, allocations: 51.5 kB / 0.5128 GB, free: 12.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=160): time 4.879e-06/0.4451, allocations: 0 / 0.5128 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=190): time 0.05818/0.5033, allocations: 21.41 MB / 0.5337 GB, free: 6.605 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.5035, allocations: 248.6 kB / 0.5339 GB, free: 6.309 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005301/0.5088, allocations: 3.93 MB / 0.5378 GB, free: 2.395 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004553/0.5093, allocations: 61.69 kB / 0.5378 GB, free: 2.328 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2161/0.7254, allocations: 2.764 MB / 0.5405 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00113/0.7265, allocations: 0.7264 MB / 0.5412 GB, free: 124.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002353/0.7289, allocations: 1.178 MB / 0.5424 GB, free: 124.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.168e-05/0.7289, allocations: 301.1 kB / 0.5427 GB, free: 124 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003254/0.7322, allocations: 2.385 MB / 0.545 GB, free: 123.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003906/0.7361, allocations: 5.639 MB / 0.5505 GB, free: 118.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007632/0.7438, allocations: 8.568 MB / 0.5589 GB, free: 111.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-05/0.7439, allocations: 31.38 kB / 0.5589 GB, free: 111.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01481/0.7587, allocations: 9.622 MB / 0.5683 GB, free: 105.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.759e-05/0.7588, allocations: 55.33 kB / 0.5683 GB, free: 105.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-05/0.7589, allocations: 120.8 kB / 0.5685 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004877/0.7638, allocations: 2.023 MB / 0.5704 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/0.7677, allocations: 1.274 MB / 0.5717 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/0.7805, allocations: 11.35 MB / 0.5828 GB, free: 91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004584/0.7851, allocations: 343.4 kB / 0.5831 GB, free: 90.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009823/0.7861, allocations: 336.5 kB / 0.5834 GB, free: 90.34 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.00359/0.7897, allocations: 1.948 MB / 0.5853 GB, free: 88.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009314/0.7906, allocations: 347 kB / 0.5856 GB, free: 88.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008809/0.7995, allocations: 4.891 MB / 0.5904 GB, free: 83.13 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.655e-05/0.7995, allocations: 23.83 kB / 0.5904 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.7996, allocations: 11.72 kB / 0.5905 GB, free: 83.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.822e-05/0.7996, allocations: 7.969 kB / 0.5905 GB, free: 83.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/0.8147, allocations: 9.993 MB / 0.6002 GB, free: 73.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/0.8147, allocations: 4.062 kB / 0.6002 GB, free: 73.07 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.816, allocations: 263.6 kB / 0.6005 GB, free: 72.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004702/0.8207, allocations: 1.842 MB / 0.6023 GB, free: 70.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004099/0.8212, allocations: 32 kB / 0.6023 GB, free: 70.94 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.8324, allocations: 10.4 MB / 0.6125 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.8325, allocations: 8.016 kB / 0.6125 GB, free: 60.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01083/0.8433, allocations: 7.953 MB / 0.6202 GB, free: 52.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009539/0.8443, allocations: 400.6 kB / 0.6206 GB, free: 51.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006353/0.845, allocations: 32 kB / 0.6207 GB, free: 51.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001693/0.8467, allocations: 140.9 kB / 0.6208 GB, free: 51.81 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/0.847, allocations: 110 kB / 0.6209 GB, free: 51.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001301/0.8471, allocations: 48 kB / 0.6209 GB, free: 51.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002991/0.8501, allocations: 2.48 MB / 0.6234 GB, free: 49.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8502, allocations: 4 kB / 0.6234 GB, free: 49.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004201/0.8544, allocations: 1.057 MB / 0.6244 GB, free: 48.15 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.0003894/0.8548, allocations: 165.7 kB / 0.6246 GB, free: 47.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006972/0.8618, allocations: 5.817 MB / 0.6302 GB, free: 42.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.8618, allocations: 3.062 kB / 0.6302 GB, free: 42.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002435/0.8642, allocations: 2.107 MB / 0.6323 GB, free: 40.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.867, allocations: 464.3 kB / 0.6327 GB, free: 39.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.8808, allocations: 9.761 MB / 0.6423 GB, free: 29.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002589/0.8835, allocations: 3.059 MB / 0.6453 GB, free: 26.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001058/0.8846, allocations: 279.4 kB / 0.6455 GB, free: 26.45 MB / 462.1 MB Notification: Performance of SimCode: time 7.52e-07/0.8846, allocations: 4 kB / 0.6455 GB, free: 26.45 MB / 462.1 MB Notification: Performance of Templates: time 0.1002/0.9848, allocations: 74.36 MB / 0.7181 GB, free: 172 kB / 0.4981 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