Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001339/0.001339, allocations: 115.5 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 214.8 kB / 19.41 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.426/1.426, allocations: 227.7 MB / 247.9 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001884/0.001884, allocations: 59.91 kB / 359.7 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.2309, allocations: 50.54 MB / 410.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.0121/0.243, allocations: 10.29 MB / 420.5 MB, free: 7.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007349/0.2503, allocations: 3.894 MB / 424.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008644/0.2512, allocations: 55.81 kB / 424.5 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003832/0.255, allocations: 2.09 MB / 426.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003775/0.2588, allocations: 1.65 MB / 428.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.2602, allocations: 0.6901 MB / 428.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004445/0.2647, allocations: 3.388 MB / 432.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002891/0.2676, allocations: 2.298 MB / 434.6 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001708/0.2693, allocations: 1.25 MB / 435.8 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/0.2716, allocations: 1.752 MB / 437.6 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005202/0.2721, allocations: 264 kB / 437.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001958/0.2741, allocations: 1.104 MB / 438.9 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.2757, allocations: 1.601 MB / 440.5 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00187/0.2775, allocations: 1.852 MB / 442.4 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006871/0.2844, allocations: 5.902 MB / 448.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2844, allocations: 0 / 448.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2844, allocations: 0 / 448.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.871e-05/0.2845, allocations: 0 / 448.3 MB, free: 11.21 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.007788/0.2923, allocations: 4.216 MB / 452.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2923, allocations: 16.02 kB / 452.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007532/0.2998, allocations: 1.878 MB / 454.4 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004224/0.3041, allocations: 1.886 MB / 456.3 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.3042, allocations: 205.2 kB / 456.5 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005526/0.3048, allocations: 275.8 kB / 456.8 MB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01896/0.3238, allocations: 10 MB / 466.8 MB, free: 7.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-05/0.3238, allocations: 35.64 kB / 466.8 MB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000368/0.3242, allocations: 139.9 kB / 466.9 MB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/0.3276, allocations: 1.852 MB / 468.8 MB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01895/0.3466, allocations: 8.56 MB / 477.3 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04555/0.3921, allocations: 36.76 MB / 0.5021 GB, free: 7.543 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01083/0.403, allocations: 3.776 MB / 0.5057 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00292/0.4059, allocations: 1.698 MB / 0.5074 GB, free: 1.863 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/0.4182, allocations: 7.62 MB / 0.5148 GB, free: 9.945 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/0.4183, allocations: 59.48 kB / 0.5149 GB, free: 9.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.098e-06/0.4183, allocations: 4 kB / 0.5149 GB, free: 9.875 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.05422/0.4725, allocations: 17.72 MB / 0.5322 GB, free: 8.043 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.809e-05/0.4726, allocations: 145.5 kB / 0.5323 GB, free: 7.871 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00524/0.4778, allocations: 3.47 MB / 0.5357 GB, free: 4.398 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000343/0.4782, allocations: 49.7 kB / 0.5358 GB, free: 4.344 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/0.4805, allocations: 2.85 MB / 0.5386 GB, free: 1.473 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009122/0.4814, allocations: 0.6668 MB / 0.5392 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1849/0.6663, allocations: 1.125 MB / 0.5403 GB, free: 125.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.02e-05/0.6663, allocations: 306.4 kB / 0.5406 GB, free: 125.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003347/0.6697, allocations: 1.969 MB / 0.5425 GB, free: 125.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003611/0.6733, allocations: 5.383 MB / 0.5478 GB, free: 119.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006109/0.6794, allocations: 7.955 MB / 0.5556 GB, free: 113.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.407e-05/0.6794, allocations: 35.12 kB / 0.5556 GB, free: 113.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01185/0.6913, allocations: 8.206 MB / 0.5636 GB, free: 109.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.794e-05/0.6913, allocations: 56 kB / 0.5637 GB, free: 109.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.451e-05/0.6914, allocations: 124 kB / 0.5638 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00363/0.6951, allocations: 1.303 MB / 0.565 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003361/0.6984, allocations: 1.262 MB / 0.5663 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00719/0.7056, allocations: 6.537 MB / 0.5727 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003579/0.7092, allocations: 311.1 kB / 0.573 GB, free: 100.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003404/0.7095, allocations: 347.8 kB / 0.5733 GB, free: 100.5 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.002071/0.7116, allocations: 1.801 MB / 0.575 GB, free: 98.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.712, allocations: 325.4 kB / 0.5754 GB, free: 98.61 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006264/0.7183, allocations: 3.369 MB / 0.5786 GB, free: 95.23 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/0.7183, allocations: 20 kB / 0.5787 GB, free: 95.21 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.066e-06/0.7183, allocations: 4 kB / 0.5787 GB, free: 95.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.7183, allocations: 11.97 kB / 0.5787 GB, free: 95.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01172/0.73, allocations: 7.572 MB / 0.5861 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.73, allocations: 4 kB / 0.5861 GB, free: 87.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.7311, allocations: 243.7 kB / 0.5863 GB, free: 87.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003488/0.7346, allocations: 1.116 MB / 0.5874 GB, free: 86.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.7348, allocations: 28 kB / 0.5874 GB, free: 86.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006975/0.7417, allocations: 6.181 MB / 0.5935 GB, free: 79.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.7417, allocations: 7.969 kB / 0.5935 GB, free: 79.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008385/0.7501, allocations: 5.749 MB / 0.5991 GB, free: 74.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006855/0.7508, allocations: 361 kB / 0.5994 GB, free: 73.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003067/0.7511, allocations: 32 kB / 0.5995 GB, free: 73.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.7524, allocations: 95.86 kB / 0.5996 GB, free: 73.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.7526, allocations: 94.73 kB / 0.5996 GB, free: 73.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001038/0.7527, allocations: 43.98 kB / 0.5997 GB, free: 73.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002388/0.7551, allocations: 2.142 MB / 0.6018 GB, free: 71.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7551, allocations: 4 kB / 0.6018 GB, free: 71.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003671/0.7588, allocations: 0.8975 MB / 0.6027 GB, free: 70.65 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.0003642/0.7592, allocations: 164.9 kB / 0.6028 GB, free: 70.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006038/0.7652, allocations: 4.626 MB / 0.6073 GB, free: 65.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7652, allocations: 0 / 0.6073 GB, free: 65.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001894/0.7671, allocations: 1.442 MB / 0.6087 GB, free: 64.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001913/0.769, allocations: 360.1 kB / 0.6091 GB, free: 64.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.7797, allocations: 8.135 MB / 0.617 GB, free: 55.92 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/0.7818, allocations: 2.85 MB / 0.6198 GB, free: 53.04 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003085/0.7849, allocations: 1.696 MB / 0.6215 GB, free: 51.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005276/0.7854, allocations: 223.4 kB / 0.6217 GB, free: 51.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7854, allocations: 0 / 0.6217 GB, free: 51.12 MB / 462.1 MB Notification: Performance of Templates: time 0.04881/0.8342, allocations: 31.14 MB / 0.6521 GB, free: 20.22 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches