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.001121/0.001122, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001242/0.001243, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2458, allocations: 50.54 MB / 409.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0101/0.256, allocations: 10.24 MB / 419.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006321/0.2623, allocations: 3.886 MB / 423.4 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007097/0.2631, allocations: 55.88 kB / 423.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003389/0.2665, allocations: 2.071 MB / 425.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.2698, allocations: 1.61 MB / 427.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.2711, allocations: 0.694 MB / 427.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003775/0.2749, allocations: 3.385 MB / 431.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002643/0.2775, allocations: 2.681 MB / 433.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.2791, allocations: 1.25 MB / 435.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001914/0.281, allocations: 1.752 MB / 436.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004443/0.2815, allocations: 264 kB / 437.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001755/0.2832, allocations: 1.104 MB / 438.2 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001176/0.2844, allocations: 1.555 MB / 439.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.286, allocations: 1.844 MB / 441.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005694/0.2917, allocations: 5.914 MB / 447.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.2917, allocations: 0 / 447.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2917, allocations: 3.938 kB / 447.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000117/0.2919, allocations: 0 / 447.6 MB, free: 11.09 MB / 366.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.006928/0.2988, allocations: 4.205 MB / 451.8 MB, free: 6.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.2988, allocations: 12.02 kB / 451.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006317/0.3052, allocations: 1.878 MB / 453.7 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.3086, allocations: 1.894 MB / 455.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001416/0.3087, allocations: 205.2 kB / 455.8 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004279/0.3092, allocations: 267.8 kB / 456 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01699/0.3261, allocations: 10.01 MB / 466 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001037/0.3263, allocations: 43.64 kB / 466.1 MB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005442/0.3268, allocations: 127.9 kB / 466.2 MB, free: 7.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002985/0.3298, allocations: 1.86 MB / 468.1 MB, free: 5.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.3471, allocations: 8.563 MB / 476.6 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04192/0.3891, allocations: 36.75 MB / 0.5013 GB, free: 7.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009566/0.3987, allocations: 3.909 MB / 0.5052 GB, free: 3.324 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002377/0.4011, allocations: 1.811 MB / 0.5069 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01046/0.4115, allocations: 7.616 MB / 0.5144 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.4116, allocations: 55.55 kB / 0.5144 GB, free: 9.527 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.416e-06/0.4116, allocations: 0 / 0.5144 GB, free: 9.527 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05262/0.4642, allocations: 17.75 MB / 0.5317 GB, free: 7.672 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.4644, allocations: 141.5 kB / 0.5319 GB, free: 7.504 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004417/0.4688, allocations: 3.47 MB / 0.5353 GB, free: 4.031 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002778/0.4691, allocations: 49.7 kB / 0.5353 GB, free: 3.977 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001856/0.471, allocations: 2.857 MB / 0.5381 GB, free: 1.094 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006763/0.4717, allocations: 0.6707 MB / 0.5388 GB, free: 428 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2142/0.6859, allocations: 1.119 MB / 0.5399 GB, free: 125.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.07e-05/0.686, allocations: 305.2 kB / 0.5401 GB, free: 125.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003177/0.6892, allocations: 1.965 MB / 0.5421 GB, free: 125 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003487/0.6927, allocations: 5.392 MB / 0.5473 GB, free: 119.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006759/0.6994, allocations: 7.953 MB / 0.5551 GB, free: 113.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.874e-05/0.6995, allocations: 34.78 kB / 0.5551 GB, free: 113.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01185/0.7114, allocations: 8.213 MB / 0.5631 GB, free: 108.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.522e-05/0.7115, allocations: 60 kB / 0.5632 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.993e-05/0.7115, allocations: 123.8 kB / 0.5633 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003591/0.7151, allocations: 1.297 MB / 0.5646 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003265/0.7184, allocations: 1.269 MB / 0.5658 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007099/0.7255, allocations: 6.545 MB / 0.5722 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003688/0.7292, allocations: 303.1 kB / 0.5725 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000498/0.7298, allocations: 347.6 kB / 0.5728 GB, free: 99.96 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.002124/0.7319, allocations: 1.81 MB / 0.5746 GB, free: 98.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/0.7323, allocations: 319.9 kB / 0.5749 GB, free: 98.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006031/0.7384, allocations: 3.383 MB / 0.5782 GB, free: 94.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.087e-05/0.7384, allocations: 20 kB / 0.5782 GB, free: 94.68 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.928e-06/0.7384, allocations: 8 kB / 0.5782 GB, free: 94.67 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.7384, allocations: 7.969 kB / 0.5783 GB, free: 94.66 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01134/0.7498, allocations: 7.585 MB / 0.5857 GB, free: 87.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/0.7498, allocations: 4 kB / 0.5857 GB, free: 87.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.7509, allocations: 247.6 kB / 0.5859 GB, free: 86.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003341/0.7543, allocations: 1.116 MB / 0.587 GB, free: 85.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/0.7544, allocations: 24 kB / 0.587 GB, free: 85.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006653/0.7611, allocations: 6.174 MB / 0.593 GB, free: 79.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7611, allocations: 8 kB / 0.593 GB, free: 79.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008297/0.7694, allocations: 5.763 MB / 0.5987 GB, free: 73.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009223/0.7703, allocations: 369.6 kB / 0.599 GB, free: 73.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007139/0.7711, allocations: 24 kB / 0.5991 GB, free: 73.33 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.7726, allocations: 99.86 kB / 0.5991 GB, free: 73.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.7728, allocations: 88.77 kB / 0.5992 GB, free: 73.15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.773, allocations: 50.55 kB / 0.5993 GB, free: 73.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003199/0.7762, allocations: 2.142 MB / 0.6014 GB, free: 70.97 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7762, allocations: 0 / 0.6014 GB, free: 70.97 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003765/0.78, allocations: 0.8933 MB / 0.6022 GB, free: 70.08 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.0003679/0.7803, allocations: 173.4 kB / 0.6024 GB, free: 69.92 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005879/0.7862, allocations: 4.828 MB / 0.6071 GB, free: 65.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.7862, allocations: 4 kB / 0.6071 GB, free: 65.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.7881, allocations: 1.541 MB / 0.6086 GB, free: 63.56 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.7899, allocations: 354.4 kB / 0.609 GB, free: 63.22 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.8012, allocations: 8.129 MB / 0.6169 GB, free: 55.06 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.8035, allocations: 2.854 MB / 0.6197 GB, free: 52.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003214/0.8067, allocations: 1.696 MB / 0.6214 GB, free: 50.47 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006204/0.8073, allocations: 219.4 kB / 0.6216 GB, free: 50.26 MB / 462.1 MB Notification: Performance of SimCode: time 9.81e-07/0.8073, allocations: 4 kB / 0.6216 GB, free: 50.26 MB / 462.1 MB Notification: Performance of Templates: time 0.04719/0.8545, allocations: 30.93 MB / 0.6518 GB, free: 19.52 MB / 462.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