Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001093/0.001092, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.492/1.492, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008447/0.0008449, allocations: 82.72 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.729e-05/2.73e-05, allocations: 4 kB / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09715/0.09719, allocations: 47.58 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.44, allocations: 91.86 MB / 461.9 MB, free: 1.668 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4403, allocations: 85.19 kB / 462 MB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1545/0.5948, allocations: 58.16 MB / 0.5079 GB, free: 8.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5949, allocations: 0 / 0.5079 GB, free: 8.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001222/0.595, allocations: 52 kB / 0.508 GB, free: 8.27 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.01072/0.6057, allocations: 2.947 MB / 0.5109 GB, free: 5.266 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.6058, allocations: 8.031 kB / 0.5109 GB, free: 5.258 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009194/0.615, allocations: 2.059 MB / 0.5129 GB, free: 3.191 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00961/0.6246, allocations: 3.63 MB / 0.5164 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000194/0.6249, allocations: 189 kB / 0.5166 GB, free: 15.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.626, allocations: 255.8 kB / 0.5169 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01303/0.639, allocations: 6.949 MB / 0.5237 GB, free: 7.371 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.946e-05/0.6392, allocations: 39.62 kB / 0.5237 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003896/0.6396, allocations: 131.9 kB / 0.5238 GB, free: 7.203 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001001/0.6406, allocations: 0.715 MB / 0.5245 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01139/0.652, allocations: 5.947 MB / 0.5303 GB, free: 0.5352 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2265/0.8785, allocations: 32.7 MB / 0.5623 GB, free: 79.36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006476/0.8851, allocations: 2.66 MB / 0.5649 GB, free: 78.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.8864, allocations: 1.018 MB / 0.5658 GB, free: 78.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005428/0.8919, allocations: 3.909 MB / 0.5697 GB, free: 76.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.8919, allocations: 50.69 kB / 0.5697 GB, free: 76.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 4.248e-06/0.892, allocations: 0 / 0.5697 GB, free: 76.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.02168/0.9136, allocations: 8.922 MB / 0.5784 GB, free: 73.99 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009028/0.9146, allocations: 1.591 MB / 0.58 GB, free: 72.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00288/0.9175, allocations: 2.423 MB / 0.5823 GB, free: 71.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001933/0.9177, allocations: 45.64 kB / 0.5824 GB, free: 71.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008389/0.9186, allocations: 2.081 MB / 0.5844 GB, free: 69.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003521/0.9189, allocations: 0.5041 MB / 0.5849 GB, free: 69.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.9191, allocations: 86.41 kB / 0.585 GB, free: 69.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.9193, allocations: 0.4928 MB / 0.5855 GB, free: 69.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001765/0.9211, allocations: 1.569 MB / 0.587 GB, free: 68.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0026/0.9237, allocations: 4.339 MB / 0.5912 GB, free: 64.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002739/0.9264, allocations: 2.597 MB / 0.5938 GB, free: 63.56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.553e-05/0.9265, allocations: 31.62 kB / 0.5938 GB, free: 63.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01077/0.9372, allocations: 6.912 MB / 0.6006 GB, free: 61.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.464e-05/0.9373, allocations: 52.69 kB / 0.6006 GB, free: 61.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005251/0.9426, allocations: 2.516 MB / 0.6031 GB, free: 60.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004692/0.9473, allocations: 1.497 MB / 0.6045 GB, free: 60.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003133/0.9504, allocations: 1.011 MB / 0.6055 GB, free: 60.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008435/0.9589, allocations: 7.224 MB / 0.6126 GB, free: 56.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.9631, allocations: 369.5 kB / 0.6129 GB, free: 56.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006577/0.9637, allocations: 281.3 kB / 0.6132 GB, free: 56.25 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.0006154/0.9644, allocations: 453.6 kB / 0.6136 GB, free: 55.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004001/0.9648, allocations: 234.7 kB / 0.6139 GB, free: 55.75 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005988/0.9708, allocations: 2.829 MB / 0.6166 GB, free: 54.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005099/0.9759, allocations: 2.49 MB / 0.619 GB, free: 52.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.545e-05/0.9759, allocations: 7.953 kB / 0.6191 GB, free: 52.42 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.976, allocations: 6.656 kB / 0.6191 GB, free: 52.42 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01277/0.9887, allocations: 6.867 MB / 0.6258 GB, free: 47.09 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.9888, allocations: 0 / 0.6258 GB, free: 47.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007733/0.9896, allocations: 178.2 kB / 0.6259 GB, free: 46.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004333/0.9939, allocations: 1.439 MB / 0.6273 GB, free: 46.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.9941, allocations: 31.03 kB / 0.6274 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008019/1.002, allocations: 7.315 MB / 0.6345 GB, free: 38.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006782/1.003, allocations: 1.454 MB / 0.6359 GB, free: 37.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007488/1.01, allocations: 4.925 MB / 0.6407 GB, free: 32.38 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/1.011, allocations: 305.9 kB / 0.641 GB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003547/1.012, allocations: 29.02 kB / 0.6411 GB, free: 32.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/1.013, allocations: 123.8 kB / 0.6412 GB, free: 31.91 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002554/1.013, allocations: 80.39 kB / 0.6413 GB, free: 31.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.634e-05/1.013, allocations: 38.27 kB / 0.6413 GB, free: 31.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002483/1.016, allocations: 1.673 MB / 0.6429 GB, free: 30.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.2e-07/1.016, allocations: 0 / 0.6429 GB, free: 30.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003987/1.02, allocations: 0.7654 MB / 0.6437 GB, free: 29.35 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.0003992/1.02, allocations: 171.6 kB / 0.6438 GB, free: 29.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006326/1.027, allocations: 4.237 MB / 0.648 GB, free: 24.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.027, allocations: 0 / 0.648 GB, free: 24.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/1.03, allocations: 1.704 MB / 0.6496 GB, free: 23.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/1.031, allocations: 246.6 kB / 0.6499 GB, free: 22.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00824/1.039, allocations: 5.51 MB / 0.6553 GB, free: 17.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/1.041, allocations: 2.362 MB / 0.6576 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003063/1.044, allocations: 1.415 MB / 0.6589 GB, free: 13.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/1.045, allocations: 167.3 kB / 0.6591 GB, free: 13.44 MB / 410.7 MB Notification: Performance of SimCode: time 9.01e-07/1.045, allocations: 0 / 0.6591 GB, free: 13.44 MB / 410.7 MB Notification: Performance of Templates: time 0.04413/1.089, allocations: 26.56 MB / 0.685 GB, free: 3.168 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches