Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 111 kB / 17.93 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 193.3 kB / 18.86 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.1 MB / 224.7 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 47.94 kB / 280.8 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09819/0.09935, allocations: 46.63 MB / 327.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03437/0.1338, allocations: 38.42 MB / 365.9 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01834/0.1522, allocations: 8.57 MB / 374.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006894/0.1591, allocations: 167.6 kB / 374.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004363/0.1635, allocations: 2.115 MB / 376.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.1683, allocations: 1.744 MB / 378.5 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001736/0.17, allocations: 0.6982 MB / 379.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1812/0.3513, allocations: 5.057 MB / 384.2 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004771/0.3561, allocations: 3.051 MB / 387.3 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003275/0.3594, allocations: 1.521 MB / 388.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003935/0.3634, allocations: 2.297 MB / 391.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001082/0.3645, allocations: 301.1 kB / 391.4 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.3673, allocations: 1.192 MB / 392.6 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002459/0.3698, allocations: 1.884 MB / 394.4 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003654/0.3735, allocations: 2.098 MB / 396.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005897/0.3794, allocations: 5.282 MB / 401.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3794, allocations: 0 / 401.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3794, allocations: 2.719 kB / 401.8 MB, free: 7.457 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000224/0.3797, allocations: 4 kB / 401.8 MB, free: 7.453 MB / 318.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.01149/0.3912, allocations: 4.672 MB / 406.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.3912, allocations: 9.031 kB / 406.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02353/0.4148, allocations: 3.087 MB / 409.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007601/0.4224, allocations: 3.377 MB / 413 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.4226, allocations: 201.9 kB / 413.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.4237, allocations: 271.3 kB / 413.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01623/0.44, allocations: 8.857 MB / 422.3 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001633/0.4402, allocations: 52.95 kB / 422.3 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00051/0.4407, allocations: 130.5 kB / 422.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/0.4438, allocations: 1.766 MB / 424.2 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0152/0.4591, allocations: 7.795 MB / 432 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04655/0.5057, allocations: 36.03 MB / 468.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008076/0.5138, allocations: 3.829 MB / 471.9 MB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002753/0.5166, allocations: 2.152 MB / 474 MB, free: 4.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000484/0.5171, allocations: 331 kB / 474.4 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.5172, allocations: 51.56 kB / 474.4 MB, free: 3.715 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 5.741e-06/0.5172, allocations: 0 / 474.4 MB, free: 3.715 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.0613/0.5785, allocations: 21.44 MB / 495.9 MB, free: 14.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.5787, allocations: 252.6 kB / 496.1 MB, free: 13.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008338/0.587, allocations: 3.955 MB / 0.4883 GB, free: 9.988 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000619/0.5877, allocations: 49.7 kB / 0.4884 GB, free: 9.934 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002556/0.5903, allocations: 2.781 MB / 0.4911 GB, free: 7.156 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.5916, allocations: 0.7169 MB / 0.4918 GB, free: 6.445 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00351/0.5951, allocations: 1.181 MB / 0.493 GB, free: 5.258 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.5953, allocations: 309.1 kB / 0.4932 GB, free: 4.953 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004059/0.5993, allocations: 2.385 MB / 0.4956 GB, free: 2.562 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007011/0.6064, allocations: 5.636 MB / 0.5011 GB, free: 11.36 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01093/0.6173, allocations: 8.576 MB / 0.5095 GB, free: 1.672 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000149/0.6175, allocations: 32 kB / 0.5095 GB, free: 1.641 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.02198/0.6395, allocations: 9.625 MB / 0.5189 GB, free: 8.688 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001865/0.6398, allocations: 60.91 kB / 0.5189 GB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002321/0.64, allocations: 116 kB / 0.5191 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006317/0.6464, allocations: 2.026 MB / 0.521 GB, free: 6.484 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004865/0.6513, allocations: 1.279 MB / 0.5223 GB, free: 5.203 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01684/0.6681, allocations: 11.35 MB / 0.5334 GB, free: 9.711 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005416/0.6736, allocations: 343.5 kB / 0.5337 GB, free: 9.375 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001384/0.675, allocations: 342.2 kB / 0.534 GB, free: 9.043 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.005201/0.6802, allocations: 1.939 MB / 0.5359 GB, free: 7.09 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/0.6814, allocations: 343.6 kB / 0.5362 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01102/0.6925, allocations: 4.899 MB / 0.541 GB, free: 1.832 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-05/0.6926, allocations: 20 kB / 0.541 GB, free: 1.812 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.657e-05/0.6926, allocations: 8 kB / 0.5411 GB, free: 1.805 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.392e-05/0.6926, allocations: 23.66 kB / 0.5411 GB, free: 1.785 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1938/0.8864, allocations: 10.04 MB / 0.5509 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.148e-05/0.8865, allocations: 2.469 kB / 0.5509 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001418/0.8879, allocations: 267.5 kB / 0.5511 GB, free: 173 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005761/0.8937, allocations: 1.852 MB / 0.5529 GB, free: 172.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004377/0.8942, allocations: 30.22 kB / 0.553 GB, free: 172.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/0.9069, allocations: 10.41 MB / 0.5631 GB, free: 168 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.117e-06/0.907, allocations: 3.938 kB / 0.5631 GB, free: 168 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01126/0.9182, allocations: 7.941 MB / 0.5709 GB, free: 165.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00194/0.9202, allocations: 0.7233 MB / 0.5716 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006987/0.9209, allocations: 31.84 kB / 0.5716 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001799/0.9227, allocations: 131.2 kB / 0.5718 GB, free: 165 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003873/0.9231, allocations: 119.6 kB / 0.5719 GB, free: 164.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/0.9233, allocations: 46.62 kB / 0.5719 GB, free: 164.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003752/0.927, allocations: 2.501 MB / 0.5744 GB, free: 164.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9271, allocations: 0 / 0.5744 GB, free: 164.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005386/0.9325, allocations: 1.068 MB / 0.5754 GB, free: 164 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.0006809/0.9332, allocations: 166.5 kB / 0.5756 GB, free: 163.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01078/0.944, allocations: 6.879 MB / 0.5823 GB, free: 158.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.944, allocations: 0 / 0.5823 GB, free: 158.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/0.9468, allocations: 2.096 MB / 0.5843 GB, free: 156.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/0.9502, allocations: 482 kB / 0.5848 GB, free: 156.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/0.9676, allocations: 11.63 MB / 0.5961 GB, free: 144.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002941/0.9706, allocations: 3.068 MB / 0.5991 GB, free: 141.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.9718, allocations: 279.4 kB / 0.5994 GB, free: 141.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.9718, allocations: 0 / 0.5994 GB, free: 141.6 MB / 462.1 MB Notification: Performance of Templates: time 0.092/1.064, allocations: 74.04 MB / 0.6717 GB, free: 67.4 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/DoublePendulum/DoublePendulum.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches