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.001726/0.001726, allocations: 117.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 211.7 kB / 18.79 MB, free: 4.383 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.45/1.45, allocations: 230.4 MB / 250 MB, free: 9.062 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.001999/0.001999, allocations: 72.05 kB / 367.4 MB, free: 7.055 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.258, allocations: 53.3 MB / 420.7 MB, free: 8.371 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01241/0.2704, allocations: 10.3 MB / 431 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007819/0.2783, allocations: 3.905 MB / 434.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.2797, allocations: 55.81 kB / 434.9 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004439/0.2842, allocations: 2.094 MB / 437 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004637/0.2888, allocations: 1.638 MB / 438.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001901/0.2907, allocations: 0.7017 MB / 439.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006287/0.297, allocations: 3.392 MB / 442.7 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003753/0.3007, allocations: 2.29 MB / 445 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002096/0.3028, allocations: 1.257 MB / 446.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002997/0.3058, allocations: 1.896 MB / 448.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007721/0.3066, allocations: 264 kB / 448.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3089, allocations: 1.143 MB / 449.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001971/0.3109, allocations: 1.601 MB / 451.2 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002772/0.3137, allocations: 1.844 MB / 453 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007609/0.3213, allocations: 5.906 MB / 458.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3213, allocations: 0 / 458.9 MB, free: 1.914 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3213, allocations: 4 kB / 458.9 MB, free: 1.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001752/0.3215, allocations: 0 / 458.9 MB, free: 1.91 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.007701/0.3292, allocations: 4.213 MB / 463.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3292, allocations: 15.97 kB / 463.2 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006339/0.3355, allocations: 1.87 MB / 465 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003492/0.339, allocations: 1.89 MB / 466.9 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001808/0.3392, allocations: 209.2 kB / 467.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000533/0.3398, allocations: 267.8 kB / 467.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01906/0.3588, allocations: 10.01 MB / 477.4 MB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001064/0.3589, allocations: 43.62 kB / 477.5 MB, free: 14.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003728/0.3593, allocations: 127.9 kB / 477.6 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003091/0.3624, allocations: 1.856 MB / 479.4 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01803/0.3804, allocations: 8.563 MB / 488 MB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0469/0.4273, allocations: 36.75 MB / 0.5125 GB, free: 14.24 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009991/0.4373, allocations: 3.788 MB / 0.5162 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002619/0.4399, allocations: 1.69 MB / 0.5178 GB, free: 8.559 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.4516, allocations: 7.628 MB / 0.5253 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.807e-05/0.4516, allocations: 43.56 kB / 0.5253 GB, free: 0.582 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.89e-06/0.4516, allocations: 0 / 0.5253 GB, free: 0.582 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2591/0.7108, allocations: 17.74 MB / 0.5426 GB, free: 117.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.7108, allocations: 144.7 kB / 0.5428 GB, free: 117.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004408/0.7152, allocations: 3.467 MB / 0.5461 GB, free: 116.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003478/0.7156, allocations: 52.14 kB / 0.5462 GB, free: 116.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.7169, allocations: 2.845 MB / 0.549 GB, free: 115.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006899/0.7176, allocations: 0.6709 MB / 0.5496 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/0.719, allocations: 1.128 MB / 0.5507 GB, free: 114.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.334e-05/0.7191, allocations: 308.2 kB / 0.551 GB, free: 114 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002287/0.7213, allocations: 1.965 MB / 0.5529 GB, free: 113.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003452/0.7248, allocations: 5.384 MB / 0.5582 GB, free: 108.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006034/0.7308, allocations: 7.953 MB / 0.566 GB, free: 101.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-05/0.7309, allocations: 32.88 kB / 0.566 GB, free: 101.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01126/0.7421, allocations: 8.21 MB / 0.574 GB, free: 94.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.082e-05/0.7422, allocations: 60 kB / 0.5741 GB, free: 94.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.311e-05/0.7423, allocations: 123.1 kB / 0.5742 GB, free: 94.44 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003355/0.7456, allocations: 1.293 MB / 0.5754 GB, free: 93.14 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003403/0.749, allocations: 1.275 MB / 0.5767 GB, free: 91.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007035/0.7561, allocations: 6.537 MB / 0.5831 GB, free: 85.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005394/0.7615, allocations: 311.7 kB / 0.5834 GB, free: 84.89 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001145/0.7626, allocations: 340 kB / 0.5837 GB, free: 84.55 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.00297/0.7656, allocations: 1.807 MB / 0.5855 GB, free: 82.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006694/0.7663, allocations: 321.8 kB / 0.5858 GB, free: 82.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006069/0.7723, allocations: 3.381 MB / 0.5891 GB, free: 79.03 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-05/0.7724, allocations: 16 kB / 0.5891 GB, free: 79.01 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.7724, allocations: 4 kB / 0.5891 GB, free: 79.01 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.7724, allocations: 11.97 kB / 0.5891 GB, free: 79 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01193/0.7843, allocations: 7.565 MB / 0.5965 GB, free: 71.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.7843, allocations: 0.5625 kB / 0.5965 GB, free: 71.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.7854, allocations: 248.5 kB / 0.5967 GB, free: 71.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003302/0.7887, allocations: 1.113 MB / 0.5978 GB, free: 70.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001337/0.7889, allocations: 35.73 kB / 0.5978 GB, free: 70.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006777/0.7956, allocations: 6.181 MB / 0.6039 GB, free: 63.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7956, allocations: 0 / 0.6039 GB, free: 63.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008157/0.8038, allocations: 5.745 MB / 0.6095 GB, free: 57.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007076/0.8045, allocations: 370.8 kB / 0.6098 GB, free: 57.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003278/0.8048, allocations: 28 kB / 0.6099 GB, free: 57.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.806, allocations: 95.86 kB / 0.61 GB, free: 57.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/0.8063, allocations: 92.81 kB / 0.6101 GB, free: 57.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.8064, allocations: 40 kB / 0.6101 GB, free: 57.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002344/0.8087, allocations: 2.146 MB / 0.6122 GB, free: 55.16 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8087, allocations: 0 / 0.6122 GB, free: 55.16 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00366/0.8124, allocations: 0.9059 MB / 0.6131 GB, free: 54.25 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.0003236/0.8127, allocations: 158.9 kB / 0.6132 GB, free: 54.09 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005818/0.8185, allocations: 4.622 MB / 0.6177 GB, free: 49.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.8185, allocations: 0 / 0.6177 GB, free: 49.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.8203, allocations: 1.445 MB / 0.6191 GB, free: 48.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.8221, allocations: 366 kB / 0.6195 GB, free: 47.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.8339, allocations: 8.135 MB / 0.6274 GB, free: 39.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/0.8361, allocations: 2.85 MB / 0.6302 GB, free: 36.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003355/0.8394, allocations: 1.699 MB / 0.6319 GB, free: 34.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.84, allocations: 223.4 kB / 0.6321 GB, free: 34.7 MB / 462.1 MB Notification: Performance of SimCode: time 1.092e-06/0.84, allocations: 0 / 0.6321 GB, free: 34.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05218/0.8921, allocations: 31.51 MB / 0.6629 GB, free: 3.43 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/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