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.001029/0.001029, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001029/0.00103, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.295/1.295, allocations: 222.9 MB / 241.1 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 43.89 kB / 299.9 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09512/0.09618, allocations: 49.45 MB / 349.4 MB, free: 4.547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2112/0.3074, allocations: 46.96 MB / 396.4 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02975/0.3372, allocations: 9.959 MB / 406.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01127/0.3485, allocations: 204.5 kB / 406.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007074/0.3557, allocations: 2.732 MB / 409.3 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006549/0.3622, allocations: 1.831 MB / 411.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.3643, allocations: 0.7585 MB / 411.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007272/0.3716, allocations: 6.489 MB / 418.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004797/0.3765, allocations: 3.533 MB / 421.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002695/0.3792, allocations: 1.514 MB / 423.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003711/0.3829, allocations: 2.496 MB / 425.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001017/0.3839, allocations: 260 kB / 426.1 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003348/0.3873, allocations: 1.252 MB / 427.4 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003181/0.3905, allocations: 2.041 MB / 429.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004993/0.3955, allocations: 2.353 MB / 431.8 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008846/0.4044, allocations: 7.18 MB / 439 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.4044, allocations: 8 kB / 439 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4044, allocations: 3.938 kB / 439 MB, free: 11.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003335/0.4048, allocations: 0 / 439 MB, free: 11.1 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.01199/0.4168, allocations: 5.277 MB / 444.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4168, allocations: 12.03 kB / 444.3 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008392/0.4252, allocations: 2.112 MB / 446.4 MB, free: 3.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005156/0.4304, allocations: 2.493 MB / 448.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.4307, allocations: 278.8 kB / 449.1 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00149/0.4322, allocations: 427.7 kB / 449.5 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0252/0.4574, allocations: 12.21 MB / 461.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001793/0.4576, allocations: 59.45 kB / 461.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001179/0.4588, allocations: 171.8 kB / 462 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00348/0.4623, allocations: 2.162 MB / 464.1 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02213/0.4845, allocations: 10.2 MB / 474.4 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0541/0.5386, allocations: 44.31 MB / 0.5065 GB, free: 9.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.5499, allocations: 4.605 MB / 0.511 GB, free: 4.379 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002442/0.5524, allocations: 1.716 MB / 0.5127 GB, free: 2.652 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.5643, allocations: 8.239 MB / 0.5207 GB, free: 10.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.5644, allocations: 51.88 kB / 0.5208 GB, free: 9.969 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.871e-06/0.5644, allocations: 0 / 0.5208 GB, free: 9.969 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2107/0.7752, allocations: 15.92 MB / 0.5363 GB, free: 150.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001353/0.7766, allocations: 1.6 MB / 0.5379 GB, free: 148.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009926/0.7865, allocations: 4.202 MB / 0.542 GB, free: 147.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004766/0.787, allocations: 56.17 kB / 0.542 GB, free: 147.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003061/0.7901, allocations: 3.394 MB / 0.5454 GB, free: 144.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/0.7914, allocations: 0.8023 MB / 0.5461 GB, free: 144 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002636/0.794, allocations: 1.366 MB / 0.5475 GB, free: 143.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.7941, allocations: 303.4 kB / 0.5478 GB, free: 143 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005521/0.7996, allocations: 2.261 MB / 0.55 GB, free: 142.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007399/0.807, allocations: 6.4 MB / 0.5562 GB, free: 136.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.8191, allocations: 9.315 MB / 0.5653 GB, free: 128.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002216/0.8194, allocations: 42.88 kB / 0.5654 GB, free: 128.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.03004/0.8494, allocations: 10.06 MB / 0.5752 GB, free: 123.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.8496, allocations: 72.91 kB / 0.5752 GB, free: 123.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009936/0.8596, allocations: 3.799 MB / 0.579 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009159/0.8688, allocations: 2.16 MB / 0.5811 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004684/0.8735, allocations: 1.586 MB / 0.5826 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006904/0.8804, allocations: 6.067 MB / 0.5885 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00655/0.887, allocations: 435.1 kB / 0.589 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009542/0.8879, allocations: 416 kB / 0.5894 GB, free: 109.2 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.004299/0.8923, allocations: 2.215 MB / 0.5915 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009847/0.8932, allocations: 375.1 kB / 0.5919 GB, free: 106.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00586/0.8991, allocations: 3.284 MB / 0.5951 GB, free: 103.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004352/0.9035, allocations: 2.749 MB / 0.5978 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.639e-05/0.9035, allocations: 4 kB / 0.5978 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.9035, allocations: 7.969 kB / 0.5978 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/0.9224, allocations: 10.34 MB / 0.6079 GB, free: 90 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.063e-05/0.9224, allocations: 16 kB / 0.6079 GB, free: 89.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.9238, allocations: 372.3 kB / 0.6082 GB, free: 89.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002651/0.9265, allocations: 0.9747 MB / 0.6092 GB, free: 88.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.9267, allocations: 67.97 kB / 0.6093 GB, free: 88.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/0.9304, allocations: 4.589 MB / 0.6137 GB, free: 83.72 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006703/0.9311, allocations: 1.474 MB / 0.6152 GB, free: 82.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007455/0.9386, allocations: 5.92 MB / 0.621 GB, free: 75.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009539/0.9396, allocations: 436.1 kB / 0.6214 GB, free: 75.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007048/0.9403, allocations: 55.98 kB / 0.6214 GB, free: 75.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/0.9425, allocations: 143.8 kB / 0.6216 GB, free: 75.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/0.9429, allocations: 176.4 kB / 0.6217 GB, free: 75.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001725/0.9431, allocations: 79.98 kB / 0.6218 GB, free: 75.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004089/0.9472, allocations: 2.585 MB / 0.6243 GB, free: 72.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.9472, allocations: 0 / 0.6243 GB, free: 72.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005412/0.9526, allocations: 1.161 MB / 0.6255 GB, free: 71.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.000487/0.9531, allocations: 235.3 kB / 0.6257 GB, free: 71.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008546/0.9617, allocations: 5.981 MB / 0.6315 GB, free: 65.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.9617, allocations: 4 kB / 0.6315 GB, free: 65.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003255/0.965, allocations: 2.193 MB / 0.6337 GB, free: 62.83 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003621/0.9686, allocations: 477.8 kB / 0.6341 GB, free: 62.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.985, allocations: 12.9 MB / 0.6467 GB, free: 49.26 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003715/0.9888, allocations: 3.455 MB / 0.6501 GB, free: 45.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004728/0.9935, allocations: 2.026 MB / 0.6521 GB, free: 43.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008441/0.9944, allocations: 279.3 kB / 0.6524 GB, free: 43.46 MB / 446.1 MB Notification: Performance of SimCode: time 6.32e-07/0.9944, allocations: 0 / 0.6524 GB, free: 43.46 MB / 446.1 MB Notification: Performance of Templates: time 0.2171/1.211, allocations: 40.59 MB / 0.692 GB, free: 134.6 MB / 446.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