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.001896/0.001896, allocations: 105.1 kB / 21.22 MB, free: 0.6797 MB / 14.72 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.00283/0.00283, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 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.523/1.523, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 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 0.00187/0.00187, allocations: 63.89 kB / 378.8 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2875, allocations: 53.36 MB / 432.1 MB, free: 7.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01357/0.3011, allocations: 10.76 MB / 442.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0088/0.3099, allocations: 3.923 MB / 446.8 MB, free: 8.348 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.3116, allocations: 75.62 kB / 446.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004919/0.3166, allocations: 2.273 MB / 449.1 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005334/0.3219, allocations: 1.844 MB / 451 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001734/0.3236, allocations: 0.7097 MB / 451.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006635/0.3303, allocations: 4.32 MB / 456 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003357/0.3336, allocations: 2.212 MB / 458.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.3362, allocations: 1.495 MB / 459.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003573/0.3398, allocations: 2.251 MB / 462 MB, free: 9.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007842/0.3406, allocations: 292 kB / 462.3 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.3431, allocations: 0.9557 MB / 463.2 MB, free: 7.844 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.3456, allocations: 1.854 MB / 465.1 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003245/0.3488, allocations: 2.077 MB / 467.2 MB, free: 3.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008329/0.3571, allocations: 6.376 MB / 473.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3571, allocations: 0 / 473.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3571, allocations: 0 / 473.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002051/0.3573, allocations: 0 / 473.5 MB, free: 13.49 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.009718/0.3671, allocations: 4.614 MB / 478.1 MB, free: 8.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.3671, allocations: 8.031 kB / 478.2 MB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007755/0.3749, allocations: 1.948 MB / 480.1 MB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005523/0.3804, allocations: 2.167 MB / 482.3 MB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002456/0.3806, allocations: 229.6 kB / 482.5 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.3816, allocations: 299.8 kB / 482.8 MB, free: 4.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01977/0.4014, allocations: 9.651 MB / 492.4 MB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001991/0.4016, allocations: 55.56 kB / 492.5 MB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001004/0.4026, allocations: 143.8 kB / 492.6 MB, free: 9.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003448/0.4061, allocations: 1.919 MB / 494.5 MB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4237, allocations: 7.641 MB / 0.4904 GB, free: 15.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05113/0.4748, allocations: 37.55 MB / 0.5271 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007295/0.4821, allocations: 2.34 MB / 0.5294 GB, free: 6.828 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.4836, allocations: 0.791 MB / 0.5301 GB, free: 6.027 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00665/0.4902, allocations: 3.101 MB / 0.5332 GB, free: 2.895 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.4903, allocations: 55.09 kB / 0.5332 GB, free: 2.832 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.667e-06/0.4903, allocations: 0 / 0.5332 GB, free: 2.832 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.2503/0.7406, allocations: 9.113 MB / 0.5421 GB, free: 98.63 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.7407, allocations: 149.7 kB / 0.5423 GB, free: 98.47 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005034/0.7457, allocations: 3.917 MB / 0.5461 GB, free: 97.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.7458, allocations: 47.98 kB / 0.5461 GB, free: 97.12 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.7472, allocations: 3.207 MB / 0.5493 GB, free: 94.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.7475, allocations: 0.6307 MB / 0.5499 GB, free: 94.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001027/0.7486, allocations: 1.172 MB / 0.551 GB, free: 93.88 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.444e-05/0.7486, allocations: 312.6 kB / 0.5513 GB, free: 93.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001991/0.7506, allocations: 1.583 MB / 0.5529 GB, free: 93.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/0.7538, allocations: 5.362 MB / 0.5581 GB, free: 87.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005619/0.7594, allocations: 7.553 MB / 0.5655 GB, free: 80.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.825e-05/0.7595, allocations: 43.94 kB / 0.5655 GB, free: 80.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.008227/0.7677, allocations: 6.691 MB / 0.5721 GB, free: 74.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.116e-05/0.7678, allocations: 60 kB / 0.5721 GB, free: 73.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.571e-05/0.7679, allocations: 136 kB / 0.5723 GB, free: 73.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.768, allocations: 176 kB / 0.5724 GB, free: 73.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003241/0.7712, allocations: 1.384 MB / 0.5738 GB, free: 72.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000123/0.7713, allocations: 263 kB / 0.574 GB, free: 72.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003327/0.7747, allocations: 297.8 kB / 0.5743 GB, free: 71.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003/0.775, allocations: 366.9 kB / 0.5747 GB, free: 71.36 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.002197/0.7772, allocations: 1.97 MB / 0.5766 GB, free: 69.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004513/0.7776, allocations: 357.3 kB / 0.5769 GB, free: 69.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005311/0.7781, allocations: 401.3 kB / 0.5773 GB, free: 68.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.7782, allocations: 19.56 kB / 0.5773 GB, free: 68.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/0.7782, allocations: 4 kB / 0.5773 GB, free: 68.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.7782, allocations: 7.969 kB / 0.5773 GB, free: 68.61 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00694/0.7851, allocations: 5.725 MB / 0.5829 GB, free: 62.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.7851, allocations: 16.22 kB / 0.5829 GB, free: 62.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008452/0.786, allocations: 279.5 kB / 0.5832 GB, free: 62.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.925e-05/0.786, allocations: 24 kB / 0.5832 GB, free: 62.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.71e-05/0.7861, allocations: 59.42 kB / 0.5833 GB, free: 62.23 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.678e-05/0.7861, allocations: 39.8 kB / 0.5833 GB, free: 62.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.7861, allocations: 27.88 kB / 0.5834 GB, free: 62.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.7888, allocations: 3.245 MB / 0.5865 GB, free: 58.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005984/0.7894, allocations: 353.5 kB / 0.5869 GB, free: 58.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.7897, allocations: 51.92 kB / 0.5869 GB, free: 58.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009957/0.7907, allocations: 63.89 kB / 0.587 GB, free: 58.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.7909, allocations: 155.3 kB / 0.5871 GB, free: 58.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.535e-05/0.7909, allocations: 68 kB / 0.5872 GB, free: 57.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002648/0.7936, allocations: 2.422 MB / 0.5895 GB, free: 55.58 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7936, allocations: 0 / 0.5895 GB, free: 55.58 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004057/0.7976, allocations: 0.8512 MB / 0.5904 GB, free: 54.73 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.0003159/0.798, allocations: 198.6 kB / 0.5906 GB, free: 54.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004673/0.8026, allocations: 3.562 MB / 0.594 GB, free: 51.01 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.8026, allocations: 0 / 0.594 GB, free: 51.01 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007616/0.8034, allocations: 0.6951 MB / 0.5947 GB, free: 50.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/0.8058, allocations: 453.7 kB / 0.5952 GB, free: 49.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.8176, allocations: 8.63 MB / 0.6036 GB, free: 40.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002465/0.82, allocations: 3.105 MB / 0.6066 GB, free: 37.83 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003213/0.8233, allocations: 1.761 MB / 0.6083 GB, free: 36.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000397/0.8237, allocations: 231.4 kB / 0.6086 GB, free: 35.83 MB / 446.1 MB Notification: Performance of SimCode: time 1.483e-06/0.8237, allocations: 4 kB / 0.6086 GB, free: 35.83 MB / 446.1 MB Notification: Performance of Templates: time 0.04825/0.8719, allocations: 27.82 MB / 0.6357 GB, free: 8.262 MB / 446.1 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.445518280379474]