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.001939/0.001939, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.00204/0.00204, allocations: 161.3 kB / 24.27 MB, free: 152 kB / 18.57 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.555/1.555, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 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 1.633e-06/1.633e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.746e-05, allocations: 2.312 kB / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01454/0.01456, allocations: 10.32 MB / 282.6 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008635/0.0232, allocations: 3.794 MB / 286.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001302/0.0245, allocations: 79.56 kB / 286.5 MB, free: 3.594 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005262/0.02976, allocations: 2.383 MB / 288.9 MB, free: 1.203 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1205/0.1503, allocations: 1.914 MB / 290.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002207/0.1525, allocations: 0.7974 MB / 291.6 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00771/0.1602, allocations: 4.996 MB / 296.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005194/0.1654, allocations: 3.043 MB / 299.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004687/0.1701, allocations: 2.282 MB / 301.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003682/0.1738, allocations: 2.418 MB / 304.3 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006758/0.1745, allocations: 304.1 kB / 304.6 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.1761, allocations: 0.8709 MB / 305.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.1773, allocations: 1.944 MB / 307.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001272/0.1785, allocations: 1.211 MB / 308.7 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004578/0.1831, allocations: 6.417 MB / 315.1 MB, free: 5.133 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1831, allocations: 0 / 315.1 MB, free: 5.133 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1831, allocations: 4 kB / 315.1 MB, free: 5.129 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.677e-05/0.1832, allocations: 0 / 315.1 MB, free: 5.129 MB / 266.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.007126/0.1903, allocations: 5.443 MB / 320.5 MB, free: 15.72 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1904, allocations: 8.031 kB / 320.5 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008547/0.1989, allocations: 2.458 MB / 323 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005098/0.204, allocations: 2.013 MB / 325 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.2042, allocations: 220.1 kB / 325.2 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007074/0.205, allocations: 290.9 kB / 325.5 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01348/0.2184, allocations: 6.457 MB / 332 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.2185, allocations: 40.11 kB / 332 MB, free: 3.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003812/0.2189, allocations: 155 kB / 332.2 MB, free: 3.551 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003228/0.2221, allocations: 1.914 MB / 334.1 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.233, allocations: 3.283 MB / 337.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06158/0.2946, allocations: 47.41 MB / 384.8 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006492/0.3011, allocations: 1.725 MB / 386.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.3021, allocations: 428.2 kB / 386.9 MB, free: 11.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007303/0.3094, allocations: 2.736 MB / 389.6 MB, free: 9.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/0.3095, allocations: 46.05 kB / 389.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 4.088e-06/0.3095, allocations: 0 / 389.7 MB, free: 9.152 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.0236/0.3331, allocations: 7.837 MB / 397.5 MB, free: 1.254 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.3332, allocations: 161.4 kB / 397.7 MB, free: 1.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007261/0.3405, allocations: 4.228 MB / 401.9 MB, free: 12.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002396/0.3407, allocations: 41.7 kB / 402 MB, free: 12.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003431/0.3441, allocations: 3.557 MB / 405.5 MB, free: 9.238 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001158/0.3453, allocations: 0.6768 MB / 406.2 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00231/0.3476, allocations: 1.468 MB / 407.7 MB, free: 7.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002612/0.3479, allocations: 476.8 kB / 408.1 MB, free: 6.617 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001725/0.3496, allocations: 0.6205 MB / 408.7 MB, free: 5.992 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007533/0.3571, allocations: 6.39 MB / 415.1 MB, free: 13.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/0.3679, allocations: 7.695 MB / 422.8 MB, free: 2.766 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001811/0.3681, allocations: 40.88 kB / 422.9 MB, free: 2.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01136/0.3795, allocations: 5.059 MB / 427.9 MB, free: 13.67 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.3796, allocations: 64 kB / 428 MB, free: 13.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/0.3797, allocations: 132 kB / 428.1 MB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002147/0.3799, allocations: 180.8 kB / 428.3 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004765/0.3847, allocations: 1.398 MB / 429.7 MB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003128/0.385, allocations: 260 kB / 429.9 MB, free: 11.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0045/0.3895, allocations: 355.5 kB / 430.3 MB, free: 11.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00088/0.3904, allocations: 368 kB / 430.7 MB, free: 10.94 MB / 394.7 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.002424/0.3928, allocations: 0.7433 MB / 431.4 MB, free: 10.19 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008496/0.3937, allocations: 357.8 kB / 431.7 MB, free: 9.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000712/0.3944, allocations: 313.8 kB / 432 MB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.908e-05/0.3944, allocations: 16 kB / 432.1 MB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.3944, allocations: 7.938 kB / 432.1 MB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.555e-05/0.3944, allocations: 7.969 kB / 432.1 MB, free: 9.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.4069, allocations: 5.774 MB / 437.9 MB, free: 3.375 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.009e-05/0.407, allocations: 20 kB / 437.9 MB, free: 3.355 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00108/0.4081, allocations: 275.5 kB / 438.1 MB, free: 3.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.274e-05/0.4081, allocations: 28 kB / 438.2 MB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/0.4082, allocations: 48 kB / 438.2 MB, free: 3.012 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.743e-05/0.4082, allocations: 35.86 kB / 438.3 MB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.611e-05/0.4083, allocations: 31.88 kB / 438.3 MB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004179/0.4124, allocations: 2.595 MB / 440.9 MB, free: 0 / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/0.4136, allocations: 332.9 kB / 441.2 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000495/0.4141, allocations: 49.06 kB / 441.3 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.4154, allocations: 96.31 kB / 441.3 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.4156, allocations: 152.6 kB / 441.5 MB, free: 124.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.4158, allocations: 67.19 kB / 441.6 MB, free: 124.9 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003976/0.4197, allocations: 1.743 MB / 443.3 MB, free: 124.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4197, allocations: 0 / 443.3 MB, free: 124.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006753/0.4265, allocations: 0.9415 MB / 444.2 MB, free: 124.7 MB / 394.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 (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.0006283/0.4271, allocations: 214.9 kB / 444.5 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007441/0.4346, allocations: 2.816 MB / 447.3 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.606e-05/0.4346, allocations: 5.781 kB / 447.3 MB, free: 124.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009896/0.4356, allocations: 0.5059 MB / 447.8 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003087/0.4387, allocations: 424.1 kB / 448.2 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.4523, allocations: 7.572 MB / 455.8 MB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002542/0.4549, allocations: 2.323 MB / 458.1 MB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003158/0.458, allocations: 1.53 MB / 459.6 MB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004953/0.4585, allocations: 226.3 kB / 459.8 MB, free: 119.9 MB / 394.7 MB Notification: Performance of SimCode: time 2.414e-06/0.4585, allocations: 0 / 459.8 MB, free: 119.9 MB / 394.7 MB Notification: Performance of Templates: time 0.04344/0.502, allocations: 20.51 MB / 480.4 MB, free: 105.5 MB / 394.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_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: 6.171364250010811]