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.001414/0.001414, allocations: 110.5 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001877/0.001877, allocations: 207.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.113/2.113, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 59.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7502/0.7521, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02788/0.7801, allocations: 10.25 MB / 420.2 MB, free: 7.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.7952, allocations: 3.894 MB / 424.1 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003749/0.799, allocations: 55.81 kB / 424.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007956/0.8071, allocations: 2.063 MB / 426.2 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009021/0.8162, allocations: 1.603 MB / 427.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003557/0.8198, allocations: 0.694 MB / 428.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008893/0.8287, allocations: 3.393 MB / 431.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006766/0.8355, allocations: 2.669 MB / 434.6 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004558/0.8402, allocations: 1.261 MB / 435.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005101/0.8453, allocations: 1.748 MB / 437.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0021/0.8475, allocations: 260 kB / 437.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004711/0.8523, allocations: 1.112 MB / 438.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004443/0.8567, allocations: 1.562 MB / 440.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007109/0.8639, allocations: 1.844 MB / 442.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01646/0.8805, allocations: 5.883 MB / 448.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.764e-05/0.8806, allocations: 4 kB / 448.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.293e-06/0.8806, allocations: 7.984 kB / 448.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003127/0.8809, allocations: 0 / 448.2 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.02312/0.9041, allocations: 4.102 MB / 452.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.87e-05/0.9042, allocations: 8.031 kB / 452.3 MB, free: 6.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01678/0.921, allocations: 1.852 MB / 454.2 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01345/0.9346, allocations: 1.886 MB / 456.1 MB, free: 3.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004954/0.9351, allocations: 205.2 kB / 456.3 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/0.9376, allocations: 279.8 kB / 456.6 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04063/0.9782, allocations: 9.997 MB / 466.6 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002281/0.9785, allocations: 39.67 kB / 466.6 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/0.9796, allocations: 139.8 kB / 466.7 MB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005687/0.9853, allocations: 1.848 MB / 468.6 MB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03625/1.022, allocations: 8.564 MB / 477.1 MB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09884/1.121, allocations: 36.69 MB / 0.5018 GB, free: 7.633 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01675/1.137, allocations: 3.901 MB / 0.5056 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005136/1.143, allocations: 1.811 MB / 0.5074 GB, free: 1.715 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02333/1.166, allocations: 7.622 MB / 0.5148 GB, free: 9.793 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.623e-05/1.166, allocations: 51.5 kB / 0.5149 GB, free: 9.734 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 7.624e-06/1.166, allocations: 0 / 0.5149 GB, free: 9.734 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.09801/1.264, allocations: 17.55 MB / 0.532 GB, free: 8.055 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/1.264, allocations: 141.5 kB / 0.5321 GB, free: 7.887 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00926/1.274, allocations: 3.465 MB / 0.5355 GB, free: 4.418 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006562/1.274, allocations: 49.7 kB / 0.5356 GB, free: 4.363 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004053/1.279, allocations: 2.732 MB / 0.5382 GB, free: 1.594 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/1.281, allocations: 0.6479 MB / 0.5389 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.5705/1.851, allocations: 1.112 MB / 0.5399 GB, free: 125.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.16e-05/1.851, allocations: 305.4 kB / 0.5402 GB, free: 125.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01298/1.864, allocations: 1.964 MB / 0.5422 GB, free: 125.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02246/1.887, allocations: 5.388 MB / 0.5474 GB, free: 120.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01964/1.906, allocations: 7.963 MB / 0.5552 GB, free: 113.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000245/1.907, allocations: 37.84 kB / 0.5552 GB, free: 113.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.03273/1.94, allocations: 8.197 MB / 0.5632 GB, free: 109.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/1.94, allocations: 56 kB / 0.5633 GB, free: 109.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002178/1.94, allocations: 120 kB / 0.5634 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007082/1.948, allocations: 1.299 MB / 0.5647 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007748/1.955, allocations: 1.264 MB / 0.5659 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.97, allocations: 6.541 MB / 0.5723 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009347/1.979, allocations: 304.9 kB / 0.5726 GB, free: 101.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/1.981, allocations: 340 kB / 0.5729 GB, free: 100.9 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.006044/1.987, allocations: 1.815 MB / 0.5747 GB, free: 99.07 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.988, allocations: 307.4 kB / 0.575 GB, free: 98.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/2, allocations: 3.377 MB / 0.5783 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.935e-05/2, allocations: 20 kB / 0.5783 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/2, allocations: 4.875 kB / 0.5783 GB, free: 95.52 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.703e-05/2, allocations: 11.98 kB / 0.5783 GB, free: 95.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02514/2.025, allocations: 7.583 MB / 0.5857 GB, free: 87.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.272e-05/2.026, allocations: 3.562 kB / 0.5857 GB, free: 87.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/2.028, allocations: 247.7 kB / 0.586 GB, free: 87.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006252/2.034, allocations: 1.118 MB / 0.587 GB, free: 86.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005624/2.035, allocations: 33.09 kB / 0.5871 GB, free: 86.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/2.049, allocations: 6.16 MB / 0.5931 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/2.049, allocations: 3.938 kB / 0.5931 GB, free: 80.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01747/2.066, allocations: 5.754 MB / 0.5987 GB, free: 74.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/2.068, allocations: 349.1 kB / 0.599 GB, free: 74.23 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001534/2.07, allocations: 27.98 kB / 0.5991 GB, free: 74.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003435/2.073, allocations: 99.88 kB / 0.5992 GB, free: 74.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007254/2.074, allocations: 92.75 kB / 0.5993 GB, free: 74.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004774/2.075, allocations: 43.98 kB / 0.5993 GB, free: 73.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007684/2.082, allocations: 2.142 MB / 0.6014 GB, free: 71.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.184e-06/2.083, allocations: 0 / 0.6014 GB, free: 71.84 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01141/2.094, allocations: 0.8933 MB / 0.6023 GB, free: 70.95 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.001213/2.095, allocations: 164 kB / 0.6024 GB, free: 70.79 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01422/2.11, allocations: 4.824 MB / 0.6071 GB, free: 65.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-05/2.11, allocations: 0 / 0.6071 GB, free: 65.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004624/2.114, allocations: 1.558 MB / 0.6087 GB, free: 64.42 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005982/2.12, allocations: 353 kB / 0.609 GB, free: 64.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03036/2.151, allocations: 8.39 MB / 0.6172 GB, free: 55.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008754/2.16, allocations: 2.846 MB / 0.62 GB, free: 52.77 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001826/2.162, allocations: 259.4 kB / 0.6202 GB, free: 52.52 MB / 462.1 MB Notification: Performance of SimCode: time 4.228e-06/2.162, allocations: 7.938 kB / 0.6202 GB, free: 52.51 MB / 462.1 MB Notification: Performance of Templates: time 0.1642/2.326, allocations: 66.55 MB / 0.6852 GB, free: 2.035 MB / 478.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/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches