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.0008602/0.0008603, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.0009417/0.0009422, allocations: 184.3 kB / 17.57 MB, free: 6.199 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.43/1.43, allocations: 223.3 MB / 241.6 MB, free: 14.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002527/0.0002527, allocations: 12.78 kB / 301.4 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09366, allocations: 50.41 MB / 351.8 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2079/0.3016, allocations: 45.71 MB / 397.6 MB, free: 80 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02499/0.3267, allocations: 9.89 MB / 407.4 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008435/0.3352, allocations: 198.6 kB / 407.6 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.3366, allocations: 460 kB / 408.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004546/0.3411, allocations: 1.845 MB / 409.9 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.3427, allocations: 0.7518 MB / 410.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007033/0.3497, allocations: 6.492 MB / 417.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006103/0.3558, allocations: 4.922 MB / 422.1 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001796/0.3577, allocations: 1.276 MB / 423.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002472/0.3601, allocations: 2.207 MB / 425.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003441/0.3605, allocations: 160 kB / 425.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.3626, allocations: 1.162 MB / 426.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.3642, allocations: 1.92 MB / 428.8 MB, free: 7.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.3661, allocations: 2.198 MB / 431 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006908/0.373, allocations: 7 MB / 438 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.373, allocations: 3.938 kB / 438 MB, free: 13.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.373, allocations: 0 / 438 MB, free: 13.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001818/0.3732, allocations: 0 / 438 MB, free: 13.95 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.009383/0.3826, allocations: 4.318 MB / 442.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.3827, allocations: 16.03 kB / 442.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00787/0.3905, allocations: 2.159 MB / 444.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003834/0.3944, allocations: 2.493 MB / 447 MB, free: 4.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002134/0.3946, allocations: 274.8 kB / 447.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008753/0.3955, allocations: 431.6 kB / 447.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0205/0.416, allocations: 12.24 MB / 459.9 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.4162, allocations: 51.47 kB / 460 MB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004308/0.4166, allocations: 187.8 kB / 460.2 MB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003121/0.4197, allocations: 2.166 MB / 462.3 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02111/0.4408, allocations: 10.23 MB / 472.6 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05266/0.4935, allocations: 44.3 MB / 0.5048 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/0.5053, allocations: 4.61 MB / 0.5093 GB, free: 8.074 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002641/0.508, allocations: 1.731 MB / 0.5109 GB, free: 6.336 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01292/0.521, allocations: 8.234 MB / 0.519 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.5211, allocations: 55.81 kB / 0.519 GB, free: 13.66 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.971e-06/0.5211, allocations: 0 / 0.519 GB, free: 13.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2476/0.7686, allocations: 15.92 MB / 0.5346 GB, free: 151.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001115/0.7698, allocations: 1.597 MB / 0.5361 GB, free: 150.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007763/0.7776, allocations: 4.199 MB / 0.5402 GB, free: 149.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004246/0.778, allocations: 57.17 kB / 0.5403 GB, free: 149.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/0.7804, allocations: 3.402 MB / 0.5436 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001315/0.7817, allocations: 0.804 MB / 0.5444 GB, free: 146.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000951/0.7827, allocations: 0.5754 MB / 0.545 GB, free: 146 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.7827, allocations: 306.2 kB / 0.5453 GB, free: 145.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004005/0.7868, allocations: 2.266 MB / 0.5475 GB, free: 145 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005392/0.7922, allocations: 6.396 MB / 0.5537 GB, free: 138.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009646/0.8018, allocations: 9.32 MB / 0.5628 GB, free: 130.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001779/0.802, allocations: 41.88 kB / 0.5629 GB, free: 130.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02364/0.8257, allocations: 10.06 MB / 0.5727 GB, free: 127.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.8258, allocations: 66.06 kB / 0.5728 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01036/0.8362, allocations: 3.794 MB / 0.5765 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01001/0.8462, allocations: 2.168 MB / 0.5786 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005008/0.8513, allocations: 1.587 MB / 0.5801 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007293/0.8586, allocations: 6.056 MB / 0.586 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006633/0.8653, allocations: 435.4 kB / 0.5865 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001422/0.8668, allocations: 417.1 kB / 0.5869 GB, free: 112.8 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.004328/0.8711, allocations: 2.214 MB / 0.589 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.8721, allocations: 371.2 kB / 0.5894 GB, free: 110.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005716/0.8779, allocations: 3.293 MB / 0.5926 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004394/0.8823, allocations: 2.749 MB / 0.5953 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/0.8823, allocations: 0 / 0.5953 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.811e-05/0.8824, allocations: 15.95 kB / 0.5953 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01745/0.8998, allocations: 10.35 MB / 0.6054 GB, free: 93.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.587e-05/0.8999, allocations: 13.44 kB / 0.6054 GB, free: 93.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001394/0.9013, allocations: 363.5 kB / 0.6057 GB, free: 93.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002655/0.904, allocations: 0.9884 MB / 0.6067 GB, free: 92.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/0.9042, allocations: 63.97 kB / 0.6068 GB, free: 92.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003893/0.9081, allocations: 4.593 MB / 0.6113 GB, free: 87.26 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006812/0.9088, allocations: 1.475 MB / 0.6127 GB, free: 85.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008027/0.9168, allocations: 5.907 MB / 0.6185 GB, free: 79.53 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/0.9183, allocations: 448 kB / 0.6189 GB, free: 79.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004833/0.9188, allocations: 56.84 kB / 0.619 GB, free: 79.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/0.9205, allocations: 147.8 kB / 0.6191 GB, free: 78.87 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000309/0.9208, allocations: 173.4 kB / 0.6193 GB, free: 78.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/0.9209, allocations: 79.97 kB / 0.6193 GB, free: 78.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003335/0.9243, allocations: 2.589 MB / 0.6219 GB, free: 76.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9243, allocations: 0 / 0.6219 GB, free: 76.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005826/0.9301, allocations: 1.167 MB / 0.623 GB, free: 74.86 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.0005306/0.9307, allocations: 228 kB / 0.6232 GB, free: 74.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008919/0.9396, allocations: 5.972 MB / 0.6291 GB, free: 68.64 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/0.9396, allocations: 4 kB / 0.6291 GB, free: 68.63 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003438/0.9431, allocations: 2.184 MB / 0.6312 GB, free: 66.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009986/0.9531, allocations: 486.1 kB / 0.6317 GB, free: 65.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.9697, allocations: 13.11 MB / 0.6445 GB, free: 52.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004077/0.9738, allocations: 3.447 MB / 0.6478 GB, free: 49.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004585/0.9784, allocations: 2.022 MB / 0.6498 GB, free: 47.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007221/0.9792, allocations: 275.4 kB / 0.6501 GB, free: 46.8 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9792, allocations: 0 / 0.6501 GB, free: 46.8 MB / 446.1 MB Notification: Performance of Templates: time 0.06577/1.045, allocations: 40.18 MB / 0.6893 GB, free: 6.824 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