Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 202.7 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.134/2.134, allocations: 226.5 MB / 245.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008385/0.0008385, allocations: 90.78 kB / 297.4 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002148/0.0002149, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2043, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3122, allocations: 97.2 MB / 0.494 GB, free: 10.35 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.3125, allocations: 92.97 kB / 0.4941 GB, free: 10.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3635/0.676, allocations: 85.85 MB / 0.5779 GB, free: 33.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.676, allocations: 0 / 0.5779 GB, free: 33.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001316/0.6762, allocations: 83.94 kB / 0.578 GB, free: 33.08 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.00952/0.6857, allocations: 4.005 MB / 0.5819 GB, free: 29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.6858, allocations: 12.03 kB / 0.5819 GB, free: 28.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01005/0.6958, allocations: 2.374 MB / 0.5843 GB, free: 26.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006735/0.7026, allocations: 3.435 MB / 0.5876 GB, free: 23.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.7029, allocations: 312.5 kB / 0.5879 GB, free: 22.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001368/0.7043, allocations: 416.2 kB / 0.5883 GB, free: 22.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01505/0.7193, allocations: 10.02 MB / 0.5981 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.7195, allocations: 63.58 kB / 0.5981 GB, free: 11.24 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005229/0.72, allocations: 211.8 kB / 0.5984 GB, free: 11.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001122/0.7212, allocations: 1.002 MB / 0.5993 GB, free: 10.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.7343, allocations: 7.8 MB / 0.6069 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04559/0.7799, allocations: 45.63 MB / 0.6515 GB, free: 3.043 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006559/0.7865, allocations: 2.86 MB / 0.6543 GB, free: 36 kB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.788, allocations: 0.8649 MB / 0.6551 GB, free: 15.16 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006313/0.7943, allocations: 3.774 MB / 0.6588 GB, free: 11.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.7944, allocations: 59.03 kB / 0.6589 GB, free: 11.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 4.328e-06/0.7944, allocations: 0 / 0.6589 GB, free: 11.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.02128/0.8157, allocations: 8.984 MB / 0.6677 GB, free: 2.012 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.153e-05/0.8158, allocations: 145.5 kB / 0.6678 GB, free: 1.836 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1851/1.001, allocations: 3.941 MB / 0.6716 GB, free: 106.9 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002707/1.001, allocations: 53.83 kB / 0.6717 GB, free: 106.9 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/1.003, allocations: 3.091 MB / 0.6747 GB, free: 105.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005028/1.004, allocations: 0.6017 MB / 0.6753 GB, free: 105.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002646/1.004, allocations: 119.2 kB / 0.6754 GB, free: 105.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002437/1.004, allocations: 0.5461 MB / 0.676 GB, free: 105.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/1.006, allocations: 1.593 MB / 0.6775 GB, free: 105.3 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003553/1.01, allocations: 5.336 MB / 0.6827 GB, free: 100.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006708/1.017, allocations: 7.529 MB / 0.6901 GB, free: 95.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000175/1.017, allocations: 37.44 kB / 0.6901 GB, free: 95.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01167/1.029, allocations: 6.661 MB / 0.6966 GB, free: 94.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.67e-05/1.029, allocations: 62.56 kB / 0.6967 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001476/1.029, allocations: 135.2 kB / 0.6968 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/1.029, allocations: 175.2 kB / 0.697 GB, free: 94.55 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003921/1.033, allocations: 1.398 MB / 0.6983 GB, free: 94.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001646/1.033, allocations: 260.3 kB / 0.6986 GB, free: 94.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/1.037, allocations: 370.9 kB / 0.6989 GB, free: 94.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007372/1.038, allocations: 364 kB / 0.6993 GB, free: 94.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (736): * Single equations (assignments): 733 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003168/1.041, allocations: 1.976 MB / 0.7012 GB, free: 94.01 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005362/1.042, allocations: 337 kB / 0.7015 GB, free: 93.82 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/1.044, allocations: 1.24 MB / 0.7027 GB, free: 93.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/1.044, allocations: 19.06 kB / 0.7028 GB, free: 93.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/1.044, allocations: 0 / 0.7028 GB, free: 93.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.044, allocations: 15.47 kB / 0.7028 GB, free: 93.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008117/1.052, allocations: 5.793 MB / 0.7084 GB, free: 91.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.002e-05/1.052, allocations: 17.34 kB / 0.7085 GB, free: 91.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008875/1.053, allocations: 280.1 kB / 0.7087 GB, free: 91.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.896e-05/1.053, allocations: 28.5 kB / 0.7087 GB, free: 91.35 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.129e-05/1.053, allocations: 48.47 kB / 0.7088 GB, free: 91.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-05/1.053, allocations: 37.56 kB / 0.7088 GB, free: 91.32 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-05/1.053, allocations: 32.66 kB / 0.7089 GB, free: 91.31 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/1.056, allocations: 3.259 MB / 0.712 GB, free: 89.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007832/1.057, allocations: 417.4 kB / 0.7124 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/1.057, allocations: 55.16 kB / 0.7125 GB, free: 88.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.058, allocations: 83.86 kB / 0.7126 GB, free: 88.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000147/1.058, allocations: 151.2 kB / 0.7127 GB, free: 88.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.409e-05/1.058, allocations: 67.39 kB / 0.7128 GB, free: 88.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00355/1.062, allocations: 2.466 MB / 0.7152 GB, free: 88.06 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.062, allocations: 0 / 0.7152 GB, free: 88.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004538/1.067, allocations: 0.8782 MB / 0.716 GB, free: 87.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 84 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (144): * Single equations (assignments): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004048/1.067, allocations: 217.9 kB / 0.7163 GB, free: 87.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005415/1.072, allocations: 3.636 MB / 0.7198 GB, free: 86.61 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.331e-05/1.072, allocations: 5.609 kB / 0.7198 GB, free: 86.61 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000957/1.073, allocations: 0.7372 MB / 0.7205 GB, free: 86.36 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01119/1.085, allocations: 436.2 kB / 0.7209 GB, free: 86.18 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/1.099, allocations: 10.61 MB / 0.7313 GB, free: 79.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/1.102, allocations: 3.096 MB / 0.7343 GB, free: 77.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007443/1.102, allocations: 277.8 kB / 0.7346 GB, free: 77.14 MB / 442.7 MB Notification: Performance of SimCode: time 9.72e-07/1.102, allocations: 0 / 0.7346 GB, free: 77.14 MB / 442.7 MB Notification: Performance of Templates: time 0.06266/1.165, allocations: 50.54 MB / 0.784 GB, free: 36.48 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches