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.001448/0.001453, allocations: 181.1 kB / 16.39 MB, free: 5.762 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.27/1.27, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009498/0.00095, allocations: 102.8 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003196, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2218, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1052/0.3271, allocations: 93.49 MB / 495 MB, free: 2.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3273, allocations: 92.52 kB / 495.1 MB, free: 2.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3284/0.6557, allocations: 58.86 MB / 0.541 GB, free: 72.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6557, allocations: 0 / 0.541 GB, free: 72.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.619e-05/0.6558, allocations: 47.94 kB / 0.541 GB, free: 72.4 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.008942/0.6648, allocations: 3.063 MB / 0.544 GB, free: 69.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.6649, allocations: 12.02 kB / 0.544 GB, free: 69.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00804/0.6729, allocations: 2.055 MB / 0.546 GB, free: 67.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009182/0.6821, allocations: 3.497 MB / 0.5494 GB, free: 63.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.6823, allocations: 192.9 kB / 0.5496 GB, free: 63.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009226/0.6832, allocations: 247.9 kB / 0.5499 GB, free: 63.22 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01108/0.6943, allocations: 7.042 MB / 0.5567 GB, free: 55.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.083e-05/0.6945, allocations: 39.59 kB / 0.5568 GB, free: 55.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003511/0.6948, allocations: 127.9 kB / 0.5569 GB, free: 55.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008309/0.6957, allocations: 0.7228 MB / 0.5576 GB, free: 54.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01073/0.7064, allocations: 6.09 MB / 0.5635 GB, free: 48.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03075/0.7372, allocations: 32.7 MB / 0.5955 GB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005728/0.743, allocations: 2.661 MB / 0.5981 GB, free: 11.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005404/0.7484, allocations: 3.9 MB / 0.6019 GB, free: 7.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.7485, allocations: 47.06 kB / 0.6019 GB, free: 7.641 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.358e-06/0.7485, allocations: 0 / 0.6019 GB, free: 7.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02282/0.7714, allocations: 10.53 MB / 0.6122 GB, free: 12.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001196/0.7726, allocations: 1.592 MB / 0.6138 GB, free: 11.13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003612/0.7762, allocations: 2.456 MB / 0.6162 GB, free: 8.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002045/0.7764, allocations: 49.62 kB / 0.6162 GB, free: 8.605 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.7778, allocations: 2.083 MB / 0.6182 GB, free: 6.488 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005005/0.7783, allocations: 0.5015 MB / 0.6187 GB, free: 5.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.7785, allocations: 88 kB / 0.6188 GB, free: 5.895 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002762/0.7788, allocations: 0.4922 MB / 0.6193 GB, free: 5.395 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/0.7813, allocations: 1.625 MB / 0.6209 GB, free: 3.762 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004052/0.7853, allocations: 4.407 MB / 0.6252 GB, free: 13.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003768/0.7891, allocations: 2.623 MB / 0.6277 GB, free: 11.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.037e-05/0.7892, allocations: 28 kB / 0.6278 GB, free: 11.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01402/0.8032, allocations: 7.038 MB / 0.6346 GB, free: 4.246 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.435e-05/0.8034, allocations: 47.31 kB / 0.6347 GB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006134/0.8095, allocations: 2.532 MB / 0.6372 GB, free: 1.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005016/0.8145, allocations: 1.501 MB / 0.6386 GB, free: 156 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003155/0.8177, allocations: 1.021 MB / 0.6396 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009618/0.8273, allocations: 7.434 MB / 0.6469 GB, free: 7.418 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003465/0.8308, allocations: 367.5 kB / 0.6472 GB, free: 7.059 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004174/0.8312, allocations: 280 kB / 0.6475 GB, free: 6.785 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.002283/0.8335, allocations: 1.414 MB / 0.6489 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003836/0.8339, allocations: 233.5 kB / 0.6491 GB, free: 5.129 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006502/0.8404, allocations: 2.835 MB / 0.6519 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005748/0.8462, allocations: 2.513 MB / 0.6543 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.8462, allocations: 4 kB / 0.6543 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.364e-05/0.8463, allocations: 3.984 kB / 0.6543 GB, free: 15.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01313/0.8594, allocations: 6.884 MB / 0.6611 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.018e-05/0.8594, allocations: 0 / 0.6611 GB, free: 8.758 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/0.8603, allocations: 171.8 kB / 0.6612 GB, free: 8.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004781/0.8651, allocations: 1.429 MB / 0.6626 GB, free: 7.152 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.8652, allocations: 35.97 kB / 0.6627 GB, free: 7.117 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2034/1.069, allocations: 7.539 MB / 0.67 GB, free: 125 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008567/1.07, allocations: 1.469 MB / 0.6715 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007669/1.077, allocations: 4.958 MB / 0.6763 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005741/1.078, allocations: 303.5 kB / 0.6766 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002302/1.078, allocations: 22.22 kB / 0.6766 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/1.079, allocations: 126.3 kB / 0.6767 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/1.079, allocations: 77.94 kB / 0.6768 GB, free: 122.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-05/1.079, allocations: 41.58 kB / 0.6768 GB, free: 122.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002228/1.082, allocations: 1.717 MB / 0.6785 GB, free: 122.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.082, allocations: 0 / 0.6785 GB, free: 122.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00316/1.085, allocations: 0.7674 MB / 0.6793 GB, free: 122.8 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.0003637/1.085, allocations: 175.2 kB / 0.6794 GB, free: 122.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00568/1.091, allocations: 4.319 MB / 0.6836 GB, free: 122.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.091, allocations: 3.031 kB / 0.6837 GB, free: 122.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002402/1.093, allocations: 1.708 MB / 0.6853 GB, free: 122 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009494/1.094, allocations: 238.3 kB / 0.6855 GB, free: 122 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007617/1.102, allocations: 7.644 MB / 0.693 GB, free: 119.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001685/1.104, allocations: 2.349 MB / 0.6953 GB, free: 118.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002755/1.106, allocations: 1.409 MB / 0.6967 GB, free: 118.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/1.107, allocations: 165.5 kB / 0.6968 GB, free: 118.3 MB / 442.7 MB Notification: Performance of SimCode: time 3.61e-07/1.107, allocations: 0.9844 kB / 0.6968 GB, free: 118.3 MB / 442.7 MB Notification: Performance of Templates: time 0.03645/1.143, allocations: 26.57 MB / 0.7228 GB, free: 106.1 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/jenkins/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