Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_3.2.3_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.001248/0.001248, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001232/0.001232, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.461/1.461, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 47.94 kB / 328.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1085, allocations: 46.63 MB / 375.2 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.217/0.3255, allocations: 10.75 MB / 385.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007232/0.3328, allocations: 3.868 MB / 389.8 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001783/0.3347, allocations: 63.44 kB / 389.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004173/0.3388, allocations: 2.235 MB / 392.1 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005117/0.344, allocations: 1.836 MB / 393.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.3456, allocations: 0.7196 MB / 394.6 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006162/0.3518, allocations: 4.268 MB / 398.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003953/0.3558, allocations: 2.922 MB / 401.8 MB, free: 36 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003317/0.3591, allocations: 1.484 MB / 403.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003697/0.3629, allocations: 2.091 MB / 405.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008993/0.3638, allocations: 291.9 kB / 405.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002577/0.3664, allocations: 0.9359 MB / 406.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002777/0.3692, allocations: 1.82 MB / 408.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003522/0.3727, allocations: 2.097 MB / 410.5 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009669/0.3824, allocations: 6.455 MB / 417 MB, free: 5.586 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3824, allocations: 0 / 417 MB, free: 5.586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3824, allocations: 0 / 417 MB, free: 5.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003051/0.3827, allocations: 0 / 417 MB, free: 5.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.01144/0.3942, allocations: 4.743 MB / 421.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3943, allocations: 15.89 kB / 421.7 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007416/0.4017, allocations: 1.944 MB / 423.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004177/0.4059, allocations: 2.399 MB / 426.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.4061, allocations: 225.6 kB / 426.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005257/0.4066, allocations: 307.7 kB / 426.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01519/0.4218, allocations: 9.631 MB / 436.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.422, allocations: 44.14 kB / 436.3 MB, free: 1.383 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006899/0.4227, allocations: 155.8 kB / 436.4 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002803/0.4255, allocations: 1.915 MB / 438.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01546/0.441, allocations: 7.629 MB / 446 MB, free: 7.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04398/0.485, allocations: 37.67 MB / 483.6 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006413/0.4914, allocations: 2.882 MB / 486.5 MB, free: 13.8 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00123/0.4927, allocations: 0.8697 MB / 487.4 MB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005379/0.4981, allocations: 3.784 MB / 491.2 MB, free: 8.934 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.4981, allocations: 47.22 kB / 491.2 MB, free: 8.875 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 3.136e-06/0.4982, allocations: 0 / 491.2 MB, free: 8.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02276/0.5209, allocations: 9.287 MB / 0.4888 GB, free: 15.49 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.5211, allocations: 145.5 kB / 0.4889 GB, free: 15.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006013/0.5271, allocations: 3.953 MB / 0.4928 GB, free: 11.38 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.5273, allocations: 49.69 kB / 0.4928 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002463/0.5298, allocations: 3.205 MB / 0.496 GB, free: 8.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006276/0.5304, allocations: 0.6397 MB / 0.4966 GB, free: 7.445 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001367/0.5318, allocations: 1.171 MB / 0.4977 GB, free: 6.262 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5319, allocations: 309.1 kB / 0.498 GB, free: 5.957 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00254/0.5345, allocations: 1.581 MB / 0.4996 GB, free: 4.371 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005015/0.5395, allocations: 5.358 MB / 0.5048 GB, free: 13.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008374/0.5479, allocations: 7.553 MB / 0.5122 GB, free: 3.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.548, allocations: 40 kB / 0.5122 GB, free: 3.641 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01117/0.5592, allocations: 6.658 MB / 0.5187 GB, free: 12.97 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.5593, allocations: 71.81 kB / 0.5188 GB, free: 12.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/0.5595, allocations: 136 kB / 0.5189 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001853/0.5597, allocations: 176.8 kB / 0.5191 GB, free: 12.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004088/0.5638, allocations: 1.384 MB / 0.5204 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002461/0.5641, allocations: 263 kB / 0.5207 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003695/0.5678, allocations: 283.7 kB / 0.521 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006026/0.5684, allocations: 372 kB / 0.5213 GB, free: 10.32 MB / 462.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.003577/0.572, allocations: 1.986 MB / 0.5233 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007625/0.5728, allocations: 353.6 kB / 0.5236 GB, free: 7.969 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002427/0.5752, allocations: 1.246 MB / 0.5248 GB, free: 6.711 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-05/0.5752, allocations: 19.98 kB / 0.5248 GB, free: 6.691 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.5753, allocations: 0 / 0.5248 GB, free: 6.691 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-05/0.5753, allocations: 15.97 kB / 0.5248 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01129/0.5866, allocations: 5.744 MB / 0.5305 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.252e-05/0.5867, allocations: 23.94 kB / 0.5305 GB, free: 0.582 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/0.5877, allocations: 272.3 kB / 0.5307 GB, free: 324 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.154e-05/0.5877, allocations: 28 kB / 0.5308 GB, free: 296 kB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.5878, allocations: 52 kB / 0.5308 GB, free: 244 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.297e-05/0.5879, allocations: 39.86 kB / 0.5308 GB, free: 204 kB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-05/0.5879, allocations: 31.94 kB / 0.5309 GB, free: 172 kB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004155/0.5921, allocations: 3.237 MB / 0.534 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.5935, allocations: 0.5336 MB / 0.5346 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007172/0.5942, allocations: 48.45 kB / 0.5346 GB, free: 12.07 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/0.5958, allocations: 55.97 kB / 0.5347 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.5961, allocations: 147.4 kB / 0.5348 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.5962, allocations: 72 kB / 0.5349 GB, free: 11.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005157/0.6014, allocations: 2.45 MB / 0.5373 GB, free: 9.371 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6014, allocations: 3.938 kB / 0.5373 GB, free: 9.367 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005426/0.6068, allocations: 0.871 MB / 0.5381 GB, free: 8.496 MB / 478.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.0005372/0.6074, allocations: 198.7 kB / 0.5383 GB, free: 8.293 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006447/0.6138, allocations: 3.698 MB / 0.5419 GB, free: 4.625 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/0.6139, allocations: 4 kB / 0.5419 GB, free: 4.621 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.615, allocations: 0.7299 MB / 0.5426 GB, free: 3.895 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003652/0.6186, allocations: 453.8 kB / 0.5431 GB, free: 3.453 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2237/0.8424, allocations: 8.669 MB / 0.5515 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004291/0.8467, allocations: 3.103 MB / 0.5546 GB, free: 145.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004848/0.8516, allocations: 1.766 MB / 0.5563 GB, free: 145.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006304/0.8522, allocations: 235.6 kB / 0.5565 GB, free: 145.1 MB / 478.1 MB Notification: Performance of SimCode: time 1.393e-06/0.8522, allocations: 0 / 0.5565 GB, free: 145.1 MB / 478.1 MB Notification: Performance of Templates: time 0.0495/0.9017, allocations: 23.89 MB / 0.5798 GB, free: 136.5 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches