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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001475/0.001476, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.2 MB / 245 MB, free: 5.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008893/0.0008893, allocations: 106.5 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002096/0.0002097, allocations: 4 kB / 357.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1989, allocations: 51.49 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1082/0.3072, allocations: 101.9 MB / 0.4993 GB, free: 4.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.3075, allocations: 91.95 kB / 0.4994 GB, free: 4.566 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3426/0.6501, allocations: 77.32 MB / 0.5749 GB, free: 35.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6501, allocations: 0 / 0.5749 GB, free: 35.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000186/0.6503, allocations: 72 kB / 0.575 GB, free: 35.64 MB / 378.7 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.01009/0.6604, allocations: 3.682 MB / 0.5786 GB, free: 31.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.6605, allocations: 8.031 kB / 0.5786 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008728/0.6692, allocations: 2.265 MB / 0.5808 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008319/0.6776, allocations: 3.288 MB / 0.584 GB, free: 26.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.6778, allocations: 279.3 kB / 0.5843 GB, free: 26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00142/0.6793, allocations: 371.8 kB / 0.5847 GB, free: 25.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01984/0.6991, allocations: 10.49 MB / 0.5949 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/0.6993, allocations: 47.56 kB / 0.5949 GB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001393/0.7007, allocations: 183.9 kB / 0.5951 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001301/0.702, allocations: 1.001 MB / 0.5961 GB, free: 12.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01538/0.7174, allocations: 8.761 MB / 0.6047 GB, free: 4.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04596/0.7634, allocations: 44.72 MB / 0.6483 GB, free: 6.047 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008917/0.7724, allocations: 3.875 MB / 0.6521 GB, free: 1.973 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.7825, allocations: 7.629 MB / 0.6596 GB, free: 10.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.7825, allocations: 55.5 kB / 0.6596 GB, free: 10 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 3.547e-06/0.7825, allocations: 3.938 kB / 0.6596 GB, free: 10 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.2241/1.007, allocations: 17.32 MB / 0.6765 GB, free: 107.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/1.007, allocations: 144.9 kB / 0.6767 GB, free: 107.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004063/1.011, allocations: 3.11 MB / 0.6797 GB, free: 107.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002121/1.011, allocations: 48.42 kB / 0.6798 GB, free: 107.2 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/1.012, allocations: 2.733 MB / 0.6824 GB, free: 105.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004237/1.013, allocations: 0.6467 MB / 0.6831 GB, free: 105.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.013, allocations: 111.5 kB / 0.6832 GB, free: 105.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/1.013, allocations: 0.5336 MB / 0.6837 GB, free: 105.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002285/1.015, allocations: 1.938 MB / 0.6856 GB, free: 105.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003359/1.019, allocations: 5.33 MB / 0.6908 GB, free: 100.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003744/1.023, allocations: 3.132 MB / 0.6938 GB, free: 100.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-05/1.023, allocations: 32.16 kB / 0.6939 GB, free: 100.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01154/1.034, allocations: 8.139 MB / 0.7018 GB, free: 99.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.758e-05/1.034, allocations: 58.56 kB / 0.7019 GB, free: 99.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001364/1.034, allocations: 124.6 kB / 0.702 GB, free: 99.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00326/1.038, allocations: 1.31 MB / 0.7033 GB, free: 99.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003114/1.041, allocations: 1.265 MB / 0.7045 GB, free: 99.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007386/1.048, allocations: 6.297 MB / 0.7107 GB, free: 96.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004284/1.052, allocations: 341.7 kB / 0.711 GB, free: 96.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005475/1.053, allocations: 344.5 kB / 0.7113 GB, free: 96.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * 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 (679): * Single equations (assignments): 675 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002752/1.056, allocations: 1.806 MB / 0.7131 GB, free: 95.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004572/1.056, allocations: 302.5 kB / 0.7134 GB, free: 94.99 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005872/1.062, allocations: 3.358 MB / 0.7167 GB, free: 93.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/1.062, allocations: 17.94 kB / 0.7167 GB, free: 93.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/1.062, allocations: 3.719 kB / 0.7167 GB, free: 93.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/1.062, allocations: 7.781 kB / 0.7167 GB, free: 93.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/1.075, allocations: 7.595 MB / 0.7241 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/1.075, allocations: 0 / 0.7241 GB, free: 91.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009925/1.076, allocations: 238.1 kB / 0.7243 GB, free: 91.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003343/1.079, allocations: 1.123 MB / 0.7254 GB, free: 91.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/1.079, allocations: 27.86 kB / 0.7254 GB, free: 91.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006764/1.086, allocations: 5.932 MB / 0.7312 GB, free: 86.84 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.086, allocations: 3.938 kB / 0.7312 GB, free: 86.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007578/1.094, allocations: 5.738 MB / 0.7368 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008945/1.094, allocations: 354.4 kB / 0.7372 GB, free: 81.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006625/1.095, allocations: 36.86 kB / 0.7372 GB, free: 81.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/1.097, allocations: 101.8 kB / 0.7373 GB, free: 81.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/1.097, allocations: 87.47 kB / 0.7374 GB, free: 81.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/1.097, allocations: 44.17 kB / 0.7374 GB, free: 81.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002649/1.1, allocations: 2.161 MB / 0.7396 GB, free: 79.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.1, allocations: 0 / 0.7396 GB, free: 79.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003655/1.103, allocations: 0.9227 MB / 0.7405 GB, free: 78.8 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003774/1.104, allocations: 180.3 kB / 0.7406 GB, free: 78.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005439/1.109, allocations: 4.747 MB / 0.7453 GB, free: 74.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/1.109, allocations: 3.938 kB / 0.7453 GB, free: 74.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001695/1.111, allocations: 1.524 MB / 0.7468 GB, free: 73.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/1.112, allocations: 329.1 kB / 0.7471 GB, free: 72.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/1.123, allocations: 9.451 MB / 0.7563 GB, free: 64.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/1.125, allocations: 2.927 MB / 0.7592 GB, free: 62.05 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003481/1.128, allocations: 1.702 MB / 0.7608 GB, free: 60.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000462/1.129, allocations: 214.8 kB / 0.761 GB, free: 60.78 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/1.129, allocations: 0 / 0.761 GB, free: 60.78 MB / 442.7 MB Notification: Performance of Templates: time 0.04346/1.172, allocations: 31.77 MB / 0.792 GB, free: 31.25 MB / 442.7 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches