Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 171.8 kB / 17.4 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 223.2 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007752/0.0007752, allocations: 98.67 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002923, allocations: 8 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1966, allocations: 50.41 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.3521, allocations: 93.61 MB / 496.4 MB, free: 2.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/0.3524, allocations: 87.95 kB / 496.5 MB, free: 2.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2965/0.6489, allocations: 58.1 MB / 0.5416 GB, free: 72.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.649, allocations: 0 / 0.5416 GB, free: 72.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001066/0.6491, allocations: 47.98 kB / 0.5416 GB, free: 72.78 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.009251/0.6583, allocations: 3.028 MB / 0.5446 GB, free: 69.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.6584, allocations: 8.031 kB / 0.5446 GB, free: 69.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007833/0.6662, allocations: 2.025 MB / 0.5465 GB, free: 67.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004424/0.6707, allocations: 2.422 MB / 0.5489 GB, free: 65.17 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.6708, allocations: 185.3 kB / 0.5491 GB, free: 64.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007519/0.6716, allocations: 256.3 kB / 0.5493 GB, free: 64.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009239/0.6809, allocations: 7.004 MB / 0.5562 GB, free: 56.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.021e-05/0.681, allocations: 51.41 kB / 0.5562 GB, free: 56.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004865/0.6815, allocations: 131.9 kB / 0.5563 GB, free: 56.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007712/0.6822, allocations: 0.7112 MB / 0.557 GB, free: 56.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009231/0.6915, allocations: 6.051 MB / 0.563 GB, free: 50.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02738/0.7189, allocations: 32.68 MB / 0.5949 GB, free: 16.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005515/0.7245, allocations: 2.653 MB / 0.5975 GB, free: 13.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.7256, allocations: 1.032 MB / 0.5985 GB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004457/0.7301, allocations: 3.88 MB / 0.6023 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.7301, allocations: 47.12 kB / 0.6023 GB, free: 8.238 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.156e-06/0.7301, allocations: 0 / 0.6023 GB, free: 8.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02072/0.7509, allocations: 10.27 MB / 0.6123 GB, free: 13.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00113/0.752, allocations: 1.584 MB / 0.6139 GB, free: 12.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/0.7559, allocations: 2.749 MB / 0.6166 GB, free: 9.273 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001622/0.7561, allocations: 45.69 kB / 0.6166 GB, free: 9.223 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001559/0.7577, allocations: 2.075 MB / 0.6186 GB, free: 7.113 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005419/0.7582, allocations: 0.4978 MB / 0.6191 GB, free: 6.609 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.7585, allocations: 96.02 kB / 0.6192 GB, free: 6.516 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003282/0.7588, allocations: 0.4961 MB / 0.6197 GB, free: 6.012 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002624/0.7614, allocations: 1.629 MB / 0.6213 GB, free: 4.375 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00441/0.7659, allocations: 4.419 MB / 0.6256 GB, free: 14.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006975/0.7728, allocations: 6.481 MB / 0.6319 GB, free: 6.688 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.348e-05/0.7729, allocations: 28 kB / 0.632 GB, free: 6.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01274/0.7857, allocations: 7.036 MB / 0.6388 GB, free: 15.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/0.7858, allocations: 48 kB / 0.6389 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005493/0.7913, allocations: 2.524 MB / 0.6413 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004734/0.796, allocations: 1.494 MB / 0.6428 GB, free: 11.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002897/0.7989, allocations: 1.01 MB / 0.6438 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009/0.808, allocations: 7.229 MB / 0.6508 GB, free: 3.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003462/0.8114, allocations: 367.6 kB / 0.6512 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006378/0.8121, allocations: 280 kB / 0.6515 GB, free: 2.379 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (541): * Single equations (assignments): 533 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002593/0.8147, allocations: 1.431 MB / 0.6529 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004859/0.8152, allocations: 237.1 kB / 0.6531 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006349/0.8215, allocations: 2.835 MB / 0.6558 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005478/0.827, allocations: 2.513 MB / 0.6583 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.8271, allocations: 4 kB / 0.6583 GB, free: 11.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/0.8271, allocations: 7.969 kB / 0.6583 GB, free: 11.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01339/0.8405, allocations: 6.876 MB / 0.665 GB, free: 4.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.8405, allocations: 0 / 0.665 GB, free: 4.332 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008118/0.8414, allocations: 179.7 kB / 0.6652 GB, free: 4.156 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004406/0.8458, allocations: 1.434 MB / 0.6666 GB, free: 2.711 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001403/0.8459, allocations: 27.98 kB / 0.6666 GB, free: 2.684 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1826/1.029, allocations: 7.322 MB / 0.6738 GB, free: 126.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006898/1.029, allocations: 1.456 MB / 0.6752 GB, free: 124.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007619/1.037, allocations: 4.846 MB / 0.6799 GB, free: 124.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006265/1.038, allocations: 298.2 kB / 0.6802 GB, free: 124.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004344/1.038, allocations: 31.73 kB / 0.6802 GB, free: 124.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/1.039, allocations: 124.8 kB / 0.6804 GB, free: 124.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/1.04, allocations: 78.61 kB / 0.6804 GB, free: 124.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.801e-05/1.04, allocations: 38.56 kB / 0.6805 GB, free: 124.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002896/1.043, allocations: 1.719 MB / 0.6822 GB, free: 124 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.043, allocations: 0 / 0.6822 GB, free: 124 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003474/1.046, allocations: 0.7671 MB / 0.6829 GB, free: 124 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003862/1.046, allocations: 181.4 kB / 0.6831 GB, free: 123.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006007/1.052, allocations: 4.32 MB / 0.6873 GB, free: 123.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/1.052, allocations: 0 / 0.6873 GB, free: 123.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002687/1.055, allocations: 1.723 MB / 0.689 GB, free: 123.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/1.057, allocations: 254.8 kB / 0.6892 GB, free: 123.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/1.068, allocations: 7.654 MB / 0.6967 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002478/1.071, allocations: 2.294 MB / 0.6989 GB, free: 118.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003593/1.074, allocations: 1.414 MB / 0.7003 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006542/1.075, allocations: 159.6 kB / 0.7005 GB, free: 118.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.503e-06/1.075, allocations: 0 / 0.7005 GB, free: 118.3 MB / 442.7 MB Notification: Performance of Templates: time 0.04159/1.117, allocations: 26.61 MB / 0.7265 GB, free: 102.9 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches