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.00202/0.00202, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002417/0.002417, allocations: 212.6 kB / 23.74 MB, free: 4.672 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8.012 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.001603/0.001603, allocations: 51.92 kB / 378.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2539, allocations: 53.37 MB / 431.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01286/0.2668, allocations: 10.75 MB / 442.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008217/0.275, allocations: 3.927 MB / 446.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002559/0.2776, allocations: 71.62 kB / 446.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005151/0.2827, allocations: 2.273 MB / 448.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005128/0.2878, allocations: 1.844 MB / 450.5 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.2896, allocations: 0.7097 MB / 451.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007162/0.2968, allocations: 4.32 MB / 455.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004485/0.3012, allocations: 2.448 MB / 458 MB, free: 12.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003256/0.3045, allocations: 1.495 MB / 459.5 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004777/0.3093, allocations: 2.251 MB / 461.7 MB, free: 8.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001108/0.3104, allocations: 292 kB / 462 MB, free: 8.402 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002606/0.313, allocations: 0.9557 MB / 463 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002716/0.3157, allocations: 1.85 MB / 464.8 MB, free: 5.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003772/0.3195, allocations: 2.081 MB / 466.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009727/0.3292, allocations: 6.38 MB / 473.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.3292, allocations: 0 / 473.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3292, allocations: 0 / 473.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002646/0.3295, allocations: 0 / 473.3 MB, free: 13.09 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.01034/0.3398, allocations: 4.614 MB / 477.9 MB, free: 8.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.3399, allocations: 8.031 kB / 477.9 MB, free: 8.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007057/0.3469, allocations: 1.94 MB / 479.8 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.3519, allocations: 2.174 MB / 482 MB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.3521, allocations: 225.6 kB / 482.2 MB, free: 4.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005662/0.3526, allocations: 299.8 kB / 482.5 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01602/0.3687, allocations: 9.655 MB / 492.2 MB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.3688, allocations: 43.64 kB / 492.2 MB, free: 9.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003553/0.3691, allocations: 143.9 kB / 492.4 MB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002954/0.3721, allocations: 1.927 MB / 494.3 MB, free: 7.191 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.3875, allocations: 7.648 MB / 0.4902 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05015/0.4377, allocations: 37.54 MB / 0.5268 GB, free: 8.812 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007035/0.4447, allocations: 2.348 MB / 0.5291 GB, free: 6.426 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.4462, allocations: 0.7988 MB / 0.5299 GB, free: 5.617 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006882/0.453, allocations: 3.09 MB / 0.5329 GB, free: 2.496 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/0.4531, allocations: 55.14 kB / 0.533 GB, free: 2.434 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 4.278e-06/0.4531, allocations: 0 / 0.533 GB, free: 2.434 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2568/0.7099, allocations: 9.109 MB / 0.5419 GB, free: 98.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.7099, allocations: 149.3 kB / 0.542 GB, free: 98.19 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00469/0.7146, allocations: 3.925 MB / 0.5459 GB, free: 96.88 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.7148, allocations: 49.55 kB / 0.5459 GB, free: 96.83 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.7161, allocations: 3.208 MB / 0.549 GB, free: 94.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003675/0.7165, allocations: 0.633 MB / 0.5497 GB, free: 94.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009601/0.7174, allocations: 1.172 MB / 0.5508 GB, free: 93.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/0.7175, allocations: 304.7 kB / 0.5511 GB, free: 93.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001951/0.7194, allocations: 1.585 MB / 0.5526 GB, free: 92.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00295/0.7224, allocations: 5.362 MB / 0.5579 GB, free: 87.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005314/0.7277, allocations: 7.557 MB / 0.5653 GB, free: 79.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.732e-05/0.7278, allocations: 40 kB / 0.5653 GB, free: 79.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009119/0.7369, allocations: 6.684 MB / 0.5718 GB, free: 73.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.223e-05/0.7369, allocations: 64.19 kB / 0.5719 GB, free: 73.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.813e-05/0.737, allocations: 140 kB / 0.572 GB, free: 73.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001164/0.7371, allocations: 176 kB / 0.5722 GB, free: 73.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.7406, allocations: 1.382 MB / 0.5735 GB, free: 71.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000125/0.7407, allocations: 266.9 kB / 0.5738 GB, free: 71.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0033/0.744, allocations: 301.6 kB / 0.5741 GB, free: 71.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003063/0.7443, allocations: 364 kB / 0.5744 GB, free: 70.84 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.002051/0.7464, allocations: 1.974 MB / 0.5763 GB, free: 68.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/0.7468, allocations: 353.4 kB / 0.5767 GB, free: 68.52 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005387/0.7473, allocations: 397.3 kB / 0.5771 GB, free: 68.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.7473, allocations: 20 kB / 0.5771 GB, free: 68.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/0.7474, allocations: 4 kB / 0.5771 GB, free: 68.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.7474, allocations: 7.969 kB / 0.5771 GB, free: 68.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006308/0.7537, allocations: 5.727 MB / 0.5827 GB, free: 62.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.7537, allocations: 20 kB / 0.5827 GB, free: 62.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000876/0.7546, allocations: 279.6 kB / 0.583 GB, free: 61.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.642e-05/0.7546, allocations: 24 kB / 0.583 GB, free: 61.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.49e-05/0.7547, allocations: 52 kB / 0.583 GB, free: 61.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.65e-05/0.7547, allocations: 40.55 kB / 0.5831 GB, free: 61.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.079e-05/0.7547, allocations: 27.88 kB / 0.5831 GB, free: 61.65 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002704/0.7574, allocations: 3.245 MB / 0.5863 GB, free: 58.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005619/0.7579, allocations: 349.5 kB / 0.5866 GB, free: 57.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002939/0.7582, allocations: 51.98 kB / 0.5867 GB, free: 57.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.7593, allocations: 65.95 kB / 0.5867 GB, free: 57.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.7594, allocations: 155.1 kB / 0.5869 GB, free: 57.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.459e-05/0.7595, allocations: 71.92 kB / 0.5869 GB, free: 57.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002714/0.7622, allocations: 2.43 MB / 0.5893 GB, free: 55.06 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7622, allocations: 0 / 0.5893 GB, free: 55.06 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004547/0.7667, allocations: 0.8437 MB / 0.5901 GB, free: 54.21 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.0003085/0.767, allocations: 206.1 kB / 0.5903 GB, free: 54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004317/0.7714, allocations: 3.549 MB / 0.5938 GB, free: 50.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.7714, allocations: 0 / 0.5938 GB, free: 50.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007562/0.7721, allocations: 0.6919 MB / 0.5945 GB, free: 49.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.7745, allocations: 456.7 kB / 0.5949 GB, free: 49.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.7851, allocations: 8.636 MB / 0.6033 GB, free: 40.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002696/0.7878, allocations: 3.093 MB / 0.6064 GB, free: 37.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003419/0.7912, allocations: 1.772 MB / 0.6081 GB, free: 35.54 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005039/0.7918, allocations: 227.4 kB / 0.6083 GB, free: 35.32 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.7918, allocations: 0 / 0.6083 GB, free: 35.32 MB / 446.1 MB Notification: Performance of Templates: time 0.0516/0.8433, allocations: 27.82 MB / 0.6355 GB, free: 7.766 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.325156826991588]