Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001098/0.001098, allocations: 104.2 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001058/0.001058, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 62.64 kB / 306.3 MB, free: 1.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.101, allocations: 50.55 MB / 356.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1872/0.2882, allocations: 34.52 MB / 391.3 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.3049, allocations: 7.851 MB / 399.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007786/0.3127, allocations: 146.1 kB / 399.3 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005072/0.3179, allocations: 2.045 MB / 401.4 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005344/0.3233, allocations: 1.503 MB / 402.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.325, allocations: 0.6349 MB / 403.5 MB, free: 9.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005497/0.3305, allocations: 4.78 MB / 408.3 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003245/0.3337, allocations: 2.67 MB / 410.9 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00201/0.3358, allocations: 1.117 MB / 412.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003033/0.3388, allocations: 1.877 MB / 413.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006555/0.3395, allocations: 196 kB / 414.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002344/0.3418, allocations: 1.108 MB / 415.2 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.3432, allocations: 1.515 MB / 416.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001778/0.345, allocations: 1.794 MB / 418.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.3504, allocations: 5.631 MB / 424.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3504, allocations: 0 / 424.2 MB, free: 8.262 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.3504, allocations: 4 kB / 424.2 MB, free: 8.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.239e-05/0.3505, allocations: 0 / 424.2 MB, free: 8.258 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006752/0.3572, allocations: 4.106 MB / 428.3 MB, free: 4.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3573, allocations: 8.031 kB / 428.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006412/0.3637, allocations: 1.852 MB / 430.1 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003359/0.3671, allocations: 1.851 MB / 432 MB, free: 328 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.3673, allocations: 209.1 kB / 432.2 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004808/0.3677, allocations: 271.8 kB / 432.5 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01742/0.3852, allocations: 10 MB / 442.5 MB, free: 5.164 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.567e-05/0.3853, allocations: 39.69 kB / 442.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003521/0.3857, allocations: 131.9 kB / 442.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002969/0.3886, allocations: 1.856 MB / 444.5 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01802/0.4067, allocations: 8.564 MB / 453.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04283/0.4495, allocations: 36.84 MB / 489.9 MB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009896/0.4595, allocations: 3.909 MB / 493.8 MB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002594/0.4621, allocations: 1.813 MB / 495.6 MB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01157/0.4737, allocations: 7.614 MB / 0.4914 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.4738, allocations: 59.44 kB / 0.4915 GB, free: 6.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 3.817e-06/0.4738, allocations: 0 / 0.4915 GB, free: 6.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05273/0.5265, allocations: 17.53 MB / 0.5086 GB, free: 5.113 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.5266, allocations: 149.5 kB / 0.5088 GB, free: 4.938 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004862/0.5315, allocations: 3.465 MB / 0.5121 GB, free: 1.469 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002407/0.5317, allocations: 53.7 kB / 0.5122 GB, free: 1.41 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/0.5337, allocations: 2.724 MB / 0.5149 GB, free: 14.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000723/0.5344, allocations: 0.6441 MB / 0.5155 GB, free: 13.99 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001623/0.536, allocations: 1.119 MB / 0.5166 GB, free: 12.86 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.5361, allocations: 301.1 kB / 0.5169 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003185/0.5393, allocations: 1.967 MB / 0.5188 GB, free: 10.59 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005236/0.5446, allocations: 5.389 MB / 0.524 GB, free: 3.488 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1713/0.7159, allocations: 7.944 MB / 0.5318 GB, free: 138 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001054/0.716, allocations: 38.62 kB / 0.5318 GB, free: 138 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01558/0.7316, allocations: 8.194 MB / 0.5398 GB, free: 135.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/0.7318, allocations: 57.8 kB / 0.5399 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001185/0.7319, allocations: 120.8 kB / 0.54 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004255/0.7361, allocations: 1.297 MB / 0.5413 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/0.74, allocations: 1.271 MB / 0.5425 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007739/0.7478, allocations: 6.101 MB / 0.5485 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/0.7514, allocations: 314.5 kB / 0.5488 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000363/0.7518, allocations: 341.2 kB / 0.5491 GB, free: 132.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002055/0.7538, allocations: 1.812 MB / 0.5509 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003991/0.7542, allocations: 300.9 kB / 0.5512 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006007/0.7602, allocations: 3.387 MB / 0.5545 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.7603, allocations: 15.28 kB / 0.5545 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.7603, allocations: 11.44 kB / 0.5545 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.7603, allocations: 3.844 kB / 0.5545 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.7712, allocations: 7.621 MB / 0.5619 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.7712, allocations: 4 kB / 0.5619 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/0.7723, allocations: 243.2 kB / 0.5622 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003314/0.7756, allocations: 1.124 MB / 0.5633 GB, free: 126 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.7757, allocations: 28 kB / 0.5633 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006344/0.7821, allocations: 5.723 MB / 0.5689 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.7821, allocations: 0 / 0.5689 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007859/0.7899, allocations: 5.742 MB / 0.5745 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/0.7906, allocations: 353 kB / 0.5748 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003368/0.791, allocations: 31.77 kB / 0.5749 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.7922, allocations: 96.83 kB / 0.575 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002612/0.7925, allocations: 92.88 kB / 0.575 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.7926, allocations: 43.98 kB / 0.5751 GB, free: 113.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.7951, allocations: 2.142 MB / 0.5772 GB, free: 111.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7952, allocations: 0 / 0.5772 GB, free: 111.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00396/0.7991, allocations: 0.8922 MB / 0.5781 GB, free: 110.8 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003377/0.7995, allocations: 167.7 kB / 0.5782 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005897/0.8054, allocations: 4.803 MB / 0.5829 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.8054, allocations: 0 / 0.5829 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001872/0.8073, allocations: 1.55 MB / 0.5844 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.8091, allocations: 343.3 kB / 0.5847 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/0.8214, allocations: 9.795 MB / 0.5943 GB, free: 94.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002703/0.8242, allocations: 2.861 MB / 0.5971 GB, free: 91.29 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003715/0.8279, allocations: 1.715 MB / 0.5988 GB, free: 89.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006189/0.8285, allocations: 215.4 kB / 0.599 GB, free: 89.36 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.8285, allocations: 0 / 0.599 GB, free: 89.36 MB / 446.1 MB Notification: Performance of Templates: time 0.04947/0.878, allocations: 32.53 MB / 0.6308 GB, free: 56.98 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches