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.001524/0.001523, allocations: 181.8 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001103/0.001102, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.941e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09436, allocations: 47.57 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4637/0.5582, allocations: 91.87 MB / 461 MB, free: 1.488 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/0.5585, allocations: 90.83 kB / 461 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3038/0.8624, allocations: 58.16 MB / 0.507 GB, free: 8.641 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.8625, allocations: 0 / 0.507 GB, free: 8.641 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001339/0.8626, allocations: 52 kB / 0.5071 GB, free: 8.59 MB / 394.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.01734/0.88, allocations: 2.955 MB / 0.51 GB, free: 5.578 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.88, allocations: 8.031 kB / 0.51 GB, free: 5.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01665/0.8967, allocations: 2.055 MB / 0.512 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01529/0.912, allocations: 3.626 MB / 0.5155 GB, free: 15.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002735/0.9124, allocations: 193 kB / 0.5157 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001353/0.9137, allocations: 259.8 kB / 0.516 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01939/0.9331, allocations: 6.949 MB / 0.5227 GB, free: 7.684 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.9334, allocations: 39.67 kB / 0.5228 GB, free: 7.645 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007185/0.9341, allocations: 127.9 kB / 0.5229 GB, free: 7.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001887/0.936, allocations: 0.7189 MB / 0.5236 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.9549, allocations: 5.947 MB / 0.5294 GB, free: 0.8477 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3237/1.279, allocations: 32.7 MB / 0.5613 GB, free: 79.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.29, allocations: 2.657 MB / 0.5639 GB, free: 79.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002538/1.293, allocations: 1.017 MB / 0.5649 GB, free: 79.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009998/1.303, allocations: 3.912 MB / 0.5688 GB, free: 77.24 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/1.303, allocations: 46.22 kB / 0.5688 GB, free: 77.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.608e-06/1.303, allocations: 3.188 kB / 0.5688 GB, free: 77.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.03791/1.341, allocations: 8.932 MB / 0.5775 GB, free: 74.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001322/1.342, allocations: 1.589 MB / 0.5791 GB, free: 73.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005067/1.348, allocations: 2.422 MB / 0.5814 GB, free: 72.23 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003612/1.348, allocations: 41.2 kB / 0.5815 GB, free: 72.19 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001619/1.35, allocations: 2.075 MB / 0.5835 GB, free: 70.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008114/1.35, allocations: 0.5083 MB / 0.584 GB, free: 70.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000473/1.351, allocations: 83.97 kB / 0.5841 GB, free: 70.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002749/1.351, allocations: 0.4994 MB / 0.5846 GB, free: 69.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003786/1.355, allocations: 1.564 MB / 0.5861 GB, free: 69.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005611/1.361, allocations: 4.334 MB / 0.5903 GB, free: 65.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00566/1.366, allocations: 2.602 MB / 0.5929 GB, free: 64.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.555e-05/1.367, allocations: 32.89 kB / 0.5929 GB, free: 64.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.02171/1.388, allocations: 6.846 MB / 0.5996 GB, free: 62.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.428e-05/1.388, allocations: 47.59 kB / 0.5996 GB, free: 62.11 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01016/1.399, allocations: 2.522 MB / 0.6021 GB, free: 61.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009086/1.408, allocations: 1.493 MB / 0.6036 GB, free: 61.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006/1.414, allocations: 1.015 MB / 0.6045 GB, free: 61.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/1.428, allocations: 7.225 MB / 0.6116 GB, free: 57.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006947/1.435, allocations: 370.2 kB / 0.612 GB, free: 56.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001431/1.437, allocations: 281.9 kB / 0.6122 GB, free: 56.93 MB / 410.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 () * 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.001761/1.438, allocations: 454.4 kB / 0.6127 GB, free: 56.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.439, allocations: 231.3 kB / 0.6129 GB, free: 56.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01337/1.453, allocations: 2.825 MB / 0.6156 GB, free: 55.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01277/1.466, allocations: 2.488 MB / 0.6181 GB, free: 53.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.472e-05/1.466, allocations: 7.953 kB / 0.6181 GB, free: 53.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.755e-05/1.466, allocations: 11.64 kB / 0.6181 GB, free: 53.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02567/1.491, allocations: 6.862 MB / 0.6248 GB, free: 47.94 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.55e-05/1.492, allocations: 0 / 0.6248 GB, free: 47.94 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002099/1.494, allocations: 181.4 kB / 0.625 GB, free: 47.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008404/1.502, allocations: 1.427 MB / 0.6264 GB, free: 46.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002838/1.502, allocations: 34.8 kB / 0.6264 GB, free: 46.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/1.517, allocations: 7.326 MB / 0.6335 GB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001097/1.518, allocations: 1.454 MB / 0.635 GB, free: 38.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/1.533, allocations: 4.924 MB / 0.6398 GB, free: 33.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008988/1.534, allocations: 305.9 kB / 0.6401 GB, free: 33.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006012/1.534, allocations: 24 kB / 0.6401 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.537, allocations: 124.5 kB / 0.6402 GB, free: 32.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.537, allocations: 88.33 kB / 0.6403 GB, free: 32.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/1.537, allocations: 37.16 kB / 0.6403 GB, free: 32.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00374/1.541, allocations: 1.665 MB / 0.6419 GB, free: 31.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/1.541, allocations: 0 / 0.6419 GB, free: 31.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005369/1.546, allocations: 0.7708 MB / 0.6427 GB, free: 30.33 MB / 410.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 () * 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.0006804/1.547, allocations: 171.7 kB / 0.6429 GB, free: 30.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01074/1.558, allocations: 4.241 MB / 0.647 GB, free: 25.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.558, allocations: 0 / 0.647 GB, free: 25.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005555/1.563, allocations: 1.706 MB / 0.6487 GB, free: 24.13 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002316/1.566, allocations: 239.7 kB / 0.6489 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/1.58, allocations: 5.833 MB / 0.6546 GB, free: 18.05 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003474/1.584, allocations: 2.356 MB / 0.6569 GB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.585, allocations: 203.4 kB / 0.6571 GB, free: 15.48 MB / 410.7 MB Notification: Performance of SimCode: time 1.643e-06/1.585, allocations: 0 / 0.6571 GB, free: 15.48 MB / 410.7 MB Notification: Performance of Templates: time 0.4054/1.99, allocations: 71.34 MB / 0.7268 GB, free: 94.05 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