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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001006/0.001006, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.108/1.108, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008887/0.0008887, allocations: 101.5 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007272/0.0007272, allocations: 43.92 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.18/0.1807, allocations: 46.61 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02368/0.2044, allocations: 38.41 MB / 412.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.2188, allocations: 8.672 MB / 420.9 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006493/0.2253, allocations: 171.5 kB / 421.1 MB, free: 2.102 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003519/0.2289, allocations: 2.186 MB / 423.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003793/0.2327, allocations: 1.74 MB / 425 MB, free: 14.16 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.234, allocations: 0.6865 MB / 425.7 MB, free: 13.48 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00629/0.2403, allocations: 6.756 MB / 432.5 MB, free: 6.707 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003312/0.2436, allocations: 2.827 MB / 435.3 MB, free: 3.832 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.2456, allocations: 1.315 MB / 436.6 MB, free: 2.512 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002248/0.2479, allocations: 2.188 MB / 438.8 MB, free: 324 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003789/0.2483, allocations: 200 kB / 439 MB, free: 124 kB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001907/0.2502, allocations: 1.143 MB / 440.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.2517, allocations: 1.784 MB / 441.9 MB, free: 13.18 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.2533, allocations: 1.98 MB / 443.9 MB, free: 11.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005143/0.2585, allocations: 6.41 MB / 450.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2585, allocations: 0 / 450.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.2585, allocations: 0 / 450.3 MB, free: 4.762 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.121e-05/0.2586, allocations: 0 / 450.3 MB, free: 4.762 MB / 330.7 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.007818/0.2664, allocations: 4.674 MB / 455 MB, free: 16 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.2664, allocations: 12.03 kB / 455 MB, free: 4 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02462/0.2911, allocations: 3.085 MB / 458.1 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00771/0.2988, allocations: 3.386 MB / 461.5 MB, free: 9.461 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/0.299, allocations: 197 kB / 461.6 MB, free: 9.266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005975/0.2996, allocations: 271.8 kB / 461.9 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.3114, allocations: 8.851 MB / 470.8 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.856e-05/0.3116, allocations: 51.5 kB / 470.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003042/0.3119, allocations: 127.9 kB / 470.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002702/0.3146, allocations: 1.77 MB / 472.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01225/0.3268, allocations: 7.788 MB / 480.5 MB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1794/0.5063, allocations: 36.04 MB / 0.5044 GB, free: 86.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007199/0.5135, allocations: 3.806 MB / 0.5081 GB, free: 85.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002099/0.5157, allocations: 2.155 MB / 0.5102 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003306/0.516, allocations: 331.4 kB / 0.5106 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.516, allocations: 51.53 kB / 0.5106 GB, free: 84.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.516, allocations: 0 / 0.5106 GB, free: 84.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=190): time 0.04464/0.5607, allocations: 21.45 MB / 0.5316 GB, free: 70.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.5608, allocations: 256.6 kB / 0.5318 GB, free: 69.76 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003921/0.5647, allocations: 3.956 MB / 0.5357 GB, free: 65.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002885/0.565, allocations: 53.3 kB / 0.5357 GB, free: 65.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.5661, allocations: 2.783 MB / 0.5384 GB, free: 63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004741/0.5666, allocations: 0.7162 MB / 0.5391 GB, free: 62.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001108/0.5677, allocations: 1.178 MB / 0.5403 GB, free: 61.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.5677, allocations: 313 kB / 0.5406 GB, free: 60.79 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002342/0.5701, allocations: 2.381 MB / 0.5429 GB, free: 58.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003281/0.5734, allocations: 5.634 MB / 0.5484 GB, free: 51.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00661/0.58, allocations: 8.577 MB / 0.5568 GB, free: 41.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.387e-05/0.5801, allocations: 32 kB / 0.5568 GB, free: 41.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0143/0.5944, allocations: 9.629 MB / 0.5662 GB, free: 31.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.678e-05/0.5945, allocations: 52 kB / 0.5663 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.205e-05/0.5946, allocations: 112 kB / 0.5664 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004552/0.5991, allocations: 2.014 MB / 0.5683 GB, free: 29.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003395/0.6025, allocations: 1.283 MB / 0.5696 GB, free: 27.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01088/0.6134, allocations: 10.59 MB / 0.5799 GB, free: 17.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/0.6175, allocations: 339.4 kB / 0.5803 GB, free: 16.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000607/0.6181, allocations: 344.1 kB / 0.5806 GB, free: 16.58 MB / 378.7 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.002379/0.6205, allocations: 1.947 MB / 0.5825 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005631/0.6211, allocations: 351.5 kB / 0.5828 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007795/0.6289, allocations: 4.887 MB / 0.5876 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-05/0.6289, allocations: 30.67 kB / 0.5876 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.629, allocations: 8 kB / 0.5876 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.037e-05/0.629, allocations: 7.969 kB / 0.5876 GB, free: 9.328 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01547/0.6445, allocations: 10.05 MB / 0.5975 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.6445, allocations: 0 / 0.5975 GB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.6458, allocations: 263.6 kB / 0.5977 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005046/0.6508, allocations: 1.842 MB / 0.5995 GB, free: 13.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000211/0.6511, allocations: 32 kB / 0.5995 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01246/0.6635, allocations: 9.718 MB / 0.609 GB, free: 3.242 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6636, allocations: 4.062 kB / 0.609 GB, free: 3.238 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2406/0.9042, allocations: 60.12 MB / 0.6677 GB, free: 152.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.9056, allocations: 0.7183 MB / 0.6684 GB, free: 152.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003358/0.906, allocations: 33.69 kB / 0.6685 GB, free: 152.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001484/0.9075, allocations: 137.7 kB / 0.6686 GB, free: 152.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003594/0.9078, allocations: 113.5 kB / 0.6687 GB, free: 152.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/0.908, allocations: 48 kB / 0.6688 GB, free: 152.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00308/0.911, allocations: 2.507 MB / 0.6712 GB, free: 151.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.9111, allocations: 0 / 0.6712 GB, free: 151.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004251/0.9153, allocations: 1.473 MB / 0.6726 GB, free: 151.4 MB / 442.7 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.000311/0.9156, allocations: 172.4 kB / 0.6728 GB, free: 151.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005955/0.9216, allocations: 5.799 MB / 0.6785 GB, free: 149.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.9216, allocations: 0 / 0.6785 GB, free: 149.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002066/0.9237, allocations: 2.098 MB / 0.6805 GB, free: 148.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.9256, allocations: 446.4 kB / 0.6809 GB, free: 148.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.9373, allocations: 12.91 MB / 0.6936 GB, free: 139.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002197/0.9395, allocations: 3.176 MB / 0.6967 GB, free: 137.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003406/0.9429, allocations: 1.853 MB / 0.6985 GB, free: 136 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006284/0.9436, allocations: 238.5 kB / 0.6987 GB, free: 135.8 MB / 442.7 MB Notification: Performance of SimCode: time 5.31e-07/0.9436, allocations: 4 kB / 0.6987 GB, free: 135.7 MB / 442.7 MB Notification: Performance of Templates: time 0.06231/1.006, allocations: 59.69 MB / 0.757 GB, free: 76.35 MB / 442.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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