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.001375/0.001375, allocations: 200.7 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 226.5 MB / 245.4 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009441/0.0009442, allocations: 98.62 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002798/0.00028, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2375, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.3483, allocations: 97.2 MB / 0.4947 GB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.3486, allocations: 91.94 kB / 0.4948 GB, free: 10.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3493/0.698, allocations: 85.85 MB / 0.5786 GB, free: 33.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.698, allocations: 7.875 kB / 0.5786 GB, free: 33.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001719/0.6982, allocations: 80 kB / 0.5787 GB, free: 33.01 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.01002/0.7082, allocations: 4.004 MB / 0.5826 GB, free: 28.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.7083, allocations: 12.02 kB / 0.5826 GB, free: 28.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009985/0.7182, allocations: 2.37 MB / 0.585 GB, free: 26.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007009/0.7253, allocations: 3.435 MB / 0.5883 GB, free: 23.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002842/0.7256, allocations: 316.5 kB / 0.5886 GB, free: 22.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001696/0.7273, allocations: 416.2 kB / 0.589 GB, free: 22.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01764/0.745, allocations: 10.01 MB / 0.5988 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001973/0.7452, allocations: 67.59 kB / 0.5988 GB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0011/0.7463, allocations: 203.8 kB / 0.599 GB, free: 10.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001266/0.7476, allocations: 1.002 MB / 0.6 GB, free: 9.961 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01428/0.7619, allocations: 7.815 MB / 0.6077 GB, free: 2.121 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04748/0.8094, allocations: 45.62 MB / 0.6522 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006483/0.8159, allocations: 2.848 MB / 0.655 GB, free: 15.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001304/0.8173, allocations: 0.8691 MB / 0.6558 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006068/0.8233, allocations: 3.778 MB / 0.6595 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.8234, allocations: 55.08 kB / 0.6596 GB, free: 11.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 3.707e-06/0.8234, allocations: 0 / 0.6596 GB, free: 11.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=152): time 0.02365/0.8471, allocations: 8.99 MB / 0.6684 GB, free: 1.938 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.8472, allocations: 141.6 kB / 0.6685 GB, free: 1.766 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2269/1.074, allocations: 3.944 MB / 0.6723 GB, free: 107.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002315/1.074, allocations: 43.45 kB / 0.6724 GB, free: 107.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/1.076, allocations: 3.106 MB / 0.6754 GB, free: 106.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000532/1.076, allocations: 0.5981 MB / 0.676 GB, free: 106.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/1.077, allocations: 119.5 kB / 0.6761 GB, free: 106.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002644/1.077, allocations: 0.5466 MB / 0.6767 GB, free: 106.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/1.079, allocations: 1.589 MB / 0.6782 GB, free: 106.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/1.083, allocations: 5.34 MB / 0.6834 GB, free: 101.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007098/1.09, allocations: 7.531 MB / 0.6908 GB, free: 96.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001424/1.09, allocations: 40.5 kB / 0.6908 GB, free: 96.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=760) (initialization): time 0.01158/1.102, allocations: 6.651 MB / 0.6973 GB, free: 95.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.831e-05/1.102, allocations: 63.12 kB / 0.6974 GB, free: 95.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001576/1.102, allocations: 140.7 kB / 0.6975 GB, free: 95.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001312/1.102, allocations: 174.5 kB / 0.6977 GB, free: 95.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/1.106, allocations: 1.402 MB / 0.699 GB, free: 95.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001392/1.106, allocations: 260.7 kB / 0.6993 GB, free: 95.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004048/1.11, allocations: 371.4 kB / 0.6996 GB, free: 95.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006112/1.111, allocations: 361.8 kB / 0.7 GB, free: 95.14 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.003586/1.114, allocations: 1.98 MB / 0.7019 GB, free: 94.81 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006938/1.115, allocations: 335.6 kB / 0.7022 GB, free: 94.63 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002663/1.118, allocations: 1.243 MB / 0.7035 GB, free: 94.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/1.118, allocations: 22 kB / 0.7035 GB, free: 94.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.118, allocations: 0 / 0.7035 GB, free: 94.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/1.118, allocations: 6.141 kB / 0.7035 GB, free: 94.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01004/1.128, allocations: 5.794 MB / 0.7091 GB, free: 92.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-05/1.128, allocations: 17.25 kB / 0.7092 GB, free: 92.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/1.129, allocations: 282.4 kB / 0.7094 GB, free: 92.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.129e-05/1.129, allocations: 24.94 kB / 0.7094 GB, free: 92.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/1.129, allocations: 54.33 kB / 0.7095 GB, free: 92.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.923e-05/1.129, allocations: 37.66 kB / 0.7095 GB, free: 92.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.28e-05/1.129, allocations: 27.16 kB / 0.7096 GB, free: 92.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/1.133, allocations: 3.249 MB / 0.7127 GB, free: 90.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009744/1.134, allocations: 420 kB / 0.7131 GB, free: 89.82 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005695/1.134, allocations: 52.17 kB / 0.7132 GB, free: 89.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/1.136, allocations: 88.02 kB / 0.7133 GB, free: 89.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/1.136, allocations: 150 kB / 0.7134 GB, free: 89.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-05/1.136, allocations: 75.69 kB / 0.7135 GB, free: 89.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004343/1.14, allocations: 2.459 MB / 0.7159 GB, free: 88.92 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.14, allocations: 4 kB / 0.7159 GB, free: 88.92 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005783/1.146, allocations: 0.8807 MB / 0.7167 GB, free: 88.8 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.0006229/1.147, allocations: 217.6 kB / 0.717 GB, free: 88.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00595/1.153, allocations: 3.634 MB / 0.7205 GB, free: 87.46 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/1.153, allocations: 6.375 kB / 0.7205 GB, free: 87.46 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008759/1.154, allocations: 0.7287 MB / 0.7212 GB, free: 87.22 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01288/1.166, allocations: 447.8 kB / 0.7217 GB, free: 87.03 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/1.182, allocations: 10.16 MB / 0.7316 GB, free: 81.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004075/1.186, allocations: 3.097 MB / 0.7346 GB, free: 78.67 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004523/1.191, allocations: 1.776 MB / 0.7363 GB, free: 77.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/1.191, allocations: 227.2 kB / 0.7365 GB, free: 77.34 MB / 442.7 MB Notification: Performance of SimCode: time 6.22e-07/1.191, allocations: 3.609 kB / 0.7365 GB, free: 77.34 MB / 442.7 MB Notification: Performance of Templates: time 0.04819/1.239, allocations: 25.69 MB / 0.7616 GB, free: 60.82 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/jenkins1/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