Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001156/0.001156, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001201/0.001201, allocations: 171.6 kB / 25.33 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9708/0.9708, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.883e-06/1.883e-06, allocations: 0 / 251.1 MB, free: 7.508 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.833e-05/3.022e-05, allocations: 2.312 kB / 251.1 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.009944/0.009974, allocations: 10.45 MB / 261.5 MB, free: 13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.008344/0.01832, allocations: 3.819 MB / 265.3 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.02028, allocations: 71.62 kB / 265.4 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003645/0.02393, allocations: 2.398 MB / 267.8 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004867/0.02879, allocations: 1.963 MB / 269.8 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.03057, allocations: 0.8031 MB / 270.6 MB, free: 3.918 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005495/0.03607, allocations: 4.907 MB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00441/0.04048, allocations: 3.064 MB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004262/0.04474, allocations: 2.315 MB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003633/0.04837, allocations: 2.428 MB / 283.3 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.04952, allocations: 300 kB / 283.6 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001758/0.05128, allocations: 0.901 MB / 284.5 MB, free: 5.938 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002114/0.0534, allocations: 1.983 MB / 286.5 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002186/0.05558, allocations: 1.23 MB / 287.7 MB, free: 2.715 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005875/0.06146, allocations: 4.316 MB / 292 MB, free: 14.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.06146, allocations: 4 kB / 292 MB, free: 14.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.06147, allocations: 3.984 kB / 292 MB, free: 14.37 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002521/0.06172, allocations: 0 / 292 MB, free: 14.37 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.008548/0.07027, allocations: 5.094 MB / 297.1 MB, free: 9.211 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.07032, allocations: 15.98 kB / 297.1 MB, free: 9.195 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005331/0.07565, allocations: 2.455 MB / 299.6 MB, free: 6.734 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003579/0.07923, allocations: 2.045 MB / 301.6 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001998/0.07943, allocations: 229.6 kB / 301.8 MB, free: 4.414 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000497/0.07993, allocations: 291.8 kB / 302.1 MB, free: 4.129 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009554/0.08948, allocations: 6.043 MB / 308.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.08961, allocations: 51.58 kB / 308.2 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004242/0.09004, allocations: 143.9 kB / 308.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001846/0.09188, allocations: 1.923 MB / 310.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008039/0.09992, allocations: 2.996 MB / 313.3 MB, free: 7.906 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1986/0.2985, allocations: 44.09 MB / 357.4 MB, free: 59.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003335/0.3018, allocations: 1.688 MB / 359.1 MB, free: 59.7 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005529/0.3024, allocations: 386.1 kB / 359.4 MB, free: 59.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003642/0.306, allocations: 2.687 MB / 362.1 MB, free: 58.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.306, allocations: 51.42 kB / 362.2 MB, free: 58.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=134): time 3.226e-06/0.306, allocations: 0 / 362.2 MB, free: 58.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=152): time 0.01226/0.3183, allocations: 7.738 MB / 369.9 MB, free: 56.09 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.3183, allocations: 155.5 kB / 370.1 MB, free: 55.94 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003206/0.3215, allocations: 3.453 MB / 373.5 MB, free: 55.41 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.019e-05/0.3216, allocations: 50.38 kB / 373.6 MB, free: 55.38 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001276/0.3229, allocations: 3.373 MB / 376.9 MB, free: 53.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004165/0.3233, allocations: 0.642 MB / 377.6 MB, free: 52.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008716/0.3242, allocations: 1.257 MB / 378.8 MB, free: 51.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.693e-05/0.3242, allocations: 480.7 kB / 379.3 MB, free: 51.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007959/0.325, allocations: 0.5476 MB / 379.9 MB, free: 50.98 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.3271, allocations: 6.14 MB / 386 MB, free: 42.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004273/0.3314, allocations: 7.387 MB / 393.4 MB, free: 33.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.75e-05/0.3315, allocations: 43.61 kB / 393.4 MB, free: 33.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.00662/0.3381, allocations: 4.94 MB / 398.4 MB, free: 28.51 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/0.3382, allocations: 64 kB / 398.4 MB, free: 28.45 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.954e-05/0.3383, allocations: 132 kB / 398.6 MB, free: 28.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.349e-05/0.3384, allocations: 180 kB / 398.7 MB, free: 28.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/0.3406, allocations: 1.384 MB / 400.1 MB, free: 26.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001279/0.3407, allocations: 264.4 kB / 400.4 MB, free: 26.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/0.3433, allocations: 363.6 kB / 400.7 MB, free: 26.14 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.3435, allocations: 364.5 kB / 401.1 MB, free: 25.79 MB / 330.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.0009988/0.3445, allocations: 0.6649 MB / 401.7 MB, free: 25.11 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/0.3449, allocations: 361.8 kB / 402.1 MB, free: 24.76 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008324/0.3457, allocations: 0.7708 MB / 402.9 MB, free: 23.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.343e-05/0.3457, allocations: 17.17 kB / 402.9 MB, free: 23.96 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.3457, allocations: 4 kB / 402.9 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3457, allocations: 3.984 kB / 402.9 MB, free: 23.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005059/0.3508, allocations: 4.915 MB / 407.8 MB, free: 18.69 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.3508, allocations: 20 kB / 407.8 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004927/0.3513, allocations: 278.3 kB / 408.1 MB, free: 18.4 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.335e-05/0.3513, allocations: 24 kB / 408.1 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/0.3514, allocations: 53.62 kB / 408.2 MB, free: 18.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-05/0.3514, allocations: 35.86 kB / 408.2 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.3514, allocations: 31.88 kB / 408.2 MB, free: 18.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.3529, allocations: 2.479 MB / 410.7 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005416/0.3535, allocations: 449.6 kB / 411.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.3537, allocations: 51.92 kB / 411.2 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006508/0.3543, allocations: 107.9 kB / 411.3 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.3544, allocations: 149.1 kB / 411.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.397e-05/0.3545, allocations: 74.88 kB / 411.5 MB, free: 14.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001328/0.3558, allocations: 1.498 MB / 413 MB, free: 13.13 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3558, allocations: 2.078 kB / 413 MB, free: 13.13 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003132/0.3589, allocations: 0.9686 MB / 414 MB, free: 12.16 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 (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.0003645/0.3593, allocations: 229.4 kB / 414.2 MB, free: 11.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.3623, allocations: 2.514 MB / 416.7 MB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.3623, allocations: 0 / 416.7 MB, free: 9.438 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004002/0.3627, allocations: 464.8 kB / 417.2 MB, free: 8.988 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.3641, allocations: 418.3 kB / 417.6 MB, free: 8.602 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008506/0.3726, allocations: 7.541 MB / 425.1 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001036/0.3737, allocations: 1.164 MB / 426.3 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002459/0.3761, allocations: 1.527 MB / 427.8 MB, free: 13.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004/0.3765, allocations: 228.5 kB / 428.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of SimCode: time 2.354e-06/0.3765, allocations: 0 / 428.1 MB, free: 13.72 MB / 346.7 MB Notification: Performance of Templates: time 0.03716/0.4137, allocations: 21.12 MB / 449.2 MB, free: 8.723 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.028709995094687]