Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001597/0.001602, allocations: 106 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 195 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 43.94 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2879, allocations: 49.44 MB / 400.7 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01178/0.2997, allocations: 12.01 MB / 412.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008241/0.308, allocations: 4.196 MB / 416.9 MB, free: 8.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.3094, allocations: 71.75 kB / 417 MB, free: 8.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004669/0.3141, allocations: 2.752 MB / 419.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00448/0.3186, allocations: 1.966 MB / 421.7 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001717/0.3203, allocations: 0.8189 MB / 422.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006425/0.3267, allocations: 4.599 MB / 427.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004634/0.3314, allocations: 3.545 MB / 430.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.3342, allocations: 1.69 MB / 432.4 MB, free: 9.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003772/0.338, allocations: 2.329 MB / 434.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001167/0.3392, allocations: 352 kB / 435 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3419, allocations: 1.283 MB / 436.3 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002726/0.3447, allocations: 2.116 MB / 438.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003367/0.3481, allocations: 2.439 MB / 440.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008074/0.3562, allocations: 7.528 MB / 448.4 MB, free: 9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3562, allocations: 0 / 448.4 MB, free: 9 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.3562, allocations: 0 / 448.4 MB, free: 9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000166/0.3564, allocations: 3.938 kB / 448.4 MB, free: 8.996 MB / 366.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.01033/0.3667, allocations: 5.274 MB / 453.7 MB, free: 3.652 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3668, allocations: 8.031 kB / 453.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00787/0.3747, allocations: 2.116 MB / 455.8 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005251/0.3799, allocations: 2.536 MB / 458.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002241/0.3802, allocations: 270.8 kB / 458.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.3815, allocations: 431.6 kB / 459 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02414/0.4056, allocations: 12.22 MB / 471.3 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001919/0.4059, allocations: 51.52 kB / 471.3 MB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/0.407, allocations: 171.8 kB / 471.5 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003391/0.4104, allocations: 2.166 MB / 473.6 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02285/0.4332, allocations: 10.2 MB / 483.8 MB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05974/0.493, allocations: 44.12 MB / 0.5156 GB, free: 7.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01246/0.5055, allocations: 4.602 MB / 0.5201 GB, free: 2.43 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002678/0.5083, allocations: 1.716 MB / 0.5218 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01387/0.5222, allocations: 8.234 MB / 0.5298 GB, free: 8.082 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.5223, allocations: 63.69 kB / 0.5299 GB, free: 8.012 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.039e-06/0.5223, allocations: 0 / 0.5299 GB, free: 8.012 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.295/0.8172, allocations: 15.91 MB / 0.5454 GB, free: 128.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009482/0.8182, allocations: 1.689 MB / 0.547 GB, free: 126.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004568/0.8228, allocations: 4.202 MB / 0.5511 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002489/0.8231, allocations: 49.58 kB / 0.5512 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001351/0.8244, allocations: 3.406 MB / 0.5545 GB, free: 122.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005519/0.825, allocations: 0.8066 MB / 0.5553 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001384/0.8264, allocations: 1.355 MB / 0.5566 GB, free: 121.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.126e-05/0.8264, allocations: 305.1 kB / 0.5569 GB, free: 120.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002876/0.8293, allocations: 2.267 MB / 0.5591 GB, free: 120.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003955/0.8333, allocations: 6.394 MB / 0.5654 GB, free: 113.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007387/0.8407, allocations: 9.326 MB / 0.5745 GB, free: 102.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.053e-05/0.8408, allocations: 40 kB / 0.5745 GB, free: 102.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01865/0.8595, allocations: 10.06 MB / 0.5844 GB, free: 92.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001455/0.8596, allocations: 70.97 kB / 0.5844 GB, free: 92.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009962/0.8696, allocations: 3.784 MB / 0.5881 GB, free: 88.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009353/0.879, allocations: 2.168 MB / 0.5902 GB, free: 86.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004934/0.884, allocations: 1.587 MB / 0.5918 GB, free: 84.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007678/0.8917, allocations: 6.601 MB / 0.5982 GB, free: 77.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005989/0.8977, allocations: 431.4 kB / 0.5986 GB, free: 77.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001827/0.8996, allocations: 419.5 kB / 0.599 GB, free: 76.83 MB / 462.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.005276/0.9049, allocations: 2.208 MB / 0.6012 GB, free: 74.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/0.906, allocations: 379.1 kB / 0.6016 GB, free: 74.25 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006768/0.9127, allocations: 3.292 MB / 0.6048 GB, free: 70.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004564/0.9173, allocations: 2.738 MB / 0.6074 GB, free: 68.17 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.9174, allocations: 3.938 kB / 0.6075 GB, free: 68.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.536e-05/0.9174, allocations: 11.97 kB / 0.6075 GB, free: 68.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02024/0.9377, allocations: 10.33 MB / 0.6175 GB, free: 57.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-05/0.9377, allocations: 15.98 kB / 0.6176 GB, free: 57.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.9392, allocations: 363.5 kB / 0.6179 GB, free: 57.22 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002682/0.9419, allocations: 0.9905 MB / 0.6189 GB, free: 56.22 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002583/0.9422, allocations: 60.05 kB / 0.6189 GB, free: 56.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004163/0.9463, allocations: 4.901 MB / 0.6237 GB, free: 50.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007941/0.9472, allocations: 1.549 MB / 0.6252 GB, free: 49.29 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008497/0.9557, allocations: 5.916 MB / 0.631 GB, free: 43.17 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001279/0.957, allocations: 447.9 kB / 0.6314 GB, free: 42.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009146/0.9579, allocations: 59.98 kB / 0.6315 GB, free: 42.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002236/0.9602, allocations: 143.8 kB / 0.6316 GB, free: 42.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003722/0.9606, allocations: 180.4 kB / 0.6318 GB, free: 42.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001832/0.9608, allocations: 75.97 kB / 0.6319 GB, free: 42.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004721/0.9655, allocations: 2.589 MB / 0.6344 GB, free: 39.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.9655, allocations: 0.5625 kB / 0.6344 GB, free: 39.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006755/0.9723, allocations: 1.165 MB / 0.6355 GB, free: 38.51 MB / 462.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.0007731/0.9731, allocations: 224 kB / 0.6358 GB, free: 38.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009926/0.983, allocations: 6.046 MB / 0.6417 GB, free: 32.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/0.9831, allocations: 0 / 0.6417 GB, free: 32.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0037/0.9868, allocations: 2.193 MB / 0.6438 GB, free: 29.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004378/0.9912, allocations: 0.5022 MB / 0.6443 GB, free: 29.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01791/1.009, allocations: 10.59 MB / 0.6546 GB, free: 18.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004987/1.014, allocations: 3.457 MB / 0.658 GB, free: 15.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005026/1.019, allocations: 2.026 MB / 0.66 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/1.02, allocations: 275.4 kB / 0.6603 GB, free: 12.87 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/1.02, allocations: 0 / 0.6603 GB, free: 12.87 MB / 462.1 MB Notification: Performance of Templates: time 0.07262/1.093, allocations: 38.34 MB / 0.6977 GB, free: 6.848 MB / 494.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches