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.001087/0.001087, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001108/0.001108, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.41/1.41, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2846, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01143/0.2961, allocations: 10.28 MB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008124/0.3042, allocations: 3.862 MB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.3063, allocations: 55.88 kB / 415.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.3109, allocations: 2.083 MB / 417.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005295/0.3163, allocations: 1.637 MB / 419.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.3185, allocations: 0.694 MB / 420 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005744/0.3243, allocations: 3.356 MB / 423.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00423/0.3285, allocations: 2.688 MB / 426.1 MB, free: 68 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00274/0.3313, allocations: 1.258 MB / 427.3 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003328/0.3346, allocations: 1.76 MB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001238/0.3359, allocations: 264 kB / 429.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002954/0.3389, allocations: 1.123 MB / 430.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.3413, allocations: 1.582 MB / 432.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003407/0.3447, allocations: 1.864 MB / 433.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008719/0.3535, allocations: 5.938 MB / 439.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.3535, allocations: 0 / 439.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3535, allocations: 0 / 439.9 MB, free: 2.238 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002306/0.3538, allocations: 0 / 439.9 MB, free: 2.238 MB / 350.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.01037/0.3642, allocations: 4.118 MB / 444 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.3642, allocations: 12.03 kB / 444 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00725/0.3715, allocations: 1.856 MB / 445.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004365/0.3759, allocations: 1.917 MB / 447.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002116/0.3761, allocations: 209.2 kB / 448 MB, free: 10 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001075/0.3772, allocations: 263.9 kB / 448.2 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02073/0.398, allocations: 9.985 MB / 458.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001653/0.3982, allocations: 35.69 kB / 458.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009324/0.3991, allocations: 131.9 kB / 458.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003281/0.4024, allocations: 1.856 MB / 460.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01861/0.421, allocations: 8.536 MB / 468.8 MB, free: 4.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05008/0.4712, allocations: 36.7 MB / 0.4936 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.4819, allocations: 3.887 MB / 0.4974 GB, free: 10.69 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002661/0.4846, allocations: 1.818 MB / 0.4992 GB, free: 8.863 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.4963, allocations: 7.52 MB / 0.5065 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.888e-05/0.4964, allocations: 47.5 kB / 0.5066 GB, free: 1.008 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.498e-06/0.4964, allocations: 4 kB / 0.5066 GB, free: 1.004 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.05331/0.5497, allocations: 17.42 MB / 0.5236 GB, free: 15.46 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.617e-05/0.5498, allocations: 149.5 kB / 0.5237 GB, free: 15.29 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005066/0.5549, allocations: 3.481 MB / 0.5271 GB, free: 11.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002525/0.5551, allocations: 45.7 kB / 0.5272 GB, free: 11.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001888/0.557, allocations: 2.732 MB / 0.5298 GB, free: 8.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007484/0.5578, allocations: 0.648 MB / 0.5305 GB, free: 8.324 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001667/0.5595, allocations: 1.115 MB / 0.5316 GB, free: 7.199 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.215e-05/0.5596, allocations: 309.1 kB / 0.5319 GB, free: 6.895 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0029/0.5625, allocations: 1.947 MB / 0.5338 GB, free: 4.941 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2106/0.7731, allocations: 5.374 MB / 0.539 GB, free: 127 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008185/0.7814, allocations: 7.936 MB / 0.5468 GB, free: 120.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001372/0.7815, allocations: 35.5 kB / 0.5468 GB, free: 120.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01325/0.7948, allocations: 8.164 MB / 0.5548 GB, free: 118.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.671e-05/0.7949, allocations: 61.91 kB / 0.5548 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/0.795, allocations: 123.4 kB / 0.5549 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003598/0.7986, allocations: 1.301 MB / 0.5562 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/0.8028, allocations: 1.264 MB / 0.5574 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007608/0.8105, allocations: 6.535 MB / 0.5638 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003894/0.8144, allocations: 301.4 kB / 0.5641 GB, free: 111.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005432/0.8149, allocations: 343.8 kB / 0.5644 GB, free: 111.6 MB / 462.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.002288/0.8172, allocations: 1.8 MB / 0.5662 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.8177, allocations: 305 kB / 0.5665 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005983/0.8237, allocations: 3.369 MB / 0.5698 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.508e-05/0.8238, allocations: 20 kB / 0.5698 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.926e-06/0.8238, allocations: 8 kB / 0.5698 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.8238, allocations: 7.969 kB / 0.5698 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.835, allocations: 7.58 MB / 0.5772 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/0.835, allocations: 4 kB / 0.5772 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.8361, allocations: 235.7 kB / 0.5774 GB, free: 98.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003291/0.8394, allocations: 1.122 MB / 0.5785 GB, free: 97.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.8395, allocations: 24 kB / 0.5786 GB, free: 97.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006702/0.8463, allocations: 6.162 MB / 0.5846 GB, free: 91.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.8463, allocations: 4.031 kB / 0.5846 GB, free: 91.08 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007853/0.8541, allocations: 5.725 MB / 0.5902 GB, free: 85.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000688/0.8549, allocations: 346.7 kB / 0.5905 GB, free: 85.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003653/0.8552, allocations: 25.06 kB / 0.5905 GB, free: 85.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.8565, allocations: 91.88 kB / 0.5906 GB, free: 84.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/0.8568, allocations: 92.75 kB / 0.5907 GB, free: 84.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.8569, allocations: 43.98 kB / 0.5908 GB, free: 84.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002604/0.8595, allocations: 2.154 MB / 0.5929 GB, free: 82.68 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.8595, allocations: 0 / 0.5929 GB, free: 82.68 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004302/0.8638, allocations: 0.9115 MB / 0.5937 GB, free: 81.77 MB / 462.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.0004056/0.8643, allocations: 166.3 kB / 0.5939 GB, free: 81.61 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006351/0.8706, allocations: 4.805 MB / 0.5986 GB, free: 76.82 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.8707, allocations: 4.062 kB / 0.5986 GB, free: 76.82 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001899/0.8726, allocations: 1.533 MB / 0.6001 GB, free: 75.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.8747, allocations: 360.5 kB / 0.6004 GB, free: 74.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01146/0.8861, allocations: 8.383 MB / 0.6086 GB, free: 66.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002073/0.8883, allocations: 2.858 MB / 0.6114 GB, free: 63.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008446/0.8891, allocations: 259.4 kB / 0.6117 GB, free: 63.38 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.8891, allocations: 0 / 0.6117 GB, free: 63.38 MB / 462.1 MB Notification: Performance of Templates: time 0.0711/0.9602, allocations: 66.31 MB / 0.6764 GB, free: 13.16 MB / 478.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 -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