Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000872/0.000872, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001183, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003044, allocations: 4 kB / 307.7 MB, free: 0.8125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.107, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.286/0.3931, allocations: 45.4 MB / 404.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02339/0.4165, allocations: 9.791 MB / 414.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009215/0.4258, allocations: 199.3 kB / 414.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.4274, allocations: 455.9 kB / 415.1 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005042/0.4325, allocations: 1.82 MB / 416.9 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.4342, allocations: 0.7381 MB / 417.7 MB, free: 68 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007678/0.4419, allocations: 6.566 MB / 424.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007429/0.4493, allocations: 4.928 MB / 429.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003255/0.4526, allocations: 1.272 MB / 430.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004168/0.4568, allocations: 2.199 MB / 432.6 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008471/0.4577, allocations: 160 kB / 432.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002674/0.4604, allocations: 1.135 MB / 433.9 MB, free: 156 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001999/0.4624, allocations: 1.877 MB / 435.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002478/0.4649, allocations: 2.187 MB / 438 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007032/0.472, allocations: 6.938 MB / 444.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.472, allocations: 0 / 444.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.472, allocations: 0 / 444.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002016/0.4722, allocations: 0 / 444.9 MB, free: 5.102 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.008374/0.4806, allocations: 4.287 MB / 449.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.4807, allocations: 12.03 kB / 449.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008821/0.4895, allocations: 2.21 MB / 451.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004599/0.4941, allocations: 2.438 MB / 453.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.4944, allocations: 282.8 kB / 454.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001045/0.4954, allocations: 435.6 kB / 454.6 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/0.5179, allocations: 12.3 MB / 466.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.518, allocations: 51.47 kB / 466.9 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004883/0.5185, allocations: 171.8 kB / 467.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003423/0.522, allocations: 2.166 MB / 469.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02205/0.544, allocations: 10.29 MB / 479.5 MB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05402/0.5981, allocations: 44.3 MB / 0.5116 GB, free: 3.945 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/0.61, allocations: 4.676 MB / 0.5161 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002497/0.6125, allocations: 1.72 MB / 0.5178 GB, free: 13.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/0.6245, allocations: 8.314 MB / 0.5259 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.071e-05/0.6246, allocations: 59.8 kB / 0.526 GB, free: 4.559 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 4.869e-06/0.6246, allocations: 0 / 0.526 GB, free: 4.559 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2615/0.8861, allocations: 16.14 MB / 0.5417 GB, free: 106.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001208/0.8873, allocations: 1.608 MB / 0.5433 GB, free: 105.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008086/0.8954, allocations: 4.192 MB / 0.5474 GB, free: 104.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000777/0.8962, allocations: 56.98 kB / 0.5475 GB, free: 104.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002303/0.8986, allocations: 3.391 MB / 0.5508 GB, free: 102.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/0.8996, allocations: 0.808 MB / 0.5516 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006793/0.9003, allocations: 0.58 MB / 0.5521 GB, free: 102.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.882e-05/0.9004, allocations: 305.1 kB / 0.5524 GB, free: 101.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003398/0.9038, allocations: 2.294 MB / 0.5547 GB, free: 101.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004524/0.9083, allocations: 6.423 MB / 0.5609 GB, free: 95.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008689/0.917, allocations: 9.362 MB / 0.5701 GB, free: 87.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.792e-05/0.9172, allocations: 44 kB / 0.5701 GB, free: 87.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.0223/0.9395, allocations: 10.18 MB / 0.5801 GB, free: 77.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.9396, allocations: 68 kB / 0.5801 GB, free: 77.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01082/0.9505, allocations: 3.917 MB / 0.5839 GB, free: 74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01017/0.9607, allocations: 2.252 MB / 0.5861 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/0.9655, allocations: 1.599 MB / 0.5877 GB, free: 70.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007317/0.9728, allocations: 6.094 MB / 0.5937 GB, free: 64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005671/0.9785, allocations: 440.6 kB / 0.5941 GB, free: 63.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007952/0.9794, allocations: 418.1 kB / 0.5945 GB, free: 63.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003585/0.983, allocations: 2.219 MB / 0.5966 GB, free: 61.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008684/0.9838, allocations: 378.9 kB / 0.597 GB, free: 60.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005819/0.9897, allocations: 3.337 MB / 0.6003 GB, free: 57.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004687/0.9944, allocations: 2.787 MB / 0.603 GB, free: 54.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/0.9944, allocations: 7.938 kB / 0.603 GB, free: 54.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.056e-05/0.9944, allocations: 11.97 kB / 0.603 GB, free: 54.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01516/1.01, allocations: 10.39 MB / 0.6132 GB, free: 44.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.811e-05/1.01, allocations: 12 kB / 0.6132 GB, free: 44.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/1.011, allocations: 382.5 kB / 0.6135 GB, free: 43.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002782/1.014, allocations: 0.9949 MB / 0.6145 GB, free: 42.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001558/1.014, allocations: 62.16 kB / 0.6146 GB, free: 42.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004012/1.018, allocations: 4.606 MB / 0.6191 GB, free: 37.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006827/1.019, allocations: 1.48 MB / 0.6205 GB, free: 36.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00801/1.027, allocations: 5.986 MB / 0.6263 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/1.028, allocations: 444 kB / 0.6268 GB, free: 29.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003829/1.028, allocations: 55.98 kB / 0.6268 GB, free: 29.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/1.03, allocations: 163.8 kB / 0.627 GB, free: 29.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002947/1.03, allocations: 174.8 kB / 0.6271 GB, free: 29.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/1.03, allocations: 71.98 kB / 0.6272 GB, free: 29.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003394/1.034, allocations: 2.593 MB / 0.6297 GB, free: 26.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.034, allocations: 1.75 kB / 0.6297 GB, free: 26.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006019/1.04, allocations: 1.14 MB / 0.6309 GB, free: 25.34 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008838/1.041, allocations: 213.8 kB / 0.6311 GB, free: 25.15 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00957/1.05, allocations: 6.023 MB / 0.6369 GB, free: 19.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-05/1.05, allocations: 0 / 0.6369 GB, free: 19.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003723/1.054, allocations: 2.214 MB / 0.6391 GB, free: 17.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/1.064, allocations: 496.3 kB / 0.6396 GB, free: 16.65 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01492/1.079, allocations: 13.15 MB / 0.6524 GB, free: 3.316 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002998/1.082, allocations: 3.45 MB / 0.6558 GB, free: 15.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005151/1.087, allocations: 2.014 MB / 0.6578 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007913/1.088, allocations: 271.4 kB / 0.658 GB, free: 13.54 MB / 462.1 MB Notification: Performance of SimCode: time 1.372e-06/1.088, allocations: 0 / 0.658 GB, free: 13.54 MB / 462.1 MB Notification: Performance of Templates: time 0.07117/1.159, allocations: 39.96 MB / 0.697 GB, free: 5.801 MB / 494.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches