Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00171/0.00171, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002369/0.002369, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.548/1.548, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.105e-05/2.254e-05, allocations: 2.281 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01165/0.01167, allocations: 9.372 MB / 334.4 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008508/0.02018, allocations: 3.702 MB / 338.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001933/0.02211, allocations: 75.09 kB / 338.2 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005155/0.02727, allocations: 2.289 MB / 340.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006367/0.03364, allocations: 1.913 MB / 342.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001842/0.03548, allocations: 0.7874 MB / 343.2 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007545/0.04302, allocations: 5.001 MB / 348.2 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004398/0.04742, allocations: 2.93 MB / 351.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003817/0.05124, allocations: 2.276 MB / 353.4 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004352/0.05559, allocations: 2.389 MB / 355.8 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008299/0.05642, allocations: 300 kB / 356 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002109/0.05853, allocations: 0.8737 MB / 356.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002009/0.06054, allocations: 1.936 MB / 358.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.06237, allocations: 1.207 MB / 360.1 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007634/0.07, allocations: 6.405 MB / 366.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.07001, allocations: 4 kB / 366.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.07001, allocations: 0 / 366.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.93e-05/0.07011, allocations: 0 / 366.5 MB, free: 11.44 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.008965/0.07907, allocations: 4.668 MB / 371.1 MB, free: 6.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.07911, allocations: 11.98 kB / 371.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008543/0.08766, allocations: 2.092 MB / 373.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004549/0.09221, allocations: 2.17 MB / 375.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.09241, allocations: 229.6 kB / 375.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005821/0.09299, allocations: 291.8 kB / 375.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/0.1107, allocations: 9.695 MB / 385.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.1109, allocations: 47.58 kB / 385.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004157/0.1113, allocations: 147.9 kB / 385.8 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003328/0.1146, allocations: 1.919 MB / 387.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01667/0.1313, allocations: 7.668 MB / 395.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04476/0.176, allocations: 35.4 MB / 430.8 MB, free: 9.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007328/0.1834, allocations: 2.442 MB / 433.2 MB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001453/0.1848, allocations: 0.8013 MB / 434 MB, free: 5.762 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006483/0.1913, allocations: 2.969 MB / 437 MB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.496e-05/0.1913, allocations: 43.22 kB / 437.1 MB, free: 2.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=134): time 3.456e-06/0.1914, allocations: 0 / 437.1 MB, free: 2.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=152): time 0.02398/0.2153, allocations: 9.513 MB / 446.6 MB, free: 9.141 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.357e-05/0.2154, allocations: 153.5 kB / 446.7 MB, free: 8.957 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005282/0.2207, allocations: 3.846 MB / 450.6 MB, free: 5.105 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.2208, allocations: 53.55 kB / 450.6 MB, free: 5.051 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002364/0.2232, allocations: 3.195 MB / 453.8 MB, free: 1.824 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005812/0.2238, allocations: 0.6242 MB / 454.4 MB, free: 1.195 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001412/0.2252, allocations: 1.156 MB / 455.6 MB, free: 28 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2253, allocations: 301.1 kB / 455.9 MB, free: 15.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/0.2282, allocations: 1.612 MB / 457.5 MB, free: 14.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005855/0.2341, allocations: 5.382 MB / 462.9 MB, free: 6.836 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1653/0.3994, allocations: 7.568 MB / 470.4 MB, free: 119.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/0.3995, allocations: 38.38 kB / 470.5 MB, free: 119.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01221/0.4117, allocations: 6.686 MB / 477.2 MB, free: 117.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.4118, allocations: 63.06 kB / 477.2 MB, free: 117.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001713/0.412, allocations: 133.1 kB / 477.4 MB, free: 117.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002154/0.4122, allocations: 181.1 kB / 477.5 MB, free: 117.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.4165, allocations: 1.399 MB / 478.9 MB, free: 117.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002559/0.4167, allocations: 266.6 kB / 479.2 MB, free: 117.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004095/0.4208, allocations: 389.4 kB / 479.6 MB, free: 117.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004946/0.4213, allocations: 376 kB / 479.9 MB, free: 117.3 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.002393/0.4237, allocations: 1.972 MB / 481.9 MB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003977/0.4241, allocations: 317 kB / 482.2 MB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004382/0.4246, allocations: 368.9 kB / 482.6 MB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.4246, allocations: 15.47 kB / 482.6 MB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.4246, allocations: 3.906 kB / 482.6 MB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.135e-05/0.4246, allocations: 7.703 kB / 482.6 MB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005948/0.4306, allocations: 4.657 MB / 487.3 MB, free: 114.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.4306, allocations: 19.66 kB / 487.3 MB, free: 114.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008656/0.4314, allocations: 281.7 kB / 487.6 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.861e-05/0.4315, allocations: 27.12 kB / 487.6 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.871e-05/0.4315, allocations: 51.86 kB / 487.6 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.827e-05/0.4315, allocations: 38.77 kB / 487.7 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/0.4315, allocations: 27.53 kB / 487.7 MB, free: 114.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002818/0.4344, allocations: 3.171 MB / 490.9 MB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004444/0.4348, allocations: 345.8 kB / 491.2 MB, free: 112.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003084/0.4351, allocations: 51.53 kB / 491.3 MB, free: 112.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001311/0.4364, allocations: 110.5 kB / 491.4 MB, free: 112.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001457/0.4366, allocations: 157.1 kB / 491.5 MB, free: 112.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.956e-05/0.4367, allocations: 67.02 kB / 491.6 MB, free: 112.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002537/0.4392, allocations: 2.23 MB / 493.8 MB, free: 111.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4392, allocations: 0 / 493.8 MB, free: 111.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004032/0.4432, allocations: 0.9437 MB / 494.8 MB, free: 110.7 MB / 430.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.0003627/0.4436, allocations: 220.3 kB / 495 MB, free: 110.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004274/0.4479, allocations: 3.575 MB / 498.6 MB, free: 107.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.4479, allocations: 0 / 498.6 MB, free: 107.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007305/0.4486, allocations: 0.6879 MB / 499.2 MB, free: 106.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.4507, allocations: 400 kB / 499.6 MB, free: 106.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009543/0.4603, allocations: 8.457 MB / 0.4962 GB, free: 98.01 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002302/0.4626, allocations: 2.563 MB / 0.4987 GB, free: 95.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00309/0.4657, allocations: 1.735 MB / 0.5004 GB, free: 93.69 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004028/0.4661, allocations: 224.5 kB / 0.5006 GB, free: 93.47 MB / 430.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4661, allocations: 0 / 0.5006 GB, free: 93.47 MB / 430.1 MB Notification: Performance of Templates: time 0.04254/0.5086, allocations: 20.51 MB / 0.5206 GB, free: 73.5 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.041334956884384]