Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001527, allocations: 175 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008074/0.0008075, allocations: 86 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.732e-05/1.733e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09701, allocations: 50.43 MB / 387.5 MB, free: 7.551 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3102/0.4072, allocations: 95.78 MB / 483.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/0.4075, allocations: 89.95 kB / 483.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.427/0.8345, allocations: 84.27 MB / 0.5543 GB, free: 97.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.8346, allocations: 0 / 0.5543 GB, free: 97.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000157/0.8347, allocations: 78.83 kB / 0.5544 GB, free: 97.29 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01031/0.8451, allocations: 3.82 MB / 0.5581 GB, free: 95.73 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.8451, allocations: 9.625 kB / 0.5581 GB, free: 95.73 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/0.8571, allocations: 2.438 MB / 0.5605 GB, free: 95.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01225/0.8694, allocations: 4.77 MB / 0.5652 GB, free: 94.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/0.8698, allocations: 133.1 kB / 0.5653 GB, free: 94.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001468/0.8712, allocations: 244.3 kB / 0.5655 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009663/0.8809, allocations: 5.819 MB / 0.5712 GB, free: 94.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/0.8937, allocations: 8.996 MB / 0.58 GB, free: 92.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001415/0.8939, allocations: 64.91 kB / 0.58 GB, free: 92.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005078/0.8944, allocations: 30.72 kB / 0.5801 GB, free: 92.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001205/0.8956, allocations: 0.9977 MB / 0.581 GB, free: 92.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03404/0.9296, allocations: 44.87 MB / 0.6249 GB, free: 58.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.9315, allocations: 1.884 MB / 0.6267 GB, free: 57.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000739/0.9323, allocations: 0.7598 MB / 0.6274 GB, free: 56.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005278/0.9328, allocations: 0.7657 MB / 0.6282 GB, free: 56.23 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.9329, allocations: 56.92 kB / 0.6282 GB, free: 56.18 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 3.878e-06/0.9329, allocations: 0 / 0.6282 GB, free: 56.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=149): time 0.01242/0.9453, allocations: 6.94 MB / 0.635 GB, free: 52.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.9454, allocations: 141.1 kB / 0.6352 GB, free: 52.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003532/0.9489, allocations: 2.98 MB / 0.6381 GB, free: 51.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001458/0.9491, allocations: 25.7 kB / 0.6381 GB, free: 51.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.9504, allocations: 3.142 MB / 0.6412 GB, free: 48.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004045/0.9508, allocations: 0.5868 MB / 0.6417 GB, free: 48.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001477/0.9509, allocations: 0.9375 kB / 0.6417 GB, free: 48.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.9512, allocations: 0.56 MB / 0.6423 GB, free: 47.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001573/0.9528, allocations: 1.41 MB / 0.6437 GB, free: 47.38 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003108/0.9559, allocations: 5.266 MB / 0.6488 GB, free: 41.47 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/0.959, allocations: 2.714 MB / 0.6515 GB, free: 40.45 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.135e-05/0.959, allocations: 40.44 kB / 0.6515 GB, free: 40.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=784) (initialization): time 0.007344/0.9664, allocations: 5.763 MB / 0.6571 GB, free: 35.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.586e-05/0.9665, allocations: 64 kB / 0.6572 GB, free: 35.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001054/0.9666, allocations: 143.8 kB / 0.6573 GB, free: 35.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001445/0.9667, allocations: 207.4 kB / 0.6575 GB, free: 35.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003764/0.9705, allocations: 1.439 MB / 0.6589 GB, free: 33.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001265/0.9706, allocations: 274.8 kB / 0.6592 GB, free: 33.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/0.9748, allocations: 264.9 kB / 0.6594 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004821/0.9753, allocations: 379.8 kB / 0.6598 GB, free: 32.97 MB / 426.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.0005469/0.9758, allocations: 447.4 kB / 0.6602 GB, free: 32.53 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005094/0.9763, allocations: 311.9 kB / 0.6605 GB, free: 32.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.9779, allocations: 1.043 MB / 0.6615 GB, free: 31.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/0.9779, allocations: 21.48 kB / 0.6616 GB, free: 31.31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.978, allocations: 0 / 0.6616 GB, free: 31.31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.978, allocations: 10.61 kB / 0.6616 GB, free: 31.31 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006233/0.9842, allocations: 4.843 MB / 0.6663 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.9843, allocations: 16 kB / 0.6663 GB, free: 26.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008789/0.9851, allocations: 279.3 kB / 0.6666 GB, free: 26.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.251e-05/0.9852, allocations: 28 kB / 0.6666 GB, free: 26.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.766e-05/0.9852, allocations: 28 kB / 0.6666 GB, free: 26.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.752e-05/0.9853, allocations: 31.55 kB / 0.6667 GB, free: 26.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.288e-05/0.9853, allocations: 27.81 kB / 0.6667 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00288/0.9882, allocations: 4.803 MB / 0.6714 GB, free: 21.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/0.9888, allocations: 379.5 kB / 0.6717 GB, free: 21.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002786/0.9891, allocations: 31.7 kB / 0.6718 GB, free: 21.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.9902, allocations: 67.31 kB / 0.6718 GB, free: 20.96 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.9904, allocations: 140.9 kB / 0.672 GB, free: 20.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.049e-05/0.9904, allocations: 64.5 kB / 0.672 GB, free: 20.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002329/0.9928, allocations: 1.966 MB / 0.674 GB, free: 19.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9928, allocations: 0 / 0.674 GB, free: 19.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004539/0.9973, allocations: 0.7382 MB / 0.6747 GB, free: 18.36 MB / 426.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.0003914/0.9977, allocations: 180.7 kB / 0.6749 GB, free: 18.18 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004652/1.002, allocations: 3.268 MB / 0.678 GB, free: 15.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.002, allocations: 5.438 kB / 0.678 GB, free: 15.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007137/1.003, allocations: 0.6803 MB / 0.6787 GB, free: 14.59 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00206/1.005, allocations: 342.5 kB / 0.679 GB, free: 14.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01184/1.017, allocations: 6.845 MB / 0.6857 GB, free: 7.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0027/1.02, allocations: 3.163 MB / 0.6888 GB, free: 5.52 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004263/1.024, allocations: 1.844 MB / 0.6906 GB, free: 4.387 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004799/1.025, allocations: 219.2 kB / 0.6908 GB, free: 4.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.025, allocations: 3.938 kB / 0.6908 GB, free: 4.176 MB / 426.7 MB Notification: Performance of Templates: time 0.2814/1.306, allocations: 22.06 MB / 0.7124 GB, free: 98.5 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches