Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008728/0.0008727, allocations: 90.64 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.428e-05, allocations: 8 kB / 343.7 MB, free: 8.285 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 51.48 MB / 395.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3768/0.4835, allocations: 96.43 MB / 491.6 MB, free: 12.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002549/0.4838, allocations: 89.64 kB / 491.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2568/0.7407, allocations: 86.64 MB / 0.5648 GB, free: 10.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.7407, allocations: 192 / 0.5648 GB, free: 10.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002598/0.741, allocations: 79.94 kB / 0.5649 GB, free: 10.73 MB / 442.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.01204/0.753, allocations: 3.829 MB / 0.5686 GB, free: 6.836 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.7531, allocations: 8.031 kB / 0.5686 GB, free: 6.828 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01224/0.7654, allocations: 2.436 MB / 0.571 GB, free: 4.383 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.7775, allocations: 4.14 MB / 0.575 GB, free: 188 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003642/0.7779, allocations: 132 kB / 0.5752 GB, free: 56 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2396/1.018, allocations: 239.9 kB / 0.5754 GB, free: 81.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01196/1.03, allocations: 5.817 MB / 0.5811 GB, free: 81.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01745/1.047, allocations: 8.992 MB / 0.5898 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002568/1.047, allocations: 63.09 kB / 0.5899 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00128/1.049, allocations: 31.72 kB / 0.5899 GB, free: 78.65 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001471/1.05, allocations: 1.004 MB / 0.5909 GB, free: 78.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04062/1.091, allocations: 44.86 MB / 0.6347 GB, free: 48.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002644/1.093, allocations: 1.879 MB / 0.6366 GB, free: 48.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/1.095, allocations: 0.7588 MB / 0.6373 GB, free: 47.97 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007321/1.096, allocations: 0.7755 MB / 0.6381 GB, free: 47.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/1.096, allocations: 48.09 kB / 0.6381 GB, free: 47.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 4.789e-06/1.096, allocations: 0 / 0.6381 GB, free: 47.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=149): time 0.01558/1.111, allocations: 6.948 MB / 0.6449 GB, free: 43.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.111, allocations: 144.5 kB / 0.645 GB, free: 43.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004007/1.115, allocations: 2.972 MB / 0.6479 GB, free: 42.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001545/1.115, allocations: 26.86 kB / 0.648 GB, free: 42.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/1.117, allocations: 3.14 MB / 0.651 GB, free: 40.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005638/1.118, allocations: 0.5878 MB / 0.6516 GB, free: 39.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/1.118, allocations: 6.625 kB / 0.6516 GB, free: 39.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003648/1.118, allocations: 0.5566 MB / 0.6521 GB, free: 39.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00206/1.12, allocations: 1.405 MB / 0.6535 GB, free: 38.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003649/1.124, allocations: 5.263 MB / 0.6587 GB, free: 33.17 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003787/1.128, allocations: 2.739 MB / 0.6613 GB, free: 32.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000112/1.128, allocations: 40.66 kB / 0.6614 GB, free: 32.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.00882/1.137, allocations: 5.755 MB / 0.667 GB, free: 30.19 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.093e-05/1.137, allocations: 72.86 kB / 0.6671 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001415/1.137, allocations: 138.8 kB / 0.6672 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/1.137, allocations: 204.5 kB / 0.6674 GB, free: 30.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004176/1.142, allocations: 1.441 MB / 0.6688 GB, free: 30 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001421/1.142, allocations: 275 kB / 0.6691 GB, free: 29.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004834/1.147, allocations: 264.9 kB / 0.6693 GB, free: 29.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007952/1.147, allocations: 376.6 kB / 0.6697 GB, free: 29.87 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 636 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 757 * 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.0007563/1.148, allocations: 448.4 kB / 0.6701 GB, free: 29.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006606/1.149, allocations: 309.8 kB / 0.6704 GB, free: 29.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001641/1.15, allocations: 1.047 MB / 0.6714 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.55e-05/1.15, allocations: 17.12 kB / 0.6714 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.15, allocations: 0 / 0.6714 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/1.151, allocations: 6.938 kB / 0.6714 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008599/1.159, allocations: 4.838 MB / 0.6762 GB, free: 26.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.006e-05/1.159, allocations: 17.78 kB / 0.6762 GB, free: 26.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/1.16, allocations: 277.1 kB / 0.6764 GB, free: 26.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.553e-05/1.16, allocations: 23.97 kB / 0.6765 GB, free: 26.57 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.803e-05/1.16, allocations: 33.97 kB / 0.6765 GB, free: 26.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.521e-05/1.16, allocations: 31.62 kB / 0.6765 GB, free: 26.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.732e-05/1.16, allocations: 26.41 kB / 0.6765 GB, free: 26.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00387/1.164, allocations: 4.807 MB / 0.6812 GB, free: 22.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000841/1.165, allocations: 378.5 kB / 0.6816 GB, free: 22.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003045/1.165, allocations: 28.25 kB / 0.6816 GB, free: 22.22 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/1.167, allocations: 64.61 kB / 0.6817 GB, free: 22.21 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001467/1.167, allocations: 144.8 kB / 0.6818 GB, free: 22.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.013e-05/1.167, allocations: 66.73 kB / 0.6819 GB, free: 22.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002636/1.17, allocations: 1.967 MB / 0.6838 GB, free: 21.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.91e-07/1.17, allocations: 0 / 0.6838 GB, free: 21.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004658/1.174, allocations: 0.7402 MB / 0.6845 GB, free: 21.43 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 75 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.0004/1.175, allocations: 190.4 kB / 0.6847 GB, free: 21.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004404/1.179, allocations: 3.267 MB / 0.6879 GB, free: 20.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.179, allocations: 3.625 kB / 0.6879 GB, free: 20.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006901/1.18, allocations: 0.6713 MB / 0.6886 GB, free: 20 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/1.182, allocations: 346.8 kB / 0.6889 GB, free: 19.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/1.192, allocations: 6.843 MB / 0.6956 GB, free: 16.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/1.195, allocations: 3.168 MB / 0.6987 GB, free: 15.64 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004001/1.199, allocations: 1.84 MB / 0.7005 GB, free: 15.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003901/1.199, allocations: 216.8 kB / 0.7007 GB, free: 15.47 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/1.199, allocations: 0 / 0.7007 GB, free: 15.47 MB / 442.7 MB Notification: Performance of Templates: time 0.0407/1.24, allocations: 22.07 MB / 0.7222 GB, free: 5.297 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches