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.001539/0.001539, 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.001761/0.001761, allocations: 215.8 kB / 23.75 MB, free: 4.668 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.002299/0.002299, allocations: 59.92 kB / 378.3 MB, free: 2.621 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2671, allocations: 53.35 MB / 431.6 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004403/0.2715, allocations: 2.467 MB / 434.1 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2727, allocations: 0.6271 MB / 434.7 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.2728, allocations: 4 kB / 434.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.2729, allocations: 39.59 kB / 434.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001493/0.273, allocations: 79.27 kB / 434.8 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001641/0.2732, allocations: 63.91 kB / 434.9 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003326/0.2735, allocations: 298.6 kB / 435.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.2737, allocations: 79.36 kB / 435.3 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.2738, allocations: 111.6 kB / 435.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.274, allocations: 127.4 kB / 435.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.514e-05/0.2741, allocations: 24 kB / 435.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.451e-05/0.2741, allocations: 24 kB / 435.5 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.3e-05/0.2742, allocations: 55.78 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.2743, allocations: 131.4 kB / 435.7 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003973/0.2747, allocations: 300 kB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2747, allocations: 0 / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2747, allocations: 8 kB / 436 MB, free: 2.516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.2747, allocations: 0 / 436 MB, free: 2.516 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.0007938/0.2755, allocations: 477.7 kB / 436.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2755, allocations: 8.031 kB / 436.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.844e-05/0.2756, allocations: 28.75 kB / 436.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003161/0.2759, allocations: 186.7 kB / 436.7 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.2759, allocations: 21.03 kB / 436.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.824e-05/0.276, allocations: 28.12 kB / 436.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.2764, allocations: 230 kB / 437 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.2765, allocations: 7.953 kB / 437 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.2765, allocations: 8 kB / 437 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.2765, allocations: 8 kB / 437 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004171/0.2769, allocations: 174.5 kB / 437.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001204/0.2781, allocations: 0.6947 MB / 437.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004861/0.2786, allocations: 204.2 kB / 438.1 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.2788, allocations: 108.8 kB / 438.2 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.2789, allocations: 4 kB / 438.2 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.2789, allocations: 38.5 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.292e-06/0.2789, allocations: 4 kB / 438.2 MB, free: 200 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001705/0.2806, allocations: 0.8138 MB / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.2806, allocations: 55.39 kB / 439.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.2808, allocations: 166.5 kB / 439.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/0.2808, allocations: 29.7 kB / 439.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.939e-05/0.2809, allocations: 140.8 kB / 439.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.146e-05/0.281, allocations: 107.1 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.03e-05/0.2811, allocations: 49.7 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.2813, allocations: 334.6 kB / 439.9 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.2815, allocations: 67.97 kB / 440 MB, free: 14.35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002113/0.2817, allocations: 115.3 kB / 440.1 MB, free: 14.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.2821, allocations: 211.3 kB / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.2821, allocations: 0 / 440.3 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004981/0.2826, allocations: 261.5 kB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.2826, allocations: 8 kB / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2826, allocations: 0 / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.2826, allocations: 0 / 440.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.2829, allocations: 83.89 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.2829, allocations: 4 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.2831, allocations: 8 kB / 440.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.2831, allocations: 12 kB / 440.6 MB, free: 13.63 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.0001477/0.2832, allocations: 149.7 kB / 440.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.862e-05/0.2833, allocations: 23.86 kB / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.2833, allocations: 22.66 kB / 440.8 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2834, allocations: 4 kB / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2834, allocations: 0 / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2834, allocations: 3.984 kB / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001058/0.2844, allocations: 0.6286 MB / 441.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.2844, allocations: 4 kB / 441.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003339/0.2848, allocations: 67.91 kB / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2848, allocations: 0 / 441.5 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.2848, allocations: 15.92 kB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2848, allocations: 0 / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2848, allocations: 0 / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007651/0.2856, allocations: 444.1 kB / 442 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.826e-05/0.2856, allocations: 11.91 kB / 442 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.2856, allocations: 15.98 kB / 442 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.2858, allocations: 15.88 kB / 442 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.331e-05/0.2858, allocations: 27.95 kB / 442.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.2858, allocations: 4 kB / 442.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001163/0.286, allocations: 123.5 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.286, allocations: 0 / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003133/0.2863, allocations: 60 kB / 442.3 MB, free: 11.94 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.0001355/0.2864, allocations: 103.2 kB / 442.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004575/0.2869, allocations: 192 kB / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2869, allocations: 0 / 442.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.2871, allocations: 99.83 kB / 442.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004048/0.2875, allocations: 34.8 kB / 442.7 MB, free: 11.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.289, allocations: 0.8317 MB / 443.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.2894, allocations: 0.7483 MB / 444.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.471e-05/0.2895, allocations: 21.94 kB / 444.3 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.938e-05/0.2895, allocations: 27.44 kB / 444.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2895, allocations: 0 / 444.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of Templates: time 0.006425/0.296, allocations: 2.353 MB / 446.7 MB, free: 7.488 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.609715409111232]