Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 109.9 kB / 17.68 MB, free: 5.332 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.00183/0.00183, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 51.67 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.09485, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01123/0.1061, allocations: 10.29 MB / 361.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007728/0.1139, allocations: 3.874 MB / 365.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.1152, allocations: 51.88 kB / 365.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004066/0.1193, allocations: 2.083 MB / 367.8 MB, free: 3.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004211/0.1235, allocations: 1.633 MB / 369.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.1252, allocations: 0.6979 MB / 370.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1588/0.284, allocations: 3.355 MB / 373.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005277/0.2894, allocations: 2.684 MB / 376.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.2919, allocations: 1.262 MB / 377.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.2951, allocations: 1.758 MB / 379.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005958/0.2957, allocations: 263.1 kB / 379.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.2979, allocations: 1.119 MB / 380.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/0.2994, allocations: 1.567 MB / 382.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001691/0.3011, allocations: 1.865 MB / 384 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005382/0.3065, allocations: 5.942 MB / 389.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3065, allocations: 0 / 389.9 MB, free: 6.242 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3065, allocations: 4 kB / 389.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001233/0.3066, allocations: 5.906 kB / 389.9 MB, free: 6.234 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.00805/0.3147, allocations: 4.127 MB / 394.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.3147, allocations: 13.27 kB / 394.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005674/0.3204, allocations: 1.847 MB / 395.9 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003744/0.3242, allocations: 1.904 MB / 397.8 MB, free: 1.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.3243, allocations: 216.4 kB / 398 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.3247, allocations: 267.4 kB / 398.3 MB, free: 1.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01659/0.3413, allocations: 9.973 MB / 408.3 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.3415, allocations: 40.23 kB / 408.3 MB, free: 7.781 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000362/0.3419, allocations: 134.5 kB / 408.5 MB, free: 7.684 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002832/0.3447, allocations: 1.855 MB / 410.3 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01632/0.361, allocations: 8.54 MB / 418.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04081/0.4019, allocations: 36.69 MB / 455.5 MB, free: 8.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009265/0.4112, allocations: 3.882 MB / 459.4 MB, free: 4.051 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002468/0.4137, allocations: 1.816 MB / 461.2 MB, free: 2.223 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.4252, allocations: 7.511 MB / 468.7 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.648e-05/0.4253, allocations: 59.48 kB / 468.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.667e-06/0.4253, allocations: 0 / 468.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04951/0.4748, allocations: 17.41 MB / 486.2 MB, free: 8.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.282e-05/0.4749, allocations: 157.5 kB / 486.4 MB, free: 8.703 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00591/0.4808, allocations: 3.465 MB / 489.8 MB, free: 5.234 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000186/0.481, allocations: 53.7 kB / 489.9 MB, free: 5.176 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001817/0.4829, allocations: 2.728 MB / 492.6 MB, free: 2.453 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005857/0.4835, allocations: 0.646 MB / 493.3 MB, free: 1.812 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001439/0.4849, allocations: 1.118 MB / 494.4 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.485, allocations: 301.1 kB / 494.7 MB, free: 400 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002787/0.4878, allocations: 1.955 MB / 496.6 MB, free: 14.43 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004709/0.4925, allocations: 5.372 MB / 0.4902 GB, free: 7.352 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007982/0.5005, allocations: 7.938 MB / 0.498 GB, free: 13.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.672e-05/0.5006, allocations: 36 kB / 0.498 GB, free: 13.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01374/0.5143, allocations: 8.162 MB / 0.506 GB, free: 5.535 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.116e-05/0.5144, allocations: 56 kB / 0.506 GB, free: 5.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001064/0.5145, allocations: 132 kB / 0.5062 GB, free: 5.352 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003821/0.5184, allocations: 1.297 MB / 0.5074 GB, free: 4.051 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003614/0.522, allocations: 1.263 MB / 0.5087 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008661/0.5307, allocations: 6.536 MB / 0.5151 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00393/0.5346, allocations: 307.5 kB / 0.5153 GB, free: 11.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005667/0.5352, allocations: 343.9 kB / 0.5157 GB, free: 11.48 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.002745/0.538, allocations: 1.814 MB / 0.5174 GB, free: 9.652 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005202/0.5385, allocations: 300.1 kB / 0.5177 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00699/0.5455, allocations: 3.358 MB / 0.521 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.5456, allocations: 20 kB / 0.521 GB, free: 5.965 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.5456, allocations: 8 kB / 0.521 GB, free: 5.957 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.5456, allocations: 11.97 kB / 0.5211 GB, free: 5.945 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1842/0.7298, allocations: 7.575 MB / 0.5284 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-05/0.7299, allocations: 0.8125 kB / 0.5285 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.7312, allocations: 239.8 kB / 0.5287 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003747/0.7349, allocations: 1.119 MB / 0.5298 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002092/0.7352, allocations: 30.56 kB / 0.5298 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007908/0.7431, allocations: 6.163 MB / 0.5358 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.7431, allocations: 1.188 kB / 0.5358 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009609/0.7527, allocations: 5.712 MB / 0.5414 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007824/0.7535, allocations: 353.5 kB / 0.5417 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003574/0.7539, allocations: 26.59 kB / 0.5418 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/0.7551, allocations: 86.23 kB / 0.5418 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/0.7554, allocations: 89.19 kB / 0.5419 GB, free: 142.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/0.7556, allocations: 51.45 kB / 0.542 GB, free: 142.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003064/0.7586, allocations: 2.151 MB / 0.5441 GB, free: 142 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7586, allocations: 0 / 0.5441 GB, free: 142 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004005/0.7626, allocations: 0.9115 MB / 0.545 GB, free: 141.9 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.000368/0.763, allocations: 172.5 kB / 0.5451 GB, free: 141.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005989/0.769, allocations: 4.797 MB / 0.5498 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.769, allocations: 0 / 0.5498 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001844/0.7709, allocations: 1.548 MB / 0.5513 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.7727, allocations: 361 kB / 0.5517 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.7834, allocations: 7.992 MB / 0.5595 GB, free: 135 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/0.7857, allocations: 2.862 MB / 0.5623 GB, free: 132.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003096/0.7888, allocations: 1.699 MB / 0.5639 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005012/0.7893, allocations: 214.3 kB / 0.5641 GB, free: 131.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7893, allocations: 0 / 0.5641 GB, free: 131.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04641/0.8357, allocations: 29.31 MB / 0.5928 GB, free: 102.6 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches