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.001089/0.001089, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001102/0.001102, allocations: 191 kB / 18.63 MB, free: 4.379 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.335/1.335, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 48.64 kB / 302.1 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1167, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01264/0.1294, allocations: 12 MB / 363.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008409/0.1378, allocations: 4.195 MB / 367.7 MB, free: 3.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001742/0.1396, allocations: 71.75 kB / 367.8 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005094/0.1448, allocations: 2.764 MB / 370.5 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1905/0.3353, allocations: 1.954 MB / 372.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002331/0.3377, allocations: 0.8042 MB / 373.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008351/0.3461, allocations: 4.609 MB / 377.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005782/0.3519, allocations: 3.541 MB / 381.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00382/0.3557, allocations: 1.695 MB / 383.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004475/0.3602, allocations: 2.337 MB / 385.5 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009808/0.3612, allocations: 352.3 kB / 385.8 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002539/0.3638, allocations: 1.284 MB / 387.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001958/0.3658, allocations: 2.096 MB / 389.2 MB, free: 7.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002518/0.3683, allocations: 2.431 MB / 391.6 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006601/0.3749, allocations: 7.519 MB / 399.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.375, allocations: 0 / 399.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.375, allocations: 0 / 399.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002284/0.3752, allocations: 6.156 kB / 399.2 MB, free: 1.242 MB / 302.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.01256/0.3878, allocations: 5.281 MB / 404.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.3878, allocations: 8.031 kB / 404.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007997/0.3958, allocations: 2.111 MB / 406.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006452/0.4023, allocations: 2.532 MB / 409.1 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001977/0.4025, allocations: 276.9 kB / 409.4 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009299/0.4035, allocations: 427.5 kB / 409.8 MB, free: 7.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02286/0.4263, allocations: 12.22 MB / 422 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001445/0.4265, allocations: 55.53 kB / 422.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005055/0.4271, allocations: 180.4 kB / 422.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002931/0.43, allocations: 2.155 MB / 424.4 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02084/0.4509, allocations: 10.21 MB / 434.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05828/0.5092, allocations: 44.12 MB / 478.7 MB, free: 456 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.5207, allocations: 4.604 MB / 483.3 MB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003292/0.524, allocations: 1.716 MB / 485 MB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0156/0.5397, allocations: 8.227 MB / 493.3 MB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.026e-05/0.5398, allocations: 59.8 kB / 493.3 MB, free: 1.305 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 5.2e-06/0.5398, allocations: 0 / 493.3 MB, free: 1.305 MB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.0411/0.5809, allocations: 15.92 MB / 0.4973 GB, free: 1.227 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00136/0.5823, allocations: 1.692 MB / 0.499 GB, free: 15.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/0.5899, allocations: 4.195 MB / 0.5031 GB, free: 11.13 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006282/0.5905, allocations: 60.81 kB / 0.5031 GB, free: 11.07 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003074/0.5936, allocations: 3.392 MB / 0.5064 GB, free: 7.68 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/0.5949, allocations: 0.8074 MB / 0.5072 GB, free: 6.879 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003188/0.5981, allocations: 1.363 MB / 0.5085 GB, free: 5.512 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.5983, allocations: 301.1 kB / 0.5088 GB, free: 5.215 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004829/0.6031, allocations: 2.27 MB / 0.511 GB, free: 2.941 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007202/0.6104, allocations: 6.389 MB / 0.5173 GB, free: 10.52 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2215/0.8319, allocations: 9.33 MB / 0.5264 GB, free: 141.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/0.8321, allocations: 45.22 kB / 0.5264 GB, free: 141.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02318/0.8553, allocations: 10.05 MB / 0.5363 GB, free: 139.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001221/0.8555, allocations: 67.14 kB / 0.5363 GB, free: 139.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01077/0.8663, allocations: 3.793 MB / 0.54 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009581/0.8759, allocations: 2.168 MB / 0.5421 GB, free: 138.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005198/0.8811, allocations: 1.583 MB / 0.5437 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007519/0.8886, allocations: 6.6 MB / 0.5501 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005047/0.8937, allocations: 429.5 kB / 0.5505 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/0.8947, allocations: 414.5 kB / 0.5509 GB, free: 134.3 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.003628/0.8984, allocations: 2.229 MB / 0.5531 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/0.8991, allocations: 373.6 kB / 0.5535 GB, free: 133.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005951/0.9051, allocations: 3.277 MB / 0.5567 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004406/0.9095, allocations: 2.746 MB / 0.5594 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.9095, allocations: 3.312 kB / 0.5594 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.9096, allocations: 7.969 kB / 0.5594 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/0.9285, allocations: 10.33 MB / 0.5695 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.09e-05/0.9286, allocations: 12 kB / 0.5695 GB, free: 121.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001386/0.93, allocations: 376.5 kB / 0.5698 GB, free: 121.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/0.9325, allocations: 0.9809 MB / 0.5708 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/0.9327, allocations: 63.98 kB / 0.5708 GB, free: 120.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003908/0.9366, allocations: 4.888 MB / 0.5756 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008075/0.9375, allocations: 1.559 MB / 0.5771 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007536/0.945, allocations: 5.92 MB / 0.5829 GB, free: 107.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001093/0.9461, allocations: 436.1 kB / 0.5833 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008948/0.947, allocations: 59.97 kB / 0.5834 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/0.9491, allocations: 144.7 kB / 0.5835 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003263/0.9495, allocations: 176.4 kB / 0.5837 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001659/0.9497, allocations: 79.02 kB / 0.5838 GB, free: 106.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004474/0.9541, allocations: 2.589 MB / 0.5863 GB, free: 104.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9542, allocations: 0 / 0.5863 GB, free: 104.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006068/0.9602, allocations: 1.17 MB / 0.5874 GB, free: 103 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.0005037/0.9607, allocations: 219.3 kB / 0.5877 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008814/0.9696, allocations: 6.037 MB / 0.5936 GB, free: 96.76 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/0.9696, allocations: 0 / 0.5936 GB, free: 96.76 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003392/0.973, allocations: 2.197 MB / 0.5957 GB, free: 94.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/0.9763, allocations: 0.4943 MB / 0.5962 GB, free: 94.01 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.9915, allocations: 10.63 MB / 0.6066 GB, free: 83.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004024/0.9955, allocations: 3.447 MB / 0.6099 GB, free: 79.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00437/0.9999, allocations: 2.022 MB / 0.6119 GB, free: 77.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008326/1.001, allocations: 275.4 kB / 0.6122 GB, free: 77.41 MB / 446.1 MB Notification: Performance of SimCode: time 1.292e-06/1.001, allocations: 0 / 0.6122 GB, free: 77.41 MB / 446.1 MB Notification: Performance of Templates: time 0.06103/1.062, allocations: 36.22 MB / 0.6475 GB, free: 41.52 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/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