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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 118.5 kB / 18.41 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 190.7 kB / 21.35 MB, free: 1.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 247.1 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 47.92 kB / 358.7 MB, free: 8.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.09732, allocations: 49.43 MB / 408.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01279/0.1101, allocations: 10.71 MB / 418.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008117/0.1183, allocations: 3.872 MB / 422.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001442/0.1198, allocations: 67.81 kB / 422.8 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004385/0.1242, allocations: 2.219 MB / 425 MB, free: 5.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005081/0.1293, allocations: 1.84 MB / 426.8 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.1313, allocations: 0.7019 MB / 427.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2001/0.3314, allocations: 4.228 MB / 431.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003632/0.3351, allocations: 2.893 MB / 434.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.3385, allocations: 1.477 MB / 436.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003893/0.3424, allocations: 2.086 MB / 438.2 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001244/0.3437, allocations: 291.8 kB / 438.5 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002969/0.3466, allocations: 0.9381 MB / 439.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002821/0.3495, allocations: 1.81 MB / 441.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003968/0.3535, allocations: 2.096 MB / 443.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01108/0.3646, allocations: 6.455 MB / 449.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.3646, allocations: 0 / 449.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.3646, allocations: 0 / 449.8 MB, free: 2.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003078/0.365, allocations: 0 / 449.8 MB, free: 2.902 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01441/0.3794, allocations: 4.723 MB / 454.5 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.3794, allocations: 13.64 kB / 454.5 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008482/0.3879, allocations: 1.949 MB / 456.5 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006603/0.3946, allocations: 2.304 MB / 458.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002923/0.3949, allocations: 231.3 kB / 459 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001565/0.3965, allocations: 293.7 kB / 459.3 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02051/0.417, allocations: 9.635 MB / 468.9 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000142/0.4172, allocations: 49.03 kB / 469 MB, free: 9.465 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004468/0.4177, allocations: 150.5 kB / 469.1 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003325/0.421, allocations: 1.917 MB / 471 MB, free: 7.465 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4386, allocations: 7.628 MB / 478.7 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05887/0.4975, allocations: 37.69 MB / 0.5042 GB, free: 9.676 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/0.5084, allocations: 2.879 MB / 0.5071 GB, free: 6.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00231/0.5107, allocations: 0.8758 MB / 0.5079 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.5211, allocations: 3.776 MB / 0.5116 GB, free: 1.836 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.294e-05/0.5212, allocations: 50.77 kB / 0.5117 GB, free: 1.777 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 6.251e-06/0.5213, allocations: 8 kB / 0.5117 GB, free: 1.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.03144/0.5527, allocations: 9.236 MB / 0.5207 GB, free: 8.469 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.5529, allocations: 149 kB / 0.5208 GB, free: 8.297 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008227/0.5611, allocations: 3.929 MB / 0.5247 GB, free: 4.387 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002974/0.5615, allocations: 45.7 kB / 0.5247 GB, free: 4.336 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003203/0.5647, allocations: 3.208 MB / 0.5278 GB, free: 1.145 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008874/0.5656, allocations: 0.6325 MB / 0.5285 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002583/0.5682, allocations: 1.175 MB / 0.5296 GB, free: 15.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5684, allocations: 305.1 kB / 0.5299 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003122/0.5715, allocations: 1.577 MB / 0.5314 GB, free: 13.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006525/0.578, allocations: 5.355 MB / 0.5367 GB, free: 6.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.5882, allocations: 7.541 MB / 0.544 GB, free: 12.99 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001209/0.5884, allocations: 40 kB / 0.5441 GB, free: 12.95 MB / 462.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01382/0.6022, allocations: 6.688 MB / 0.5506 GB, free: 6.266 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.6024, allocations: 64 kB / 0.5507 GB, free: 6.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002146/0.6026, allocations: 136 kB / 0.5508 GB, free: 6.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002199/0.6028, allocations: 176.1 kB / 0.551 GB, free: 5.898 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004798/0.6077, allocations: 1.388 MB / 0.5523 GB, free: 4.508 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002814/0.608, allocations: 263 kB / 0.5526 GB, free: 4.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004407/0.6124, allocations: 287.8 kB / 0.5528 GB, free: 3.969 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009605/0.6134, allocations: 364 kB / 0.5532 GB, free: 3.613 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.00437/0.6177, allocations: 1.97 MB / 0.5551 GB, free: 1.629 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000783/0.6185, allocations: 353.7 kB / 0.5554 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002787/0.6213, allocations: 1.257 MB / 0.5567 GB, free: 8 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.737e-05/0.6214, allocations: 16.05 kB / 0.5567 GB, free: 15.99 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.6214, allocations: 4 kB / 0.5567 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.6214, allocations: 7.688 kB / 0.5567 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/0.6345, allocations: 5.754 MB / 0.5623 GB, free: 9.941 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-05/0.6346, allocations: 16 kB / 0.5623 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.6357, allocations: 279.5 kB / 0.5626 GB, free: 9.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.121e-05/0.6358, allocations: 24 kB / 0.5626 GB, free: 9.629 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.636, allocations: 55.98 kB / 0.5627 GB, free: 9.574 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.492e-05/0.636, allocations: 35.86 kB / 0.5627 GB, free: 9.539 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-05/0.636, allocations: 27.88 kB / 0.5627 GB, free: 9.512 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005073/0.6411, allocations: 3.238 MB / 0.5659 GB, free: 6.02 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001255/0.6424, allocations: 426.5 kB / 0.5663 GB, free: 5.582 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008521/0.6433, allocations: 51.98 kB / 0.5664 GB, free: 5.531 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/0.645, allocations: 58.7 kB / 0.5664 GB, free: 5.477 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.6453, allocations: 147.4 kB / 0.5666 GB, free: 5.332 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.6454, allocations: 67.98 kB / 0.5666 GB, free: 5.266 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005366/0.6508, allocations: 2.434 MB / 0.569 GB, free: 2.852 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6508, allocations: 4 kB / 0.569 GB, free: 2.848 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006035/0.6568, allocations: 0.8632 MB / 0.5698 GB, free: 1.984 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.0007561/0.6576, allocations: 211 kB / 0.57 GB, free: 1.773 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007333/0.665, allocations: 3.686 MB / 0.5736 GB, free: 14.13 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.591e-05/0.665, allocations: 4 kB / 0.5736 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001267/0.6663, allocations: 0.7299 MB / 0.5744 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/0.6702, allocations: 463.5 kB / 0.5748 GB, free: 12.96 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.021/0.6912, allocations: 9.058 MB / 0.5836 GB, free: 3.609 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006909/0.6982, allocations: 3.09 MB / 0.5867 GB, free: 500 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.6993, allocations: 283.4 kB / 0.5869 GB, free: 216 kB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6994, allocations: 0 / 0.5869 GB, free: 216 kB / 494.1 MB Notification: Performance of Templates: time 0.2733/0.9726, allocations: 51.77 MB / 0.6375 GB, free: 159.7 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.481426905025728]