Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008652/0.0008652, allocations: 109.5 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007911/0.0007912, allocations: 43.94 kB / 327.2 MB, free: 316 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1938, allocations: 46.62 MB / 373.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.02995/0.2238, allocations: 42.2 MB / 416 MB, free: 7.156 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02124/0.245, allocations: 9.165 MB / 425.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007482/0.2526, allocations: 183.5 kB / 425.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005059/0.2577, allocations: 2.567 MB / 427.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004354/0.2621, allocations: 1.627 MB / 429.6 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.2636, allocations: 0.6281 MB / 430.2 MB, free: 8.949 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006388/0.27, allocations: 5.361 MB / 435.6 MB, free: 3.574 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003742/0.2738, allocations: 3.53 MB / 439.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.2754, allocations: 1.331 MB / 440.4 MB, free: 14.65 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002312/0.2777, allocations: 2.091 MB / 442.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004643/0.2782, allocations: 228 kB / 442.7 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001851/0.28, allocations: 1.123 MB / 443.9 MB, free: 11.2 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001399/0.2814, allocations: 1.769 MB / 445.6 MB, free: 9.426 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.283, allocations: 2.073 MB / 447.7 MB, free: 7.34 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005013/0.2881, allocations: 6.397 MB / 454.1 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2881, allocations: 4 kB / 454.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.2881, allocations: 0 / 454.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.962e-05/0.2882, allocations: 0 / 454.1 MB, free: 0.918 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.00658/0.2948, allocations: 4.577 MB / 458.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.2948, allocations: 8.031 kB / 458.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006008/0.3008, allocations: 1.879 MB / 460.6 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.3046, allocations: 2.04 MB / 462.6 MB, free: 8.289 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001507/0.3048, allocations: 250.2 kB / 462.8 MB, free: 8.043 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006823/0.3055, allocations: 395.6 kB / 463.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01437/0.3198, allocations: 10.07 MB / 473.3 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.043e-05/0.32, allocations: 43.62 kB / 473.3 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003649/0.3203, allocations: 155.9 kB / 473.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002393/0.3227, allocations: 1.857 MB / 475.3 MB, free: 10.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01472/0.3375, allocations: 8.324 MB / 483.7 MB, free: 2.484 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1878/0.5253, allocations: 39.4 MB / 0.5108 GB, free: 82.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009123/0.5344, allocations: 3.995 MB / 0.5147 GB, free: 81.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001539/0.536, allocations: 1.427 MB / 0.5161 GB, free: 80.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008407/0.5444, allocations: 7.626 MB / 0.5236 GB, free: 75.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.474e-05/0.5445, allocations: 50.19 kB / 0.5236 GB, free: 75.31 MB / 378.7 MB Notification: Performance of pre-optimization done (n=152): time 3.366e-06/0.5445, allocations: 2.312 kB / 0.5236 GB, free: 75.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=159): time 0.02479/0.5693, allocations: 12.4 MB / 0.5357 GB, free: 66.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008142/0.5701, allocations: 1.588 MB / 0.5373 GB, free: 64.63 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003526/0.5737, allocations: 3.828 MB / 0.541 GB, free: 60.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.5738, allocations: 45.7 kB / 0.5411 GB, free: 60.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001143/0.575, allocations: 3.122 MB / 0.5441 GB, free: 57.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003952/0.5754, allocations: 0.6459 MB / 0.5447 GB, free: 57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.5765, allocations: 1.257 MB / 0.546 GB, free: 55.74 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.833e-05/0.5765, allocations: 309.1 kB / 0.5463 GB, free: 55.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.5786, allocations: 2.034 MB / 0.5482 GB, free: 53.39 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003207/0.5818, allocations: 5.962 MB / 0.5541 GB, free: 45.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006282/0.5881, allocations: 8.623 MB / 0.5625 GB, free: 34.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.259e-05/0.5882, allocations: 40 kB / 0.5625 GB, free: 34.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.01795/0.6062, allocations: 9.737 MB / 0.572 GB, free: 25.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.45e-05/0.6063, allocations: 64 kB / 0.5721 GB, free: 25.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01121/0.6175, allocations: 3.741 MB / 0.5757 GB, free: 21.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01082/0.6283, allocations: 2.621 MB / 0.5783 GB, free: 18.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003402/0.6318, allocations: 1.368 MB / 0.5796 GB, free: 17.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007433/0.6392, allocations: 7.17 MB / 0.5866 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004004/0.6432, allocations: 399.1 kB / 0.587 GB, free: 9.457 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004113/0.6436, allocations: 392 kB / 0.5874 GB, free: 9.074 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.002005/0.6457, allocations: 2.017 MB / 0.5894 GB, free: 7.043 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.646, allocations: 323.9 kB / 0.5897 GB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005405/0.6514, allocations: 3.129 MB / 0.5927 GB, free: 3.574 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00468/0.6561, allocations: 2.683 MB / 0.5954 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.6561, allocations: 4 kB / 0.5954 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.6561, allocations: 7.969 kB / 0.5954 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/0.6717, allocations: 8.575 MB / 0.6037 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.6718, allocations: 0 / 0.6037 GB, free: 8.203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008306/0.6726, allocations: 187.7 kB / 0.6039 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004323/0.677, allocations: 1.444 MB / 0.6053 GB, free: 6.559 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001218/0.6771, allocations: 35.97 kB / 0.6054 GB, free: 6.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005531/0.6826, allocations: 5.698 MB / 0.6109 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008818/0.6835, allocations: 1.452 MB / 0.6123 GB, free: 14.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07053/0.7541, allocations: 37.8 MB / 0.6493 GB, free: 8.629 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008316/0.7549, allocations: 376.7 kB / 0.6496 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005963/0.7555, allocations: 28 kB / 0.6496 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.7571, allocations: 123.7 kB / 0.6498 GB, free: 8.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000323/0.7575, allocations: 92.86 kB / 0.6498 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001375/0.7576, allocations: 51.97 kB / 0.6499 GB, free: 7.949 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003919/0.7616, allocations: 2.345 MB / 0.6522 GB, free: 5.621 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7616, allocations: 0 / 0.6522 GB, free: 5.621 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005517/0.7671, allocations: 1.407 MB / 0.6536 GB, free: 4.223 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * 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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005/0.7676, allocations: 181 kB / 0.6537 GB, free: 4.047 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.1507/0.9184, allocations: 5.47 MB / 0.6591 GB, free: 156.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.9184, allocations: 3.438 kB / 0.6591 GB, free: 156.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003233/0.9216, allocations: 2.026 MB / 0.6611 GB, free: 156.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002082/0.9237, allocations: 379 kB / 0.6614 GB, free: 156.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/0.9432, allocations: 13.44 MB / 0.6745 GB, free: 150.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003502/0.9467, allocations: 3.177 MB / 0.6776 GB, free: 149.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003943/0.9507, allocations: 1.821 MB / 0.6794 GB, free: 149.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004559/0.9512, allocations: 233.3 kB / 0.6796 GB, free: 149.1 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/0.9512, allocations: 0 / 0.6796 GB, free: 149.1 MB / 442.7 MB Notification: Performance of Templates: time 0.05936/1.011, allocations: 48.36 MB / 0.7269 GB, free: 105.1 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches