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.0006696/0.0006696, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001149/0.001819, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001282/0.001282, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00147/0.002753, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8756/0.8756, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1502/1.026, allocations: 52.48 MB / 238.5 MB, free: 7.629 MB / 234.7 MB " [Timeout remaining time 179] 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 1.162e-06/1.162e-06, allocations: 0 / 239.8 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.739e-05/1.856e-05, allocations: 2.969 kB / 239.8 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.00775/0.007768, allocations: 10.22 MB / 250 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005639/0.01341, allocations: 3.946 MB / 253.9 MB, free: 8.152 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00083/0.01424, allocations: 72.69 kB / 254 MB, free: 8.082 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002388/0.01663, allocations: 2.28 MB / 256.3 MB, free: 5.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002529/0.01915, allocations: 1.915 MB / 258.2 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008578/0.02001, allocations: 0.7367 MB / 258.9 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00329/0.0233, allocations: 4.639 MB / 263.6 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00209/0.02539, allocations: 2.651 MB / 266.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002008/0.0274, allocations: 2.439 MB / 268.7 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002048/0.02945, allocations: 2.229 MB / 270.9 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003738/0.02982, allocations: 292 kB / 271.2 MB, free: 6.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001146/0.03097, allocations: 0.9167 MB / 272.1 MB, free: 5.898 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009828/0.03195, allocations: 1.746 MB / 273.8 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008341/0.03278, allocations: 0.9892 MB / 274.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.03596, allocations: 3.976 MB / 278.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.03597, allocations: 3.938 kB / 278.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.03597, allocations: 0 / 278.8 MB, free: 15.16 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.25e-05/0.03603, allocations: 0 / 278.8 MB, free: 15.16 MB / 282.7 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.004416/0.04045, allocations: 5.095 MB / 283.9 MB, free: 10.01 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.04048, allocations: 16.02 kB / 283.9 MB, free: 9.996 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002557/0.04304, allocations: 1.169 MB / 285.1 MB, free: 8.809 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001834/0.04487, allocations: 1.7 MB / 286.8 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.04498, allocations: 221.6 kB / 287 MB, free: 6.832 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000296/0.04527, allocations: 295.8 kB / 287.3 MB, free: 6.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00497/0.05024, allocations: 4.854 MB / 292.1 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.857e-05/0.05031, allocations: 55.56 kB / 292.2 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.05053, allocations: 147.8 kB / 292.3 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001294/0.05182, allocations: 1.615 MB / 294 MB, free: 15.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003277/0.0551, allocations: 2.378 MB / 296.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/0.07744, allocations: 30.99 MB / 327.3 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.08016, allocations: 1.513 MB / 328.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.08046, allocations: 274.2 kB / 329.1 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002843/0.08331, allocations: 2.41 MB / 331.5 MB, free: 8.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.08334, allocations: 51.2 kB / 331.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 4.168e-06/0.08334, allocations: 0 / 331.6 MB, free: 8.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.008663/0.09201, allocations: 4.449 MB / 336 MB, free: 3.691 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.234e-05/0.09206, allocations: 153.5 kB / 336.2 MB, free: 3.512 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002126/0.09418, allocations: 3.07 MB / 339.2 MB, free: 444 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/0.09424, allocations: 45.7 kB / 339.3 MB, free: 392 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1011/0.1953, allocations: 3.03 MB / 342.3 MB, free: 80.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.1959, allocations: 0.6187 MB / 342.9 MB, free: 80.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.197, allocations: 1.111 MB / 344 MB, free: 80.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.485e-05/0.197, allocations: 303 kB / 344.3 MB, free: 79.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.198, allocations: 0.6644 MB / 345 MB, free: 79.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001715/0.1998, allocations: 4.326 MB / 349.3 MB, free: 75.04 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/0.2035, allocations: 6.003 MB / 355.3 MB, free: 69.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.2036, allocations: 39.62 kB / 355.4 MB, free: 69.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004612/0.2082, allocations: 3.937 MB / 359.3 MB, free: 68.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.52e-05/0.2083, allocations: 66.31 kB / 359.4 MB, free: 68.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000138/0.2084, allocations: 144 kB / 359.5 MB, free: 68.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000136/0.2086, allocations: 182.4 kB / 359.7 MB, free: 68.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/0.2109, allocations: 1.527 MB / 361.2 MB, free: 68.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001076/0.211, allocations: 263.2 kB / 361.5 MB, free: 68.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00221/0.2132, allocations: 262 kB / 361.7 MB, free: 68.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002659/0.2135, allocations: 319.8 kB / 362 MB, free: 68.69 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * 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 (747): * Single equations (assignments): 744 * 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.0009783/0.2145, allocations: 0.6069 MB / 362.6 MB, free: 68.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.2148, allocations: 208.4 kB / 362.8 MB, free: 68.35 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006662/0.2154, allocations: 0.621 MB / 363.5 MB, free: 68.27 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.2155, allocations: 16.62 kB / 363.5 MB, free: 68.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.2155, allocations: 4 kB / 363.5 MB, free: 68.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.889e-06/0.2155, allocations: 9.672 kB / 363.5 MB, free: 68.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003859/0.2193, allocations: 4.011 MB / 367.5 MB, free: 65.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.201e-05/0.2193, allocations: 25.38 kB / 367.5 MB, free: 65.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005512/0.2199, allocations: 301.2 kB / 367.8 MB, free: 65.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004123/0.2203, allocations: 320.4 kB / 368.1 MB, free: 65.24 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.514e-05/0.2203, allocations: 31.88 kB / 368.2 MB, free: 65.21 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.763e-05/0.2204, allocations: 57.47 kB / 368.2 MB, free: 65.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.34e-05/0.2204, allocations: 35.72 kB / 368.3 MB, free: 65.13 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/0.2204, allocations: 23.94 kB / 368.3 MB, free: 65.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.2215, allocations: 1.905 MB / 370.2 MB, free: 63.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002135/0.2217, allocations: 57.89 kB / 370.2 MB, free: 63.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005884/0.2223, allocations: 46.41 kB / 370.3 MB, free: 63.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.778e-05/0.2224, allocations: 152.2 kB / 370.4 MB, free: 62.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.907e-05/0.2224, allocations: 60 kB / 370.5 MB, free: 62.89 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009149/0.2234, allocations: 1.275 MB / 371.8 MB, free: 61.96 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2234, allocations: 0 / 371.8 MB, free: 61.96 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003016/0.2264, allocations: 0.9647 MB / 372.7 MB, free: 61 MB / 330.7 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 (141): * Single equations (assignments): 138 * 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.0003325/0.2267, allocations: 218.4 kB / 372.9 MB, free: 60.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.2292, allocations: 2.352 MB / 375.3 MB, free: 58.7 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001721/0.2294, allocations: 104.2 kB / 375.4 MB, free: 58.58 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004425/0.2298, allocations: 482.8 kB / 375.9 MB, free: 58.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.232, allocations: 2.755 MB / 378.6 MB, free: 54.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008178/0.2402, allocations: 7.626 MB / 386.3 MB, free: 47.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000769/0.2409, allocations: 1.149 MB / 387.4 MB, free: 45.88 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009829/0.2419, allocations: 490.7 kB / 387.9 MB, free: 45.4 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004873/0.2424, allocations: 0.5167 MB / 388.4 MB, free: 44.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.2424, allocations: 0 / 388.4 MB, free: 44.88 MB / 330.7 MB Notification: Performance of Templates: time 0.03117/0.2736, allocations: 22.7 MB / 411.1 MB, free: 22.36 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8728017481043935]