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.000964/0.0009641, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001163, allocations: 102.1 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.063e-05/2.073e-05, allocations: 4 kB / 343.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1311, allocations: 51.48 MB / 395.2 MB, free: 4.738 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5178/0.6489, allocations: 101.2 MB / 496.4 MB, free: 8.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.6493, allocations: 85.86 kB / 496.4 MB, free: 8.148 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1944/0.8437, allocations: 75.79 MB / 0.5588 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8437, allocations: 0 / 0.5588 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001519/0.8439, allocations: 72 kB / 0.5589 GB, free: 0.875 MB / 426.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.01247/0.8564, allocations: 3.503 MB / 0.5623 GB, free: 13.32 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.592e-05/0.8565, allocations: 8.031 kB / 0.5623 GB, free: 13.31 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01058/0.867, allocations: 2.273 MB / 0.5645 GB, free: 11.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009047/0.8761, allocations: 3.279 MB / 0.5677 GB, free: 7.707 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.8763, allocations: 120 kB / 0.5679 GB, free: 7.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001155/0.8775, allocations: 215.9 kB / 0.5681 GB, free: 7.379 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009153/0.8867, allocations: 5.613 MB / 0.5735 GB, free: 1.762 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.301/1.188, allocations: 8.569 MB / 0.5819 GB, free: 80 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001431/1.188, allocations: 52.03 kB / 0.582 GB, free: 80 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005041/1.188, allocations: 34.62 kB / 0.582 GB, free: 80 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001578/1.19, allocations: 1.002 MB / 0.583 GB, free: 79.99 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04354/1.234, allocations: 43.84 MB / 0.6258 GB, free: 52.87 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003205/1.237, allocations: 2.78 MB / 0.6285 GB, free: 52.21 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001785/1.239, allocations: 1.661 MB / 0.6301 GB, free: 52.18 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006869/1.239, allocations: 0.873 MB / 0.631 GB, free: 51.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/1.239, allocations: 49.59 kB / 0.631 GB, free: 51.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=157): time 4.539e-06/1.239, allocations: 4.5 kB / 0.631 GB, free: 51.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=173): time 0.03622/1.276, allocations: 15.79 MB / 0.6464 GB, free: 45.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.731e-05/1.276, allocations: 147.8 kB / 0.6466 GB, free: 45.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005354/1.281, allocations: 2.605 MB / 0.6491 GB, free: 44.64 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005644/1.282, allocations: 25.7 kB / 0.6491 GB, free: 44.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002688/1.284, allocations: 2.775 MB / 0.6519 GB, free: 42.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001063/1.285, allocations: 0.6532 MB / 0.6525 GB, free: 42.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002028/1.286, allocations: 4.969 kB / 0.6525 GB, free: 42.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003632/1.286, allocations: 0.5482 MB / 0.653 GB, free: 41.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002867/1.289, allocations: 1.821 MB / 0.6548 GB, free: 41.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/1.294, allocations: 5.326 MB / 0.66 GB, free: 35.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004948/1.299, allocations: 3.077 MB / 0.663 GB, free: 34.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.801e-05/1.299, allocations: 35.19 kB / 0.6631 GB, free: 34.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=753) (initialization): time 0.01549/1.314, allocations: 7.414 MB / 0.6703 GB, free: 32.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.092e-05/1.314, allocations: 61 kB / 0.6703 GB, free: 32.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/1.314, allocations: 124.1 kB / 0.6705 GB, free: 32.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003794/1.318, allocations: 1.29 MB / 0.6717 GB, free: 31.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004394/1.323, allocations: 1.322 MB / 0.673 GB, free: 31.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007627/1.33, allocations: 5.898 MB / 0.6788 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005322/1.336, allocations: 239.5 kB / 0.679 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001107/1.337, allocations: 349.3 kB / 0.6793 GB, free: 28.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 706 * 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%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001071/1.338, allocations: 437.7 kB / 0.6798 GB, free: 28.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006256/1.339, allocations: 278.9 kB / 0.68 GB, free: 28.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006227/1.345, allocations: 3.196 MB / 0.6831 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/1.345, allocations: 22.84 kB / 0.6832 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/1.345, allocations: 3.656 kB / 0.6832 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/1.345, allocations: 7.594 kB / 0.6832 GB, free: 27.38 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/1.358, allocations: 7.089 MB / 0.6901 GB, free: 24.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.195e-05/1.358, allocations: 3.75 kB / 0.6901 GB, free: 24.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/1.359, allocations: 250.2 kB / 0.6903 GB, free: 24.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003406/1.362, allocations: 1.095 MB / 0.6914 GB, free: 24.69 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/1.363, allocations: 3.375 kB / 0.6914 GB, free: 24.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006813/1.369, allocations: 5.461 MB / 0.6967 GB, free: 22.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.369, allocations: 0 / 0.6967 GB, free: 22.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00836/1.378, allocations: 5.648 MB / 0.7023 GB, free: 19.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001121/1.379, allocations: 326.8 kB / 0.7026 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003222/1.379, allocations: 3.906 kB / 0.7026 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/1.381, allocations: 87.83 kB / 0.7027 GB, free: 19.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/1.381, allocations: 94.89 kB / 0.7028 GB, free: 19.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/1.381, allocations: 46.44 kB / 0.7028 GB, free: 19.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002501/1.383, allocations: 1.704 MB / 0.7045 GB, free: 18.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.383, allocations: 0 / 0.7045 GB, free: 18.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004957/1.388, allocations: 0.7968 MB / 0.7052 GB, free: 18.95 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 132 * 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.0004628/1.389, allocations: 160.1 kB / 0.7054 GB, free: 18.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006384/1.395, allocations: 4.484 MB / 0.7098 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/1.395, allocations: 1.781 kB / 0.7098 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/1.397, allocations: 1.492 MB / 0.7112 GB, free: 13.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/1.399, allocations: 256.1 kB / 0.7115 GB, free: 13.31 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/1.411, allocations: 6.696 MB / 0.718 GB, free: 7.465 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002454/1.414, allocations: 2.926 MB / 0.7209 GB, free: 5.211 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003968/1.418, allocations: 1.783 MB / 0.7226 GB, free: 4.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004957/1.418, allocations: 202.5 kB / 0.7228 GB, free: 3.914 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/1.418, allocations: 0 / 0.7228 GB, free: 3.914 MB / 442.7 MB Notification: Performance of Templates: time 0.3036/1.722, allocations: 28.31 MB / 0.7504 GB, free: 88.15 MB / 458.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