Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00227/0.00227, allocations: 208.2 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.429/1.429, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001606/0.001606, allocations: 51.92 kB / 379 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.209, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01172/0.2207, allocations: 9.349 MB / 441.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007283/0.228, allocations: 3.697 MB / 445.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007284/0.2287, allocations: 75.62 kB / 445.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004148/0.2329, allocations: 2.18 MB / 447.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003721/0.2366, allocations: 1.86 MB / 449.5 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2379, allocations: 0.7058 MB / 450.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004975/0.2428, allocations: 4.316 MB / 454.5 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002781/0.2456, allocations: 2.439 MB / 457 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.2474, allocations: 1.491 MB / 458.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002699/0.2501, allocations: 2.258 MB / 460.7 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004958/0.2506, allocations: 295.9 kB / 461 MB, free: 9.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.2522, allocations: 0.8349 MB / 461.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001668/0.2539, allocations: 1.846 MB / 463.7 MB, free: 7.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001581/0.2554, allocations: 1.541 MB / 465.2 MB, free: 5.688 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006633/0.2621, allocations: 6.406 MB / 471.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2621, allocations: 0 / 471.6 MB, free: 15.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2621, allocations: 4 kB / 471.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.71e-05/0.2622, allocations: 0 / 471.6 MB, free: 15.25 MB / 382.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.00788/0.2701, allocations: 4.61 MB / 476.2 MB, free: 10.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.2701, allocations: 8.031 kB / 476.2 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007331/0.2774, allocations: 1.952 MB / 478.2 MB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004734/0.2822, allocations: 2.178 MB / 480.4 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.2823, allocations: 229.6 kB / 480.6 MB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005491/0.2829, allocations: 299.8 kB / 480.9 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01509/0.298, allocations: 9.676 MB / 490.6 MB, free: 11.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.2981, allocations: 47.58 kB / 490.6 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003802/0.2985, allocations: 151.8 kB / 490.8 MB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002978/0.3015, allocations: 1.919 MB / 492.7 MB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.3165, allocations: 7.641 MB / 0.4886 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04341/0.3599, allocations: 35.23 MB / 0.523 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006986/0.3669, allocations: 2.34 MB / 0.5253 GB, free: 10.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001338/0.3682, allocations: 0.7988 MB / 0.5261 GB, free: 10.08 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006201/0.3744, allocations: 2.84 MB / 0.5288 GB, free: 7.215 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.3745, allocations: 51.16 kB / 0.5289 GB, free: 7.156 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.947e-06/0.3745, allocations: 0 / 0.5289 GB, free: 7.156 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2065/0.581, allocations: 9.096 MB / 0.5378 GB, free: 100.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.581, allocations: 147.8 kB / 0.5379 GB, free: 100.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004345/0.5853, allocations: 3.692 MB / 0.5415 GB, free: 99.51 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001405/0.5855, allocations: 47.2 kB / 0.5416 GB, free: 99.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001451/0.5869, allocations: 3.237 MB / 0.5447 GB, free: 97.37 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.5873, allocations: 0.6301 MB / 0.5453 GB, free: 96.92 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/0.5884, allocations: 1.18 MB / 0.5465 GB, free: 96.33 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.569e-05/0.5884, allocations: 308.4 kB / 0.5468 GB, free: 96.03 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00194/0.5903, allocations: 1.584 MB / 0.5483 GB, free: 95.56 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/0.5933, allocations: 5.364 MB / 0.5536 GB, free: 89.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005271/0.5986, allocations: 7.556 MB / 0.5609 GB, free: 83.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-05/0.5986, allocations: 37.69 kB / 0.561 GB, free: 83.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.007682/0.6063, allocations: 6.645 MB / 0.5675 GB, free: 77.37 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.956e-05/0.6064, allocations: 62.97 kB / 0.5675 GB, free: 77.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.067e-05/0.6065, allocations: 136 kB / 0.5677 GB, free: 77.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001166/0.6066, allocations: 176.8 kB / 0.5678 GB, free: 77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/0.6099, allocations: 1.387 MB / 0.5692 GB, free: 75.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001191/0.61, allocations: 262.5 kB / 0.5694 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003129/0.6132, allocations: 287.4 kB / 0.5697 GB, free: 75.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00029/0.6135, allocations: 374.1 kB / 0.5701 GB, free: 74.93 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.001924/0.6154, allocations: 1.974 MB / 0.572 GB, free: 73.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003296/0.6157, allocations: 325.2 kB / 0.5723 GB, free: 72.85 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004948/0.6162, allocations: 365.8 kB / 0.5727 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.962e-05/0.6162, allocations: 19.52 kB / 0.5727 GB, free: 72.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.045e-05/0.6162, allocations: 0 / 0.5727 GB, free: 72.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.6163, allocations: 7.969 kB / 0.5727 GB, free: 72.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.6222, allocations: 4.583 MB / 0.5772 GB, free: 67.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.6222, allocations: 23.98 kB / 0.5772 GB, free: 67.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009067/0.6232, allocations: 276.3 kB / 0.5774 GB, free: 67.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.594e-05/0.6232, allocations: 24 kB / 0.5775 GB, free: 67.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.739e-05/0.6232, allocations: 55.31 kB / 0.5775 GB, free: 67.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.727e-05/0.6233, allocations: 35.86 kB / 0.5776 GB, free: 67.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.995e-05/0.6233, allocations: 27.88 kB / 0.5776 GB, free: 67.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.6259, allocations: 3.22 MB / 0.5807 GB, free: 63.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004242/0.6264, allocations: 305.7 kB / 0.581 GB, free: 63.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/0.6266, allocations: 47.98 kB / 0.5811 GB, free: 63.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.6277, allocations: 67.61 kB / 0.5811 GB, free: 63.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.6278, allocations: 155.3 kB / 0.5813 GB, free: 63.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.612e-05/0.6279, allocations: 64 kB / 0.5813 GB, free: 63.09 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002096/0.63, allocations: 2.114 MB / 0.5834 GB, free: 60.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.63, allocations: 0 / 0.5834 GB, free: 60.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003602/0.6336, allocations: 0.8468 MB / 0.5842 GB, free: 60.14 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.0002729/0.6339, allocations: 202.2 kB / 0.5844 GB, free: 59.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003903/0.6378, allocations: 3.547 MB / 0.5879 GB, free: 56.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6378, allocations: 8.062 kB / 0.5879 GB, free: 56.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007232/0.6385, allocations: 0.6894 MB / 0.5886 GB, free: 55.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.6406, allocations: 395.1 kB / 0.5889 GB, free: 55.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008942/0.6495, allocations: 8.576 MB / 0.5973 GB, free: 46.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002285/0.6518, allocations: 2.556 MB / 0.5998 GB, free: 43.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002934/0.6547, allocations: 1.723 MB / 0.6015 GB, free: 42.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003397/0.6551, allocations: 227.3 kB / 0.6017 GB, free: 41.96 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6551, allocations: 0 / 0.6017 GB, free: 41.96 MB / 446.1 MB Notification: Performance of Templates: time 0.04154/0.6966, allocations: 25.96 MB / 0.6271 GB, free: 16.53 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.692544392994023]