Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.001581/0.001581, allocations: 111.1 kB / 20.44 MB, free: 1.203 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.001955/0.001955, allocations: 206 kB / 23.72 MB, free: 4.414 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 43.92 kB / 378.2 MB, free: 2.488 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.277, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004002/0.281, allocations: 2.318 MB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.2822, allocations: 0.5804 MB / 434.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2823, allocations: 11.94 kB / 434.5 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001779/0.2825, allocations: 39.59 kB / 434.5 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.2827, allocations: 79.33 kB / 434.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.2829, allocations: 59.86 kB / 434.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003546/0.2832, allocations: 290.7 kB / 434.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.2835, allocations: 83.36 kB / 435 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.2836, allocations: 115.6 kB / 435.1 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.2838, allocations: 123.5 kB / 435.2 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.975e-05/0.2838, allocations: 28 kB / 435.3 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.119e-05/0.2839, allocations: 24 kB / 435.3 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.741e-05/0.2839, allocations: 59.77 kB / 435.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.2841, allocations: 107.5 kB / 435.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003812/0.2844, allocations: 305 kB / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2845, allocations: 0 / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2845, allocations: 0 / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.2845, allocations: 0 / 435.8 MB, free: 2.52 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008702/0.2853, allocations: 481.7 kB / 436.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2854, allocations: 8.031 kB / 436.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/0.2854, allocations: 36.73 kB / 436.3 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.2858, allocations: 184.7 kB / 436.5 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.907e-05/0.2858, allocations: 21.03 kB / 436.5 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.2859, allocations: 32.12 kB / 436.5 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000499/0.2864, allocations: 226 kB / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.2864, allocations: 7.953 kB / 436.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.2864, allocations: 8 kB / 436.7 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.2864, allocations: 8 kB / 436.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004255/0.2869, allocations: 178.5 kB / 436.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001234/0.2881, allocations: 0.5939 MB / 437.5 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005091/0.2886, allocations: 200.6 kB / 437.7 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.2888, allocations: 111.5 kB / 437.8 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.673e-05/0.2889, allocations: 3.938 kB / 437.8 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/0.2889, allocations: 38.55 kB / 437.9 MB, free: 316 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.583e-06/0.2889, allocations: 0 / 437.9 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001831/0.2907, allocations: 0.8171 MB / 438.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/0.2908, allocations: 55.41 kB / 438.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.291, allocations: 143.9 kB / 438.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.26e-05/0.291, allocations: 29.7 kB / 438.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.2911, allocations: 144.8 kB / 439 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.437e-05/0.2912, allocations: 114.9 kB / 439.2 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.571e-05/0.2913, allocations: 53.7 kB / 439.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.2915, allocations: 326.8 kB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001838/0.2916, allocations: 71.95 kB / 439.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.2919, allocations: 119.4 kB / 439.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004082/0.2923, allocations: 207.3 kB / 439.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2923, allocations: 0 / 439.9 MB, free: 14.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005059/0.2928, allocations: 253.5 kB / 440.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.2928, allocations: 8 kB / 440.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2928, allocations: 0 / 440.2 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.2928, allocations: 4 kB / 440.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003094/0.2931, allocations: 79.83 kB / 440.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.2932, allocations: 4 kB / 440.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001286/0.2933, allocations: 11.98 kB / 440.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.2933, allocations: 15.94 kB / 440.3 MB, free: 13.75 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * 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.0001563/0.2935, allocations: 142.7 kB / 440.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.2935, allocations: 19.86 kB / 440.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.531e-05/0.2936, allocations: 29.91 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.2936, allocations: 0 / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.2936, allocations: 4 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.2936, allocations: 3.984 kB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009645/0.2946, allocations: 0.5468 MB / 441 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2946, allocations: 4 kB / 441 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003545/0.2949, allocations: 75.95 kB / 441.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.2949, allocations: 7.938 kB / 441.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.2949, allocations: 4 kB / 441.1 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.2949, allocations: 4 kB / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2949, allocations: 0 / 441.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007343/0.2957, allocations: 442.3 kB / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.2957, allocations: 23.91 kB / 441.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.2957, allocations: 8 kB / 441.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.2959, allocations: 8 kB / 441.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.2959, allocations: 27.89 kB / 441.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.296, allocations: 4 kB / 441.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.881e-05/0.296, allocations: 114.9 kB / 441.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.296, allocations: 0 / 441.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.2964, allocations: 56 kB / 441.8 MB, free: 12.17 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * 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.0001439/0.2965, allocations: 107.2 kB / 441.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004679/0.297, allocations: 192 kB / 442.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.297, allocations: 0 / 442.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.2972, allocations: 95.89 kB / 442.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.2976, allocations: 42.28 kB / 442.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.2991, allocations: 0.8279 MB / 443 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.2993, allocations: 142.5 kB / 443.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.233e-05/0.2994, allocations: 17.95 kB / 443.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.87e-05/0.2994, allocations: 23.38 kB / 443.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2994, allocations: 0 / 443.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of Templates: time 0.006283/0.3057, allocations: 2.493 MB / 445.7 MB, free: 8.215 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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: 4.521093201823533]