Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 110.4 kB / 16.51 MB, free: 6.707 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.001782/0.001782, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.348/1.348, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009644/0.0009644, allocations: 38.03 kB / 300 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08679/0.08777, allocations: 49.45 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.1957/0.2835, allocations: 38.65 MB / 388.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02231/0.3059, allocations: 8.488 MB / 396.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009402/0.3153, allocations: 171.3 kB / 396.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004814/0.3202, allocations: 2.202 MB / 398.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004695/0.325, allocations: 1.713 MB / 400.6 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.3266, allocations: 0.6562 MB / 401.3 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006413/0.333, allocations: 5.851 MB / 407.1 MB, free: 10.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004302/0.3373, allocations: 2.876 MB / 410 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002745/0.3401, allocations: 1.319 MB / 411.3 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00365/0.3438, allocations: 2.235 MB / 413.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001431/0.3452, allocations: 216 kB / 413.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002999/0.3482, allocations: 0.9088 MB / 414.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002266/0.3505, allocations: 1.769 MB / 416.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003349/0.3539, allocations: 2.042 MB / 418.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006707/0.3606, allocations: 6.12 MB / 424.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3606, allocations: 0 / 424.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3606, allocations: 0 / 424.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001534/0.3608, allocations: 0 / 424.6 MB, free: 9.586 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.007864/0.3687, allocations: 4.596 MB / 429.2 MB, free: 4.922 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3687, allocations: 12.03 kB / 429.2 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007022/0.3758, allocations: 1.926 MB / 431.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004301/0.3801, allocations: 2.242 MB / 433.4 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/0.3803, allocations: 233.6 kB / 433.6 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005124/0.3808, allocations: 291.8 kB / 433.9 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.3946, allocations: 9.639 MB / 443.5 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.973e-05/0.3947, allocations: 51.53 kB / 443.6 MB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003345/0.395, allocations: 143.9 kB / 443.7 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/0.3976, allocations: 1.915 MB / 445.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.4112, allocations: 7.633 MB / 453.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03694/0.4482, allocations: 37.74 MB / 491 MB, free: 5.086 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006168/0.4544, allocations: 2.894 MB / 493.9 MB, free: 2.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.4556, allocations: 0.8772 MB / 494.8 MB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005112/0.4607, allocations: 3.767 MB / 498.6 MB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.4608, allocations: 43.22 kB / 498.6 MB, free: 13.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.058e-06/0.4608, allocations: 3.984 kB / 498.6 MB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02027/0.4811, allocations: 9.018 MB / 0.4957 GB, free: 3.996 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/0.4812, allocations: 149.5 kB / 0.4959 GB, free: 3.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004836/0.486, allocations: 3.916 MB / 0.4997 GB, free: 15.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.4862, allocations: 45.7 kB / 0.4997 GB, free: 15.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002092/0.4883, allocations: 3.078 MB / 0.5027 GB, free: 12.75 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005993/0.4889, allocations: 0.6095 MB / 0.5033 GB, free: 12.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001321/0.4902, allocations: 1.167 MB / 0.5045 GB, free: 10.95 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.871e-05/0.4903, allocations: 309.1 kB / 0.5048 GB, free: 10.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.4926, allocations: 1.585 MB / 0.5063 GB, free: 9.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005113/0.4977, allocations: 5.351 MB / 0.5115 GB, free: 1.809 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007695/0.5055, allocations: 7.546 MB / 0.5189 GB, free: 8.387 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-05/0.5055, allocations: 36 kB / 0.5189 GB, free: 8.352 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009729/0.5153, allocations: 6.658 MB / 0.5254 GB, free: 1.688 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.5154, allocations: 64.94 kB / 0.5255 GB, free: 1.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001075/0.5155, allocations: 136.1 kB / 0.5256 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001448/0.5156, allocations: 176 kB / 0.5258 GB, free: 1.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1907/0.7064, allocations: 1.387 MB / 0.5272 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004133/0.7068, allocations: 263 kB / 0.5274 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004194/0.711, allocations: 281.2 kB / 0.5277 GB, free: 145.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007279/0.7118, allocations: 364.2 kB / 0.528 GB, free: 145.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003044/0.7148, allocations: 1.982 MB / 0.53 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006049/0.7155, allocations: 333.4 kB / 0.5303 GB, free: 145.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001914/0.7174, allocations: 1.248 MB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/0.7174, allocations: 17.16 kB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.7174, allocations: 1.375 kB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.7175, allocations: 7.984 kB / 0.5315 GB, free: 144.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008283/0.7257, allocations: 5.756 MB / 0.5371 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.719e-05/0.7258, allocations: 19.44 kB / 0.5372 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000963/0.7268, allocations: 276.6 kB / 0.5374 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-05/0.7268, allocations: 25.38 kB / 0.5375 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.557e-05/0.7269, allocations: 47.44 kB / 0.5375 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.842e-05/0.7269, allocations: 37.22 kB / 0.5375 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.24e-05/0.727, allocations: 35.28 kB / 0.5376 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003492/0.7305, allocations: 3.215 MB / 0.5407 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009807/0.7315, allocations: 409.3 kB / 0.5411 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003407/0.7318, allocations: 56.02 kB / 0.5412 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.7329, allocations: 60.03 kB / 0.5412 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001838/0.7331, allocations: 145.8 kB / 0.5413 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.7332, allocations: 73.45 kB / 0.5414 GB, free: 140.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003549/0.7368, allocations: 2.432 MB / 0.5438 GB, free: 139.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7368, allocations: 3.938 kB / 0.5438 GB, free: 139.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004493/0.7413, allocations: 0.8691 MB / 0.5446 GB, free: 139.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003483/0.7416, allocations: 208 kB / 0.5448 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00476/0.7464, allocations: 3.641 MB / 0.5484 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.7464, allocations: 3.781 kB / 0.5484 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008164/0.7473, allocations: 0.7292 MB / 0.5491 GB, free: 137.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.7498, allocations: 430.1 kB / 0.5495 GB, free: 137.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/0.7625, allocations: 10.5 MB / 0.5598 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/0.7648, allocations: 3.097 MB / 0.5628 GB, free: 130.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003628/0.7684, allocations: 1.766 MB / 0.5645 GB, free: 129.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004041/0.7688, allocations: 234.8 kB / 0.5647 GB, free: 128.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.7688, allocations: 0 / 0.5647 GB, free: 128.9 MB / 446.1 MB Notification: Performance of Templates: time 0.03965/0.8085, allocations: 26.16 MB / 0.5903 GB, free: 103.2 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches