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.0009964/0.0009965, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001165/0.001165, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 247.5 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002462, allocations: 4 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09292, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.2066/0.2996, allocations: 37.07 MB / 397 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01959/0.3192, allocations: 8.511 MB / 405.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007282/0.3266, allocations: 166.5 kB / 405.7 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.3281, allocations: 388.4 kB / 406 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004653/0.3328, allocations: 1.729 MB / 407.8 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001574/0.3344, allocations: 0.6809 MB / 408.5 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008425/0.3428, allocations: 7.29 MB / 415.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005358/0.3482, allocations: 3.876 MB / 419.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.3503, allocations: 1.136 MB / 420.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002503/0.3528, allocations: 1.97 MB / 422.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003779/0.3532, allocations: 132 kB / 422.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3553, allocations: 1.065 MB / 423.9 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.357, allocations: 1.679 MB / 425.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.359, allocations: 1.857 MB / 427.5 MB, free: 7.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005309/0.3643, allocations: 5.062 MB / 432.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3643, allocations: 4 kB / 432.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3643, allocations: 0 / 432.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001664/0.3645, allocations: 4 kB / 432.5 MB, free: 2.215 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.008965/0.3735, allocations: 3.86 MB / 436.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3735, allocations: 12.03 kB / 436.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02779/0.4013, allocations: 3.163 MB / 439.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007439/0.4088, allocations: 3.21 MB / 442.8 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.409, allocations: 197 kB / 443 MB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/0.4097, allocations: 275.6 kB / 443.2 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.4247, allocations: 8.882 MB / 452.1 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.4249, allocations: 43.59 kB / 452.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004258/0.4254, allocations: 127.9 kB / 452.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003182/0.4286, allocations: 1.774 MB / 454.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01474/0.4433, allocations: 7.8 MB / 461.9 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04193/0.4853, allocations: 36.03 MB / 497.9 MB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008094/0.4934, allocations: 3.833 MB / 0.49 GB, free: 11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002674/0.4962, allocations: 2.152 MB / 0.4921 GB, free: 8.832 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004091/0.4966, allocations: 328.1 kB / 0.4924 GB, free: 8.457 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4966, allocations: 59.5 kB / 0.4924 GB, free: 8.387 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.188e-06/0.4966, allocations: 0 / 0.4924 GB, free: 8.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.0586/0.5553, allocations: 21.39 MB / 0.5133 GB, free: 2.879 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.5555, allocations: 256.6 kB / 0.5136 GB, free: 2.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006153/0.5616, allocations: 3.922 MB / 0.5174 GB, free: 14.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004371/0.5621, allocations: 53.7 kB / 0.5174 GB, free: 14.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002195/0.5643, allocations: 2.775 MB / 0.5202 GB, free: 11.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/0.5654, allocations: 0.7212 MB / 0.5209 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001096/0.5666, allocations: 0.4948 MB / 0.5213 GB, free: 10.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5667, allocations: 313.1 kB / 0.5216 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004351/0.571, allocations: 2.385 MB / 0.524 GB, free: 7.859 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006314/0.5774, allocations: 5.632 MB / 0.5295 GB, free: 0.6133 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1884/0.7658, allocations: 8.575 MB / 0.5378 GB, free: 134.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001147/0.766, allocations: 32.53 kB / 0.5379 GB, free: 134.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02115/0.7871, allocations: 9.63 MB / 0.5473 GB, free: 131.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.653e-05/0.7872, allocations: 54.28 kB / 0.5473 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001777/0.7874, allocations: 112.5 kB / 0.5474 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005702/0.7931, allocations: 2.013 MB / 0.5494 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004109/0.7973, allocations: 1.289 MB / 0.5507 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.8095, allocations: 10.59 MB / 0.561 GB, free: 126.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/0.8135, allocations: 344.1 kB / 0.5613 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005728/0.8141, allocations: 336.1 kB / 0.5617 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.002621/0.8167, allocations: 1.951 MB / 0.5636 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005254/0.8173, allocations: 346.9 kB / 0.5639 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008257/0.8255, allocations: 4.882 MB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.455e-05/0.8256, allocations: 20 kB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.374e-05/0.8256, allocations: 8 kB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/0.8257, allocations: 11.97 kB / 0.5687 GB, free: 122 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01462/0.8403, allocations: 10.03 MB / 0.5785 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.456e-05/0.8403, allocations: 4 kB / 0.5785 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.8415, allocations: 268.4 kB / 0.5788 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004477/0.846, allocations: 1.85 MB / 0.5806 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001569/0.8462, allocations: 31.94 kB / 0.5806 GB, free: 109.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.8564, allocations: 9.705 MB / 0.5901 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.8565, allocations: 7.969 kB / 0.5901 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.8672, allocations: 7.957 MB / 0.5978 GB, free: 92.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009025/0.8681, allocations: 416.6 kB / 0.5982 GB, free: 91.67 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004053/0.8685, allocations: 28.94 kB / 0.5983 GB, free: 91.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.8701, allocations: 135.8 kB / 0.5984 GB, free: 91.51 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003365/0.8704, allocations: 117.1 kB / 0.5985 GB, free: 91.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.8705, allocations: 49.48 kB / 0.5986 GB, free: 91.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002918/0.8735, allocations: 2.476 MB / 0.601 GB, free: 88.89 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.8735, allocations: 4 kB / 0.601 GB, free: 88.89 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004092/0.8776, allocations: 1.057 MB / 0.602 GB, free: 87.84 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.0003934/0.878, allocations: 155.5 kB / 0.6022 GB, free: 87.68 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007169/0.8851, allocations: 5.812 MB / 0.6078 GB, free: 81.88 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.8852, allocations: 4 kB / 0.6078 GB, free: 81.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.8876, allocations: 2.094 MB / 0.6099 GB, free: 79.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003281/0.8909, allocations: 436.3 kB / 0.6103 GB, free: 79.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.9047, allocations: 11.71 MB / 0.6217 GB, free: 67.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002419/0.9072, allocations: 3.067 MB / 0.6247 GB, free: 64.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009693/0.9082, allocations: 275.4 kB / 0.625 GB, free: 64.24 MB / 446.1 MB Notification: Performance of SimCode: time 8.02e-07/0.9082, allocations: 0 / 0.625 GB, free: 64.24 MB / 446.1 MB Notification: Performance of Templates: time 0.2556/1.164, allocations: 72.98 MB / 0.6963 GB, free: 146.9 MB / 462.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/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