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.002027/0.002027, allocations: 96.25 kB / 20.96 MB, free: 3.469 MB / 18.57 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.002466/0.002466, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 18.57 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.504/1.504, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 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.823e-06/1.823e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.879e-05/3.062e-05, allocations: 6.312 kB / 272.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01371/0.01374, allocations: 9.354 MB / 281.6 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008666/0.02241, allocations: 3.709 MB / 285.3 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.02365, allocations: 71.69 kB / 285.3 MB, free: 4.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005033/0.02868, allocations: 2.32 MB / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005428/0.03411, allocations: 1.913 MB / 289.6 MB, free: 340 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1104/0.1445, allocations: 0.7918 MB / 290.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005875/0.1504, allocations: 5.005 MB / 295.4 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003971/0.1543, allocations: 3.025 MB / 298.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.1578, allocations: 2.275 MB / 300.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00303/0.1608, allocations: 2.387 MB / 303.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006059/0.1614, allocations: 298.8 kB / 303.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.1629, allocations: 0.8835 MB / 304.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001262/0.1641, allocations: 1.931 MB / 306.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001353/0.1655, allocations: 1.2 MB / 307.4 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005115/0.1706, allocations: 6.409 MB / 313.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1706, allocations: 0 / 313.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1706, allocations: 0.5312 kB / 313.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001514/0.1707, allocations: 0.625 kB / 313.8 MB, free: 6.312 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.006949/0.1777, allocations: 4.674 MB / 318.5 MB, free: 1.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1777, allocations: 15.98 kB / 318.5 MB, free: 1.676 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007827/0.1856, allocations: 2.548 MB / 321 MB, free: 15.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004744/0.1903, allocations: 2.189 MB / 323.2 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.1905, allocations: 222.7 kB / 323.4 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005938/0.1911, allocations: 300.9 kB / 323.7 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01858/0.2097, allocations: 9.696 MB / 333.4 MB, free: 2.395 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.2098, allocations: 48.7 kB / 333.5 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004091/0.2102, allocations: 151.5 kB / 333.6 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/0.2134, allocations: 1.917 MB / 335.5 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01637/0.2298, allocations: 7.669 MB / 343.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04897/0.2787, allocations: 35.49 MB / 378.7 MB, free: 4.742 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007129/0.2859, allocations: 2.44 MB / 381.1 MB, free: 2.281 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001466/0.2873, allocations: 0.7913 MB / 381.9 MB, free: 1.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006783/0.2941, allocations: 2.98 MB / 384.9 MB, free: 14.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.2942, allocations: 46.59 kB / 384.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 3.547e-06/0.2942, allocations: 0 / 384.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.02543/0.3196, allocations: 9.573 MB / 394.5 MB, free: 4.848 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.3197, allocations: 149.5 kB / 394.7 MB, free: 4.668 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/0.3258, allocations: 3.838 MB / 398.5 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001938/0.326, allocations: 45.7 kB / 398.5 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003186/0.3292, allocations: 3.201 MB / 401.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007511/0.3299, allocations: 0.625 MB / 402.4 MB, free: 12.97 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001649/0.3316, allocations: 1.155 MB / 403.5 MB, free: 11.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.3318, allocations: 305.1 kB / 403.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003013/0.3348, allocations: 1.604 MB / 405.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007543/0.3423, allocations: 5.383 MB / 410.8 MB, free: 2.684 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.3544, allocations: 7.573 MB / 418.4 MB, free: 9.258 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001304/0.3545, allocations: 44 kB / 418.4 MB, free: 9.215 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01455/0.3691, allocations: 7.005 MB / 425.4 MB, free: 2.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.559e-05/0.3692, allocations: 60 kB / 425.5 MB, free: 2.148 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/0.3693, allocations: 136 kB / 425.6 MB, free: 2.016 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00021/0.3695, allocations: 180 kB / 425.8 MB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004387/0.3739, allocations: 1.4 MB / 427.2 MB, free: 448 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002567/0.3742, allocations: 263.3 kB / 427.5 MB, free: 184 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003982/0.3782, allocations: 394.8 kB / 427.8 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005269/0.3787, allocations: 368 kB / 428.2 MB, free: 15.43 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.003148/0.3818, allocations: 1.97 MB / 430.2 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007372/0.3826, allocations: 369.8 kB / 430.5 MB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007243/0.3833, allocations: 369.8 kB / 430.9 MB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.802e-05/0.3833, allocations: 16 kB / 430.9 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.3833, allocations: 0 / 430.9 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3834, allocations: 7.969 kB / 430.9 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008988/0.3923, allocations: 4.667 MB / 435.6 MB, free: 7.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.73e-05/0.3924, allocations: 20 kB / 435.6 MB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.3934, allocations: 279.5 kB / 435.9 MB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.154e-05/0.3934, allocations: 24 kB / 435.9 MB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.3935, allocations: 47.98 kB / 435.9 MB, free: 7.426 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.59e-05/0.3936, allocations: 43.8 kB / 436 MB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.078e-05/0.3936, allocations: 35.88 kB / 436 MB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004685/0.3983, allocations: 3.215 MB / 439.2 MB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007125/0.399, allocations: 337.7 kB / 439.6 MB, free: 3.543 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.3993, allocations: 47.98 kB / 439.6 MB, free: 3.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.4006, allocations: 119.8 kB / 439.7 MB, free: 3.383 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.4008, allocations: 151.3 kB / 439.9 MB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/0.401, allocations: 67.98 kB / 440 MB, free: 3.168 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003667/0.4046, allocations: 2.235 MB / 442.2 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4046, allocations: 0 / 442.2 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004461/0.4091, allocations: 0.9374 MB / 443.1 MB, free: 4 kB / 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.1187/0.5278, allocations: 208.2 kB / 443.3 MB, free: 130.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005988/0.5338, allocations: 3.571 MB / 446.9 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/0.5338, allocations: 2.75 kB / 446.9 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009622/0.5348, allocations: 0.6918 MB / 447.6 MB, free: 129.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002516/0.5373, allocations: 417.1 kB / 448 MB, free: 129.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.5502, allocations: 8.592 MB / 456.6 MB, free: 125.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/0.553, allocations: 2.56 MB / 459.2 MB, free: 124.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00326/0.5563, allocations: 1.736 MB / 460.9 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004594/0.5568, allocations: 229.1 kB / 461.1 MB, free: 124.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.5568, allocations: 0 / 461.1 MB, free: 124.6 MB / 394.7 MB Notification: Performance of Templates: time 0.04/0.5967, allocations: 20.67 MB / 481.8 MB, free: 111.1 MB / 394.7 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.1820574960438535]