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.001934/0.001934, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.002311/0.002311, allocations: 209.4 kB / 23.73 MB, free: 4.523 MB / 14.72 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.502/1.502, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 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 0.001536/0.001536, allocations: 43.92 kB / 378.2 MB, free: 2.445 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.275, allocations: 53.37 MB / 431.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01275/0.2878, allocations: 9.349 MB / 440.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008972/0.2968, allocations: 3.701 MB / 444.6 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.2988, allocations: 75.62 kB / 444.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005293/0.3041, allocations: 2.172 MB / 446.9 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005224/0.3093, allocations: 1.856 MB / 448.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.3112, allocations: 0.7136 MB / 449.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006489/0.3177, allocations: 4.308 MB / 453.8 MB, free: 448 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004022/0.3217, allocations: 2.458 MB / 456.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002951/0.3247, allocations: 1.487 MB / 457.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003929/0.3286, allocations: 2.259 MB / 460 MB, free: 10.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.3296, allocations: 292 kB / 460.2 MB, free: 9.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002279/0.3319, allocations: 0.8348 MB / 461.1 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002531/0.3345, allocations: 1.85 MB / 462.9 MB, free: 7.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003115/0.3376, allocations: 1.549 MB / 464.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008053/0.3456, allocations: 6.402 MB / 470.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3456, allocations: 0 / 470.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3456, allocations: 4 kB / 470.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001915/0.3458, allocations: 0 / 470.9 MB, free: 15.21 MB / 382.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.009457/0.3553, allocations: 4.605 MB / 475.5 MB, free: 10.55 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.3553, allocations: 16.02 kB / 475.5 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007606/0.3629, allocations: 1.94 MB / 477.4 MB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005849/0.3688, allocations: 2.19 MB / 479.6 MB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.369, allocations: 233.6 kB / 479.9 MB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000926/0.3699, allocations: 295.8 kB / 480.2 MB, free: 5.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01847/0.3884, allocations: 9.68 MB / 489.8 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.3885, allocations: 47.58 kB / 489.9 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004151/0.3889, allocations: 143.9 kB / 490 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00302/0.392, allocations: 1.915 MB / 491.9 MB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01613/0.4081, allocations: 7.633 MB / 499.6 MB, free: 1.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04675/0.4548, allocations: 35.24 MB / 0.5223 GB, free: 13.23 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006794/0.4616, allocations: 2.341 MB / 0.5246 GB, free: 10.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001355/0.463, allocations: 0.7949 MB / 0.5253 GB, free: 10.05 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006509/0.4695, allocations: 2.848 MB / 0.5281 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.4695, allocations: 47.16 kB / 0.5282 GB, free: 7.117 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.008e-06/0.4695, allocations: 4 kB / 0.5282 GB, free: 7.113 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2935/0.7631, allocations: 9.082 MB / 0.537 GB, free: 101.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.7631, allocations: 145.2 kB / 0.5372 GB, free: 101.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/0.7682, allocations: 3.695 MB / 0.5408 GB, free: 100.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.7684, allocations: 46.8 kB / 0.5408 GB, free: 100.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.7703, allocations: 3.236 MB / 0.544 GB, free: 97.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005848/0.7709, allocations: 0.6264 MB / 0.5446 GB, free: 97.26 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001218/0.7721, allocations: 1.185 MB / 0.5458 GB, free: 96.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.7722, allocations: 307.3 kB / 0.546 GB, free: 96.37 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002013/0.7742, allocations: 1.586 MB / 0.5476 GB, free: 95.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003333/0.7775, allocations: 5.355 MB / 0.5528 GB, free: 90.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006133/0.7836, allocations: 7.563 MB / 0.5602 GB, free: 83.57 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.974e-05/0.7837, allocations: 39.62 kB / 0.5602 GB, free: 83.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009049/0.7928, allocations: 6.643 MB / 0.5667 GB, free: 77.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.941e-05/0.7929, allocations: 64 kB / 0.5668 GB, free: 77.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.793, allocations: 132.8 kB / 0.5669 GB, free: 77.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.7931, allocations: 179.8 kB / 0.5671 GB, free: 77.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.7966, allocations: 1.394 MB / 0.5685 GB, free: 76.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001278/0.7967, allocations: 262.4 kB / 0.5687 GB, free: 76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/0.8007, allocations: 292.6 kB / 0.569 GB, free: 75.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004426/0.8011, allocations: 371.7 kB / 0.5693 GB, free: 75.37 MB / 446.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.002751/0.8039, allocations: 1.974 MB / 0.5713 GB, free: 73.63 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007/0.8046, allocations: 315.9 kB / 0.5716 GB, free: 73.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005296/0.8051, allocations: 372.4 kB / 0.5719 GB, free: 72.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.078e-05/0.8051, allocations: 16 kB / 0.5719 GB, free: 72.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-05/0.8051, allocations: 4 kB / 0.5719 GB, free: 72.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.8051, allocations: 11.91 kB / 0.572 GB, free: 72.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00718/0.8123, allocations: 4.576 MB / 0.5764 GB, free: 68.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/0.8123, allocations: 18.75 kB / 0.5764 GB, free: 68.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009112/0.8133, allocations: 280.3 kB / 0.5767 GB, free: 67.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.928e-05/0.8133, allocations: 31.98 kB / 0.5767 GB, free: 67.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.076e-05/0.8133, allocations: 48 kB / 0.5768 GB, free: 67.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-05/0.8134, allocations: 35.86 kB / 0.5768 GB, free: 67.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-05/0.8134, allocations: 33.75 kB / 0.5768 GB, free: 67.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.8164, allocations: 3.211 MB / 0.58 GB, free: 64.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008692/0.8173, allocations: 306.4 kB / 0.5803 GB, free: 63.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002765/0.8176, allocations: 51.98 kB / 0.5803 GB, free: 63.85 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.8186, allocations: 63.95 kB / 0.5804 GB, free: 63.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.8187, allocations: 151.3 kB / 0.5805 GB, free: 63.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.823e-05/0.8188, allocations: 64 kB / 0.5806 GB, free: 63.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002492/0.8213, allocations: 2.122 MB / 0.5827 GB, free: 61.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.8213, allocations: 0 / 0.5827 GB, free: 61.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004588/0.8259, allocations: 0.8432 MB / 0.5835 GB, free: 60.62 MB / 446.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.0004136/0.8263, allocations: 198.1 kB / 0.5837 GB, free: 60.42 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004644/0.831, allocations: 3.555 MB / 0.5871 GB, free: 56.91 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.636e-05/0.831, allocations: 8.062 kB / 0.5872 GB, free: 56.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007829/0.8318, allocations: 0.6821 MB / 0.5878 GB, free: 56.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002477/0.8342, allocations: 394.6 kB / 0.5882 GB, free: 55.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.845, allocations: 8.58 MB / 0.5966 GB, free: 46.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002363/0.8473, allocations: 2.556 MB / 0.5991 GB, free: 44.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003136/0.8505, allocations: 1.727 MB / 0.6008 GB, free: 42.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.8509, allocations: 219.4 kB / 0.601 GB, free: 42.44 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.8509, allocations: 0 / 0.601 GB, free: 42.44 MB / 446.1 MB Notification: Performance of Templates: time 0.04547/0.8964, allocations: 25.97 MB / 0.6263 GB, free: 17 MB / 446.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] 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.287615828681737]