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.001492/0.001492, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001492/0.001492, allocations: 208.2 kB / 24.48 MB, free: 3.977 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 2.087/2.087, allocations: 230.6 MB / 258.2 MB, free: 7.812 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.002322/0.002322, allocations: 51.92 kB / 379 MB, free: 2.605 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3727, allocations: 53.36 MB / 432.3 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.006725/0.3794, allocations: 2.313 MB / 434.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.3813, allocations: 0.5882 MB / 435.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.3815, allocations: 7.938 kB / 435.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.3818, allocations: 39.58 kB / 435.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.3821, allocations: 79.33 kB / 435.3 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002842/0.3824, allocations: 63.86 kB / 435.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.3829, allocations: 294.6 kB / 435.7 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003026/0.3832, allocations: 83.36 kB / 435.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.3834, allocations: 107.6 kB / 435.9 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002526/0.3837, allocations: 135.4 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.733e-05/0.3838, allocations: 20 kB / 436 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.309e-05/0.3838, allocations: 24 kB / 436.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.024e-05/0.3839, allocations: 51.83 kB / 436.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.3841, allocations: 111.5 kB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006106/0.3847, allocations: 308.3 kB / 436.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3847, allocations: 0 / 436.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3847, allocations: 0 / 436.5 MB, free: 2.566 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.3847, allocations: 4 kB / 436.5 MB, free: 2.562 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.001331/0.3861, allocations: 473.8 kB / 437 MB, free: 2.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/0.3861, allocations: 8.031 kB / 437 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.3862, allocations: 32.75 kB / 437 MB, free: 2.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005748/0.3868, allocations: 196.9 kB / 437.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.342e-05/0.3869, allocations: 17.03 kB / 437.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.235e-05/0.3869, allocations: 28.12 kB / 437.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008162/0.3878, allocations: 226.1 kB / 437.5 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.3878, allocations: 7.953 kB / 437.5 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.097e-05/0.3878, allocations: 8 kB / 437.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.3879, allocations: 8 kB / 437.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007675/0.3886, allocations: 178.5 kB / 437.7 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.3906, allocations: 0.59 MB / 438.3 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008767/0.3915, allocations: 206.5 kB / 438.5 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004207/0.3919, allocations: 104.8 kB / 438.6 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.3919, allocations: 11.88 kB / 438.6 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.392, allocations: 34.56 kB / 438.6 MB, free: 364 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 3.317e-06/0.392, allocations: 0 / 438.6 MB, free: 364 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.002997/0.395, allocations: 0.8092 MB / 439.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.327e-05/0.3951, allocations: 59.41 kB / 439.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.3953, allocations: 147.5 kB / 439.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.3953, allocations: 33.7 kB / 439.7 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.3955, allocations: 144.7 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.3956, allocations: 111 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3958, allocations: 57.7 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.396, allocations: 326.8 kB / 440.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003124/0.3963, allocations: 71.95 kB / 440.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003742/0.3967, allocations: 111.4 kB / 440.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007477/0.3974, allocations: 219.2 kB / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3974, allocations: 0 / 440.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009347/0.3983, allocations: 249.5 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.817e-05/0.3984, allocations: 4 kB / 440.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.3984, allocations: 4 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.3984, allocations: 4.094 kB / 440.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006116/0.399, allocations: 79.89 kB / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.399, allocations: 0 / 441 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.3993, allocations: 15.98 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.3993, allocations: 11.94 kB / 441 MB, free: 13.8 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.0002724/0.3996, allocations: 138.7 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.873e-05/0.3997, allocations: 15.91 kB / 441.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001096/0.3998, allocations: 33.89 kB / 441.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3998, allocations: 8 kB / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.3998, allocations: 0 / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3998, allocations: 0 / 441.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.4016, allocations: 0.5546 MB / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.4016, allocations: 0 / 441.8 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006547/0.4022, allocations: 75.89 kB / 441.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.4022, allocations: 0 / 441.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.4023, allocations: 12.06 kB / 441.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4023, allocations: 0 / 441.9 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.4023, allocations: 4 kB / 441.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.4035, allocations: 447.2 kB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.06e-05/0.4036, allocations: 15.86 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/0.4036, allocations: 8.062 kB / 442.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002585/0.4039, allocations: 11.98 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.565e-05/0.404, allocations: 23.91 kB / 442.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.404, allocations: 12 kB / 442.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001481/0.4042, allocations: 115.2 kB / 442.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4042, allocations: 0 / 442.5 MB, free: 12.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005713/0.4047, allocations: 60 kB / 442.6 MB, free: 12.21 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.0001845/0.4049, allocations: 103.2 kB / 442.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007393/0.4056, allocations: 188 kB / 442.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4057, allocations: 4.188 kB / 442.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.406, allocations: 91.89 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.4068, allocations: 50.64 kB / 443 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.4093, allocations: 0.8161 MB / 443.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.4095, allocations: 146.5 kB / 443.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000136/0.4096, allocations: 21.92 kB / 444 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.31e-05/0.4097, allocations: 19.44 kB / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.4097, allocations: 0 / 444 MB, free: 10.72 MB / 350.1 MB Notification: Performance of Templates: time 0.01105/0.4207, allocations: 2.489 MB / 446.5 MB, free: 8.27 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/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: 6.706792261000373]