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.001167/0.001167, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001322/0.001322, allocations: 192 kB / 18.62 MB, free: 4.434 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.347/1.347, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 51.83 kB / 302.1 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 49.43 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01084/0.1137, allocations: 10.7 MB / 362.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008051/0.1218, allocations: 3.872 MB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.1242, allocations: 63.81 kB / 366.1 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00421/0.1285, allocations: 2.231 MB / 368.4 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004528/0.1331, allocations: 1.832 MB / 370.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.1349, allocations: 0.7058 MB / 370.9 MB, free: 208 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1956/0.3304, allocations: 4.228 MB / 375.1 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004238/0.3347, allocations: 2.903 MB / 378 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003799/0.3385, allocations: 1.478 MB / 379.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005136/0.3437, allocations: 2.078 MB / 381.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001156/0.3449, allocations: 291.7 kB / 381.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003113/0.348, allocations: 0.9423 MB / 382.8 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003337/0.3514, allocations: 1.812 MB / 384.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003958/0.3554, allocations: 2.096 MB / 386.7 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009592/0.365, allocations: 6.424 MB / 393.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.365, allocations: 3.938 kB / 393.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.365, allocations: 0 / 393.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002012/0.3652, allocations: 3.469 kB / 393.2 MB, free: 4.672 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.008328/0.3736, allocations: 4.6 MB / 397.8 MB, free: 1.582 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.3736, allocations: 11.3 kB / 397.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006635/0.3803, allocations: 1.92 MB / 399.7 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006977/0.3873, allocations: 2.291 MB / 402 MB, free: 14.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.3876, allocations: 228.8 kB / 402.2 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009708/0.3886, allocations: 298.2 kB / 402.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.4059, allocations: 9.643 MB / 412.1 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001791/0.4061, allocations: 43.56 kB / 412.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.4071, allocations: 149.7 kB / 412.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00305/0.4102, allocations: 1.919 MB / 414.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/0.4267, allocations: 7.633 MB / 421.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04925/0.476, allocations: 37.59 MB / 459.5 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006801/0.4829, allocations: 2.889 MB / 462.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.4842, allocations: 0.8716 MB / 463.2 MB, free: 88 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006484/0.4907, allocations: 3.764 MB / 467 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.044e-05/0.4908, allocations: 55.09 kB / 467 MB, free: 12.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.486e-06/0.4908, allocations: 4 kB / 467 MB, free: 12.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02199/0.5128, allocations: 9.012 MB / 476.1 MB, free: 2.949 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5129, allocations: 153.4 kB / 476.2 MB, free: 2.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006795/0.5197, allocations: 3.913 MB / 480.1 MB, free: 14.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000144/0.5199, allocations: 45.7 kB / 480.2 MB, free: 14.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002398/0.5223, allocations: 3.079 MB / 483.2 MB, free: 11.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007103/0.523, allocations: 0.6139 MB / 483.9 MB, free: 11.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001832/0.5249, allocations: 1.163 MB / 485 MB, free: 9.965 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.525, allocations: 305.1 kB / 485.3 MB, free: 9.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002689/0.5277, allocations: 1.581 MB / 486.9 MB, free: 8.078 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005394/0.5331, allocations: 5.356 MB / 492.3 MB, free: 0.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008674/0.5418, allocations: 7.546 MB / 499.8 MB, free: 7.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.886e-05/0.5419, allocations: 47.75 kB / 499.8 MB, free: 7.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01135/0.5532, allocations: 6.652 MB / 0.4946 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.378e-05/0.5534, allocations: 67.94 kB / 0.4947 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001881/0.5536, allocations: 132 kB / 0.4948 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001801/0.5537, allocations: 180 kB / 0.495 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004077/0.5578, allocations: 1.376 MB / 0.4963 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003473/0.5582, allocations: 263 kB / 0.4966 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00407/0.5623, allocations: 290.7 kB / 0.4969 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005995/0.5629, allocations: 367.9 kB / 0.4972 GB, free: 14.08 MB / 430.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.003589/0.5665, allocations: 1.986 MB / 0.4992 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007969/0.5673, allocations: 331.7 kB / 0.4995 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002578/0.5699, allocations: 1.256 MB / 0.5007 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/0.5699, allocations: 16 kB / 0.5007 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.5699, allocations: 64 / 0.5007 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-05/0.57, allocations: 15.97 kB / 0.5007 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009432/0.5794, allocations: 5.742 MB / 0.5063 GB, free: 4.426 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/0.5794, allocations: 19.94 kB / 0.5064 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009649/0.5804, allocations: 275.5 kB / 0.5066 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.319e-05/0.5804, allocations: 27.94 kB / 0.5066 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.422e-05/0.5805, allocations: 52 kB / 0.5067 GB, free: 4.059 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.329e-05/0.5806, allocations: 35.86 kB / 0.5067 GB, free: 4.023 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-05/0.5806, allocations: 27.88 kB / 0.5068 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003715/0.5843, allocations: 3.218 MB / 0.5099 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008856/0.5852, allocations: 416.5 kB / 0.5103 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003138/0.5855, allocations: 51.42 kB / 0.5103 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.5866, allocations: 56.02 kB / 0.5104 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.5868, allocations: 147.3 kB / 0.5105 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.38e-05/0.5869, allocations: 64 kB / 0.5106 GB, free: 15.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003495/0.5904, allocations: 2.438 MB / 0.513 GB, free: 13.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.944e-06/0.5904, allocations: 0 / 0.513 GB, free: 13.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004149/0.5946, allocations: 0.8671 MB / 0.5138 GB, free: 12.5 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.0003617/0.5949, allocations: 198.8 kB / 0.514 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005535/0.6005, allocations: 3.69 MB / 0.5176 GB, free: 8.637 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/0.6005, allocations: 4 kB / 0.5176 GB, free: 8.633 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009784/0.6015, allocations: 0.7342 MB / 0.5183 GB, free: 7.902 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.604, allocations: 453.1 kB / 0.5188 GB, free: 7.465 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1705/0.7745, allocations: 8.493 MB / 0.5271 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003669/0.7782, allocations: 3.096 MB / 0.5301 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003771/0.782, allocations: 1.769 MB / 0.5318 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006292/0.7827, allocations: 234.2 kB / 0.532 GB, free: 144.6 MB / 446.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7827, allocations: 0 / 0.532 GB, free: 144.6 MB / 446.1 MB Notification: Performance of Templates: time 0.0431/0.8258, allocations: 21.9 MB / 0.5534 GB, free: 137.8 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/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