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.001079/0.001079, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001101, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001109/0.001109, allocations: 64.05 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08294/0.08406, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01128/0.09538, allocations: 10.26 MB / 369.2 MB, free: 3.031 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.154/0.2494, allocations: 3.862 MB / 373 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.2507, allocations: 55.78 kB / 373.1 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003745/0.2545, allocations: 2.074 MB / 375.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004084/0.2586, allocations: 1.608 MB / 376.8 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001474/0.2601, allocations: 0.6922 MB / 377.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004623/0.2647, allocations: 3.397 MB / 380.9 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003133/0.2679, allocations: 2.684 MB / 383.5 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.27, allocations: 1.248 MB / 384.8 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.2723, allocations: 1.752 MB / 386.5 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005805/0.2729, allocations: 262 kB / 386.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.275, allocations: 1.104 MB / 387.9 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.2764, allocations: 1.559 MB / 389.5 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.2781, allocations: 1.851 MB / 391.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005374/0.2835, allocations: 5.884 MB / 397.2 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.2835, allocations: 6.656 kB / 397.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2835, allocations: 0 / 397.2 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001289/0.2836, allocations: 0 / 397.2 MB, free: 0.7188 MB / 302.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.007269/0.2909, allocations: 4.1 MB / 401.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.291, allocations: 8.938 kB / 401.3 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006427/0.2974, allocations: 1.854 MB / 403.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.3022, allocations: 1.878 MB / 405 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.3024, allocations: 212.2 kB / 405.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/0.303, allocations: 273 kB / 405.5 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01702/0.3201, allocations: 10 MB / 415.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.954e-05/0.3202, allocations: 43.59 kB / 415.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00034/0.3205, allocations: 139.2 kB / 415.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00278/0.3233, allocations: 1.845 MB / 417.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01614/0.3395, allocations: 8.573 MB / 426.1 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03948/0.379, allocations: 36.7 MB / 462.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009465/0.3885, allocations: 3.902 MB / 466.7 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002485/0.391, allocations: 1.811 MB / 468.5 MB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/0.4036, allocations: 7.607 MB / 476.1 MB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.631e-05/0.4037, allocations: 59.42 kB / 476.2 MB, free: 1.324 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 6.031e-06/0.4037, allocations: 0 / 476.2 MB, free: 1.324 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04975/0.4535, allocations: 17.54 MB / 493.7 MB, free: 15.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.44e-05/0.4536, allocations: 149.5 kB / 493.9 MB, free: 15.49 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004601/0.4582, allocations: 3.465 MB / 497.3 MB, free: 12.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003488/0.4586, allocations: 57.14 kB / 497.4 MB, free: 11.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.4604, allocations: 2.726 MB / 0.4884 GB, free: 9.238 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007976/0.4612, allocations: 0.6425 MB / 0.489 GB, free: 8.602 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001523/0.4628, allocations: 1.115 MB / 0.4901 GB, free: 7.477 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.4629, allocations: 301.1 kB / 0.4904 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002959/0.4658, allocations: 1.971 MB / 0.4923 GB, free: 5.203 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005213/0.4711, allocations: 5.381 MB / 0.4976 GB, free: 14.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008724/0.4798, allocations: 7.952 MB / 0.5053 GB, free: 4.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.233e-05/0.4799, allocations: 32 kB / 0.5054 GB, free: 4.422 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01592/0.4959, allocations: 8.199 MB / 0.5134 GB, free: 12.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.73e-05/0.496, allocations: 62.64 kB / 0.5134 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/0.4961, allocations: 124 kB / 0.5136 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003957/0.5001, allocations: 1.295 MB / 0.5148 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004149/0.5042, allocations: 1.271 MB / 0.5161 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009176/0.5134, allocations: 6.532 MB / 0.5224 GB, free: 2.801 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004292/0.5178, allocations: 307.5 kB / 0.5227 GB, free: 2.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009921/0.5188, allocations: 350.5 kB / 0.5231 GB, free: 2.16 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.003542/0.5223, allocations: 1.807 MB / 0.5248 GB, free: 348 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000698/0.523, allocations: 304.5 kB / 0.5251 GB, free: 40 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1726/0.6957, allocations: 3.383 MB / 0.5284 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/0.6957, allocations: 19.23 kB / 0.5285 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.6957, allocations: 4.812 kB / 0.5285 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/0.6958, allocations: 13.44 kB / 0.5285 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01466/0.7104, allocations: 7.594 MB / 0.5359 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/0.7105, allocations: 1.906 kB / 0.5359 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.7116, allocations: 244.6 kB / 0.5361 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003533/0.7152, allocations: 1.115 MB / 0.5372 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001656/0.7154, allocations: 32.92 kB / 0.5372 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0077/0.7231, allocations: 6.176 MB / 0.5433 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.7231, allocations: 1.062 kB / 0.5433 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008424/0.7315, allocations: 5.738 MB / 0.5489 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007343/0.7323, allocations: 355.6 kB / 0.5492 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003267/0.7326, allocations: 23.7 kB / 0.5492 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.7338, allocations: 103.4 kB / 0.5493 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.7341, allocations: 81.41 kB / 0.5494 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.7342, allocations: 48.83 kB / 0.5495 GB, free: 134.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002608/0.7368, allocations: 2.147 MB / 0.5516 GB, free: 133.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7368, allocations: 0 / 0.5516 GB, free: 133.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003624/0.7405, allocations: 0.8904 MB / 0.5524 GB, free: 133.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.0003361/0.7408, allocations: 170.7 kB / 0.5526 GB, free: 133.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005966/0.7468, allocations: 4.811 MB / 0.5573 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.7468, allocations: 0 / 0.5573 GB, free: 131.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.7487, allocations: 1.545 MB / 0.5588 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001966/0.7507, allocations: 373.7 kB / 0.5592 GB, free: 130.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.762, allocations: 8.007 MB / 0.567 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/0.7644, allocations: 2.846 MB / 0.5698 GB, free: 119.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003148/0.7675, allocations: 1.703 MB / 0.5714 GB, free: 117.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005041/0.7681, allocations: 215.4 kB / 0.5716 GB, free: 117.4 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.7681, allocations: 0 / 0.5716 GB, free: 117.4 MB / 446.1 MB Notification: Performance of Templates: time 0.04564/0.8137, allocations: 29.11 MB / 0.6001 GB, free: 88.51 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/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