Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 113.1 kB / 16.51 MB, free: 6.652 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.001075/0.001075, allocations: 198.7 kB / 17.43 MB, free: 6.035 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: 15.33 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 55.3 kB / 300 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09572/0.09678, allocations: 49.44 MB / 349.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.1894/0.2862, allocations: 42.2 MB / 391.6 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02273/0.309, allocations: 9.176 MB / 400.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009319/0.3184, allocations: 178.3 kB / 400.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004995/0.3234, allocations: 2.561 MB / 403.5 MB, free: 11.69 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004706/0.3282, allocations: 1.633 MB / 405.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.3298, allocations: 0.6299 MB / 405.8 MB, free: 10.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005745/0.3356, allocations: 5.322 MB / 411.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004257/0.3399, allocations: 3.544 MB / 414.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002187/0.3421, allocations: 1.312 MB / 415.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002884/0.345, allocations: 2.095 MB / 418 MB, free: 208 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000827/0.3458, allocations: 228 kB / 418.3 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002953/0.3488, allocations: 1.127 MB / 419.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002526/0.3513, allocations: 1.765 MB / 421.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003567/0.3549, allocations: 2.077 MB / 423.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006814/0.3617, allocations: 6.397 MB / 429.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.3618, allocations: 0 / 429.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.3618, allocations: 7.938 kB / 429.6 MB, free: 4.562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001406/0.3619, allocations: 4 kB / 429.6 MB, free: 4.559 MB / 334.1 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.007249/0.3692, allocations: 4.565 MB / 434.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.3692, allocations: 12.02 kB / 434.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006031/0.3753, allocations: 1.879 MB / 436.1 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002939/0.3782, allocations: 1.986 MB / 438.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001554/0.3784, allocations: 250.2 kB / 438.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006985/0.3791, allocations: 399.6 kB / 438.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/0.3941, allocations: 10.06 MB / 448.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.479e-05/0.3942, allocations: 39.62 kB / 448.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003641/0.3945, allocations: 163.8 kB / 449 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002369/0.3969, allocations: 1.857 MB / 450.8 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01477/0.4117, allocations: 8.32 MB / 459.2 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04629/0.458, allocations: 39.38 MB / 498.5 MB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009692/0.4677, allocations: 4.008 MB / 0.4908 GB, free: 9.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.4697, allocations: 1.431 MB / 0.4922 GB, free: 8.078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01043/0.4801, allocations: 7.626 MB / 0.4996 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.041e-05/0.4802, allocations: 55.5 kB / 0.4997 GB, free: 15.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=152): time 5.35e-06/0.4802, allocations: 0 / 0.4997 GB, free: 15.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.03124/0.5115, allocations: 12.38 MB / 0.5118 GB, free: 3.332 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001188/0.5127, allocations: 1.589 MB / 0.5133 GB, free: 1.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005897/0.5186, allocations: 3.812 MB / 0.517 GB, free: 13.77 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000185/0.5188, allocations: 45.7 kB / 0.5171 GB, free: 13.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002381/0.5212, allocations: 3.11 MB / 0.5201 GB, free: 10.56 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007214/0.5219, allocations: 0.6521 MB / 0.5207 GB, free: 9.902 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00206/0.524, allocations: 1.257 MB / 0.522 GB, free: 8.633 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5241, allocations: 305.1 kB / 0.5223 GB, free: 8.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003165/0.5273, allocations: 2.034 MB / 0.5242 GB, free: 6.293 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1953/0.7226, allocations: 5.968 MB / 0.5301 GB, free: 145.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.7327, allocations: 8.613 MB / 0.5385 GB, free: 139.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001642/0.733, allocations: 44 kB / 0.5385 GB, free: 139.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02447/0.7574, allocations: 9.728 MB / 0.548 GB, free: 136.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002291/0.7577, allocations: 69.61 kB / 0.5481 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01095/0.7687, allocations: 3.749 MB / 0.5518 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01105/0.7798, allocations: 2.61 MB / 0.5543 GB, free: 135.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00382/0.7836, allocations: 1.378 MB / 0.5557 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007904/0.7915, allocations: 7.169 MB / 0.5627 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004425/0.796, allocations: 402.3 kB / 0.563 GB, free: 130.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008768/0.7969, allocations: 395.4 kB / 0.5634 GB, free: 130.3 MB / 446.1 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.003524/0.8004, allocations: 2.014 MB / 0.5654 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006482/0.8011, allocations: 323.6 kB / 0.5657 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006112/0.8072, allocations: 3.124 MB / 0.5687 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004849/0.8121, allocations: 2.681 MB / 0.5714 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.706e-05/0.8121, allocations: 8 kB / 0.5714 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.14e-05/0.8122, allocations: 3.984 kB / 0.5714 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01548/0.8277, allocations: 8.577 MB / 0.5797 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/0.8277, allocations: 0 / 0.5797 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008802/0.8286, allocations: 187.7 kB / 0.5799 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00412/0.8328, allocations: 1.435 MB / 0.5813 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002118/0.833, allocations: 35.97 kB / 0.5814 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004922/0.8379, allocations: 5.698 MB / 0.5869 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007271/0.8387, allocations: 1.456 MB / 0.5883 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007887/0.8466, allocations: 5.305 MB / 0.5935 GB, free: 100 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008627/0.8475, allocations: 379.3 kB / 0.5939 GB, free: 99.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007037/0.8482, allocations: 31.98 kB / 0.5939 GB, free: 99.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/0.8499, allocations: 115.8 kB / 0.594 GB, free: 99.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/0.8502, allocations: 88.84 kB / 0.5941 GB, free: 99.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/0.8504, allocations: 43.98 kB / 0.5942 GB, free: 99.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003758/0.8541, allocations: 2.349 MB / 0.5965 GB, free: 97.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.8541, allocations: 4.984 kB / 0.5965 GB, free: 97.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005115/0.8593, allocations: 1.028 MB / 0.5975 GB, free: 96 MB / 446.1 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.0004576/0.8597, allocations: 183 kB / 0.5976 GB, free: 95.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007868/0.8676, allocations: 5.477 MB / 0.603 GB, free: 90.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.8676, allocations: 0 / 0.603 GB, free: 90.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00329/0.8709, allocations: 2.024 MB / 0.605 GB, free: 88.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002548/0.8735, allocations: 378.8 kB / 0.6053 GB, free: 87.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.8869, allocations: 10.95 MB / 0.616 GB, free: 76.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002958/0.8899, allocations: 3.107 MB / 0.6191 GB, free: 73.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003817/0.8938, allocations: 1.8 MB / 0.6208 GB, free: 71.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/0.8943, allocations: 227.4 kB / 0.621 GB, free: 71.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8943, allocations: 0 / 0.621 GB, free: 71.7 MB / 446.1 MB Notification: Performance of Templates: time 0.0542/0.9486, allocations: 37.13 MB / 0.6573 GB, free: 34.74 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches