Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 195.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001003/0.001003, allocations: 86.25 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/4.007e-05, allocations: 11.98 kB / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1046, allocations: 51.49 MB / 402 MB, free: 15.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4881, allocations: 94.08 MB / 496.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/0.4885, allocations: 87.08 kB / 496.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1557/0.6443, allocations: 59.61 MB / 0.5428 GB, free: 1.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6443, allocations: 0 / 0.5428 GB, free: 1.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.091e-05/0.6444, allocations: 44 kB / 0.5428 GB, free: 1.137 MB / 410.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.01074/0.6551, allocations: 3.051 MB / 0.5458 GB, free: 14.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.6552, allocations: 12.03 kB / 0.5458 GB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009432/0.6646, allocations: 2.11 MB / 0.5479 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007559/0.6722, allocations: 2.973 MB / 0.5508 GB, free: 8.887 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.6724, allocations: 192.9 kB / 0.551 GB, free: 8.695 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008872/0.6733, allocations: 251.8 kB / 0.5512 GB, free: 8.449 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01276/0.6861, allocations: 6.952 MB / 0.558 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.6862, allocations: 47.53 kB / 0.558 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.6866, allocations: 123.9 kB / 0.5581 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009943/0.6876, allocations: 0.7229 MB / 0.5589 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.6989, allocations: 5.943 MB / 0.5647 GB, free: 9.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3109/1.01, allocations: 32.69 MB / 0.5966 GB, free: 70.23 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006362/1.016, allocations: 2.648 MB / 0.5992 GB, free: 69.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/1.018, allocations: 1.02 MB / 0.6002 GB, free: 69.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007207/1.025, allocations: 3.888 MB / 0.604 GB, free: 67.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.512e-05/1.025, allocations: 44.59 kB / 0.604 GB, free: 67.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 6.562e-06/1.025, allocations: 0 / 0.604 GB, free: 67.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.02201/1.047, allocations: 8.882 MB / 0.6127 GB, free: 65.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001095/1.048, allocations: 1.579 MB / 0.6142 GB, free: 64.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003867/1.052, allocations: 2.406 MB / 0.6166 GB, free: 63.89 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002954/1.053, allocations: 42.02 kB / 0.6166 GB, free: 63.86 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/1.054, allocations: 2.081 MB / 0.6186 GB, free: 62.72 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005068/1.054, allocations: 0.5042 MB / 0.6191 GB, free: 62.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/1.054, allocations: 93.05 kB / 0.6192 GB, free: 62.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000205/1.055, allocations: 0.4977 MB / 0.6197 GB, free: 62.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/1.057, allocations: 1.565 MB / 0.6212 GB, free: 62.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003927/1.061, allocations: 4.335 MB / 0.6255 GB, free: 58.51 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/1.066, allocations: 2.599 MB / 0.628 GB, free: 58.43 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/1.066, allocations: 27.59 kB / 0.628 GB, free: 58.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01521/1.081, allocations: 6.916 MB / 0.6348 GB, free: 57.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.375e-05/1.081, allocations: 50.38 kB / 0.6348 GB, free: 57.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006822/1.088, allocations: 2.516 MB / 0.6373 GB, free: 57.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/1.093, allocations: 1.494 MB / 0.6387 GB, free: 57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003852/1.097, allocations: 1.018 MB / 0.6397 GB, free: 56.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009313/1.107, allocations: 7.233 MB / 0.6468 GB, free: 52.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/1.111, allocations: 366.7 kB / 0.6472 GB, free: 52.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009613/1.112, allocations: 283.9 kB / 0.6474 GB, free: 52.64 MB / 442.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.0008248/1.113, allocations: 446.9 kB / 0.6479 GB, free: 52.27 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/1.114, allocations: 229.2 kB / 0.6481 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006067/1.12, allocations: 2.837 MB / 0.6508 GB, free: 51.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005126/1.125, allocations: 2.498 MB / 0.6533 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.495e-05/1.125, allocations: 4.125 kB / 0.6533 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/1.125, allocations: 7.406 kB / 0.6533 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01278/1.138, allocations: 6.853 MB / 0.66 GB, free: 48.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.624e-05/1.138, allocations: 0.5 kB / 0.66 GB, free: 48.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008318/1.139, allocations: 178.4 kB / 0.6602 GB, free: 48.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004452/1.143, allocations: 1.434 MB / 0.6616 GB, free: 48.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002516/1.143, allocations: 34.83 kB / 0.6616 GB, free: 48.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009319/1.153, allocations: 7.324 MB / 0.6687 GB, free: 44.03 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000795/1.153, allocations: 1.453 MB / 0.6702 GB, free: 42.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00853/1.162, allocations: 4.927 MB / 0.675 GB, free: 40.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/1.163, allocations: 305.4 kB / 0.6753 GB, free: 40.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003214/1.163, allocations: 26.48 kB / 0.6753 GB, free: 40.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001253/1.165, allocations: 124.5 kB / 0.6754 GB, free: 40.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002684/1.165, allocations: 83.25 kB / 0.6755 GB, free: 40.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/1.165, allocations: 45.38 kB / 0.6755 GB, free: 40.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002445/1.168, allocations: 1.653 MB / 0.6771 GB, free: 39.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.168, allocations: 0 / 0.6771 GB, free: 39.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004334/1.172, allocations: 0.7822 MB / 0.6779 GB, free: 39.7 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 () * 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.0004985/1.172, allocations: 165.3 kB / 0.6781 GB, free: 39.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006604/1.179, allocations: 4.249 MB / 0.6822 GB, free: 37.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/1.179, allocations: 3.656 kB / 0.6822 GB, free: 37.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002881/1.182, allocations: 1.69 MB / 0.6839 GB, free: 37.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/1.183, allocations: 244 kB / 0.6841 GB, free: 37.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008887/1.192, allocations: 5.505 MB / 0.6895 GB, free: 33.75 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/1.194, allocations: 2.349 MB / 0.6918 GB, free: 31.9 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003086/1.197, allocations: 1.413 MB / 0.6931 GB, free: 31.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/1.198, allocations: 166.6 kB / 0.6933 GB, free: 30.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.393e-06/1.198, allocations: 0 / 0.6933 GB, free: 30.87 MB / 442.7 MB Notification: Performance of Templates: time 0.03894/1.237, allocations: 26.58 MB / 0.7193 GB, free: 7.703 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches