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.001005/0.001005, allocations: 201.2 kB / 18.1 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 226.5 MB / 245.4 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007774/0.0007773, allocations: 97.7 kB / 297.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002263/0.0002263, allocations: 8 kB / 358.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1926, allocations: 51.3 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.2987, allocations: 94.15 MB / 0.4917 GB, free: 13.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002667/0.299, allocations: 87.95 kB / 0.4918 GB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3429/0.6419, allocations: 58.34 MB / 0.5488 GB, free: 63.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.642, allocations: 0 / 0.5488 GB, free: 63.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001245/0.6421, allocations: 44 kB / 0.5488 GB, free: 63.66 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.01142/0.6536, allocations: 3.129 MB / 0.5519 GB, free: 60.46 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.6536, allocations: 8.031 kB / 0.5519 GB, free: 60.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008437/0.6621, allocations: 2.084 MB / 0.5539 GB, free: 58.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005257/0.6673, allocations: 2.316 MB / 0.5562 GB, free: 56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.6675, allocations: 189.3 kB / 0.5564 GB, free: 55.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.6685, allocations: 252.3 kB / 0.5566 GB, free: 55.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009665/0.6782, allocations: 7.012 MB / 0.5635 GB, free: 47.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.464e-05/0.6784, allocations: 47.47 kB / 0.5635 GB, free: 47.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003282/0.6787, allocations: 127.9 kB / 0.5636 GB, free: 47.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000794/0.6795, allocations: 0.715 MB / 0.5643 GB, free: 46.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.6887, allocations: 6.044 MB / 0.5702 GB, free: 40.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02486/0.7136, allocations: 32.69 MB / 0.6022 GB, free: 7.086 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005588/0.7192, allocations: 2.647 MB / 0.6047 GB, free: 4.293 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.7203, allocations: 1.032 MB / 0.6057 GB, free: 3.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004918/0.7253, allocations: 3.888 MB / 0.6095 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.7253, allocations: 47.12 kB / 0.6096 GB, free: 15.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 4.148e-06/0.7254, allocations: 0 / 0.6096 GB, free: 15.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.02498/0.7503, allocations: 10.27 MB / 0.6196 GB, free: 4.613 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001226/0.7516, allocations: 1.58 MB / 0.6212 GB, free: 2.863 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003933/0.7555, allocations: 2.742 MB / 0.6238 GB, free: 104 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.7557, allocations: 41.7 kB / 0.6239 GB, free: 56 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.7572, allocations: 2.083 MB / 0.6259 GB, free: 13.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005341/0.7578, allocations: 0.5017 MB / 0.6264 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.758, allocations: 92.03 kB / 0.6265 GB, free: 13.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002985/0.7583, allocations: 0.4922 MB / 0.627 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002556/0.7608, allocations: 1.629 MB / 0.6286 GB, free: 11.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/0.7655, allocations: 4.423 MB / 0.6329 GB, free: 5.379 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007663/0.7732, allocations: 6.467 MB / 0.6392 GB, free: 13.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.885e-05/0.7732, allocations: 28 kB / 0.6392 GB, free: 13.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01419/0.7874, allocations: 7.046 MB / 0.6461 GB, free: 6.434 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.86e-05/0.7875, allocations: 50.66 kB / 0.6462 GB, free: 6.387 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005858/0.7934, allocations: 2.524 MB / 0.6486 GB, free: 3.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/0.7983, allocations: 1.489 MB / 0.6501 GB, free: 2.352 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003426/0.8018, allocations: 1.014 MB / 0.6511 GB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009464/0.8112, allocations: 7.244 MB / 0.6581 GB, free: 9.816 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003719/0.815, allocations: 363.6 kB / 0.6585 GB, free: 9.461 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005327/0.8155, allocations: 280 kB / 0.6587 GB, free: 9.188 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 () * 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.002528/0.8181, allocations: 1.419 MB / 0.6601 GB, free: 7.758 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003933/0.8185, allocations: 233 kB / 0.6604 GB, free: 7.527 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006271/0.8247, allocations: 2.835 MB / 0.6631 GB, free: 4.668 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005455/0.8302, allocations: 2.517 MB / 0.6656 GB, free: 2.133 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.8302, allocations: 4 kB / 0.6656 GB, free: 2.129 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.8303, allocations: 7.969 kB / 0.6656 GB, free: 2.121 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1927/1.023, allocations: 6.863 MB / 0.6723 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/1.023, allocations: 3.75 kB / 0.6723 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000785/1.024, allocations: 175.9 kB / 0.6725 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004318/1.028, allocations: 1.434 MB / 0.6739 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002119/1.028, allocations: 33.64 kB / 0.6739 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008347/1.037, allocations: 7.336 MB / 0.6811 GB, free: 118.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007037/1.037, allocations: 1.444 MB / 0.6825 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008026/1.045, allocations: 4.837 MB / 0.6872 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000923/1.046, allocations: 299.9 kB / 0.6875 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002429/1.047, allocations: 26.41 kB / 0.6875 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/1.048, allocations: 131.4 kB / 0.6876 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/1.048, allocations: 82.7 kB / 0.6877 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/1.048, allocations: 41.7 kB / 0.6878 GB, free: 116.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002559/1.051, allocations: 1.71 MB / 0.6894 GB, free: 116.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.051, allocations: 3.609 kB / 0.6894 GB, free: 116.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003517/1.054, allocations: 0.7763 MB / 0.6902 GB, free: 116.5 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.0003968/1.055, allocations: 172 kB / 0.6903 GB, free: 116.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006233/1.061, allocations: 4.323 MB / 0.6946 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/1.061, allocations: 3.969 kB / 0.6946 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/1.064, allocations: 1.719 MB / 0.6963 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00214/1.066, allocations: 252.5 kB / 0.6965 GB, free: 114.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009464/1.075, allocations: 7.658 MB / 0.704 GB, free: 110.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001842/1.077, allocations: 2.293 MB / 0.7062 GB, free: 109.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00304/1.08, allocations: 1.418 MB / 0.7076 GB, free: 109.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/1.081, allocations: 164.6 kB / 0.7078 GB, free: 109.5 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/1.081, allocations: 3.938 kB / 0.7078 GB, free: 109.5 MB / 442.7 MB Notification: Performance of Templates: time 0.04026/1.121, allocations: 26.58 MB / 0.7337 GB, free: 90.43 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/jenkins1/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