Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00143/0.00143, allocations: 185.9 kB / 17.42 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.291/1.291, allocations: 205.4 MB / 223.6 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007793/0.0007792, allocations: 90.34 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003205/0.0003205, allocations: 8 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2305, allocations: 47.57 MB / 375.7 MB, free: 45.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1058/0.3364, allocations: 92.1 MB / 467.8 MB, free: 4.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.3367, allocations: 91.95 kB / 467.9 MB, free: 4.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3494/0.6861, allocations: 57.37 MB / 0.513 GB, free: 93.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.6862, allocations: 0 / 0.513 GB, free: 93.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001254/0.6863, allocations: 47.62 kB / 0.513 GB, free: 93.94 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.01162/0.6979, allocations: 3.04 MB / 0.516 GB, free: 92.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.698, allocations: 7.625 kB / 0.516 GB, free: 92.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008922/0.7069, allocations: 2.028 MB / 0.518 GB, free: 92.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005742/0.7127, allocations: 2.551 MB / 0.5205 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001987/0.7129, allocations: 192 kB / 0.5206 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001192/0.7141, allocations: 253.6 kB / 0.5209 GB, free: 91.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01309/0.7272, allocations: 7.002 MB / 0.5277 GB, free: 86.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/0.7274, allocations: 51.47 kB / 0.5278 GB, free: 86.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009576/0.7284, allocations: 126.3 kB / 0.5279 GB, free: 86.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/0.7294, allocations: 0.7228 MB / 0.5286 GB, free: 85.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/0.74, allocations: 6.047 MB / 0.5345 GB, free: 79.94 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03009/0.7701, allocations: 32.69 MB / 0.5664 GB, free: 46.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006004/0.7762, allocations: 2.663 MB / 0.569 GB, free: 43.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.7775, allocations: 1.024 MB / 0.57 GB, free: 42.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005498/0.783, allocations: 3.898 MB / 0.5738 GB, free: 38.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.081e-05/0.7831, allocations: 47.06 kB / 0.5739 GB, free: 38.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.817e-06/0.7831, allocations: 0 / 0.5739 GB, free: 38.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02382/0.8069, allocations: 10.33 MB / 0.584 GB, free: 27.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009659/0.8079, allocations: 1.576 MB / 0.5855 GB, free: 26.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004829/0.8128, allocations: 2.762 MB / 0.5882 GB, free: 23.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002435/0.813, allocations: 41.7 kB / 0.5883 GB, free: 23.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001185/0.8142, allocations: 2.085 MB / 0.5903 GB, free: 21.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005569/0.8148, allocations: 0.5079 MB / 0.5908 GB, free: 20.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003606/0.8152, allocations: 84 kB / 0.5909 GB, free: 20.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002744/0.8155, allocations: 0.4961 MB / 0.5913 GB, free: 20.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00259/0.8181, allocations: 1.629 MB / 0.5929 GB, free: 18.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003877/0.8219, allocations: 4.415 MB / 0.5973 GB, free: 12.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006571/0.8285, allocations: 6.479 MB / 0.6036 GB, free: 4.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.751e-05/0.8286, allocations: 32 kB / 0.6036 GB, free: 4.684 MB / 378.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01343/0.8421, allocations: 7.045 MB / 0.6105 GB, free: 13.63 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.8422, allocations: 48 kB / 0.6105 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00631/0.8485, allocations: 2.528 MB / 0.613 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00527/0.8538, allocations: 1.477 MB / 0.6144 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003446/0.8573, allocations: 1.021 MB / 0.6154 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.8676, allocations: 7.235 MB / 0.6225 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/0.8717, allocations: 359.6 kB / 0.6229 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009787/0.8727, allocations: 284 kB / 0.6231 GB, free: 408 kB / 394.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.003397/0.8761, allocations: 1.421 MB / 0.6245 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006338/0.8768, allocations: 236.8 kB / 0.6247 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007246/0.884, allocations: 2.84 MB / 0.6275 GB, free: 11.87 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006015/0.8901, allocations: 2.509 MB / 0.63 GB, free: 9.344 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/0.8901, allocations: 4 kB / 0.63 GB, free: 9.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-05/0.8902, allocations: 7.984 kB / 0.63 GB, free: 9.332 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/0.9063, allocations: 6.887 MB / 0.6367 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.832e-05/0.9063, allocations: 0 / 0.6367 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009109/0.9072, allocations: 183.7 kB / 0.6369 GB, free: 2.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004811/0.9121, allocations: 1.426 MB / 0.6383 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002154/0.9123, allocations: 31.97 kB / 0.6383 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.9224, allocations: 7.336 MB / 0.6455 GB, free: 9.129 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001021/0.9235, allocations: 1.45 MB / 0.6469 GB, free: 7.539 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009327/0.9328, allocations: 4.841 MB / 0.6516 GB, free: 2.664 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008638/0.9338, allocations: 305.9 kB / 0.6519 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000571/0.9344, allocations: 20 kB / 0.6519 GB, free: 2.324 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/0.936, allocations: 127.7 kB / 0.652 GB, free: 2.199 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.9363, allocations: 88.31 kB / 0.6521 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.9365, allocations: 39.98 kB / 0.6522 GB, free: 2.074 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003818/0.9403, allocations: 1.717 MB / 0.6538 GB, free: 356 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9403, allocations: 0 / 0.6538 GB, free: 356 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.2003/1.141, allocations: 0.7707 MB / 0.6546 GB, free: 126.3 MB / 426.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.0004824/1.141, allocations: 167.2 kB / 0.6547 GB, free: 126.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007699/1.149, allocations: 4.318 MB / 0.659 GB, free: 125.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.149, allocations: 4.594 kB / 0.659 GB, free: 125.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00325/1.152, allocations: 1.717 MB / 0.6606 GB, free: 125.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/1.155, allocations: 256.6 kB / 0.6609 GB, free: 125.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01222/1.167, allocations: 7.992 MB / 0.6687 GB, free: 122.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001927/1.169, allocations: 2.3 MB / 0.6709 GB, free: 121.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000779/1.17, allocations: 201.7 kB / 0.6711 GB, free: 121.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.022e-06/1.17, allocations: 0 / 0.6711 GB, free: 121.7 MB / 426.7 MB Notification: Performance of Templates: time 0.07485/1.244, allocations: 74.52 MB / 0.7439 GB, free: 66.91 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches