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.001793/0.001793, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002587/0.002587, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.544/1.544, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001614/0.001614, allocations: 56.03 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1048, allocations: 53.33 MB / 426.8 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003957/0.1087, allocations: 2.44 MB / 429.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1099, allocations: 0.6116 MB / 429.8 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.1101, allocations: 8 kB / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.1103, allocations: 39.59 kB / 429.9 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.1104, allocations: 83.27 kB / 430 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.1106, allocations: 51.92 kB / 430 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.111, allocations: 302.6 kB / 430.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.1113, allocations: 78.95 kB / 430.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.1114, allocations: 115.6 kB / 430.5 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.1116, allocations: 119.5 kB / 430.6 MB, free: 452 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.1116, allocations: 24 kB / 430.7 MB, free: 428 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.954e-05/0.1117, allocations: 24 kB / 430.7 MB, free: 404 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1118, allocations: 59.77 kB / 430.7 MB, free: 344 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.1119, allocations: 139.3 kB / 430.9 MB, free: 204 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1993/0.3112, allocations: 292.6 kB / 431.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3112, allocations: 0 / 431.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3112, allocations: 0 / 431.2 MB, free: 8.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.596e-05/0.3113, allocations: 1.125 kB / 431.2 MB, free: 8.734 MB / 350.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.0008091/0.3121, allocations: 0.5364 MB / 431.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3121, allocations: 9.969 kB / 431.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.728e-05/0.3122, allocations: 30.5 kB / 431.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.3124, allocations: 246.4 kB / 432 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.3125, allocations: 18.41 kB / 432 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.834e-05/0.3125, allocations: 28.69 kB / 432 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.313, allocations: 226.9 kB / 432.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.313, allocations: 7.266 kB / 432.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.313, allocations: 11.17 kB / 432.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.313, allocations: 10.66 kB / 432.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004063/0.3134, allocations: 179.3 kB / 432.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.3145, allocations: 0.7534 MB / 433.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000452/0.3149, allocations: 204.9 kB / 433.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.3151, allocations: 106.5 kB / 433.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.676e-05/0.3151, allocations: 5.781 kB / 433.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.3152, allocations: 37.16 kB / 433.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.443e-06/0.3152, allocations: 1.094 kB / 433.5 MB, free: 7.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001562/0.3167, allocations: 0.9705 MB / 434.5 MB, free: 7.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/0.3167, allocations: 54.84 kB / 434.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3169, allocations: 153.9 kB / 434.7 MB, free: 6.965 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.3169, allocations: 32.81 kB / 434.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.657e-05/0.3169, allocations: 146.3 kB / 434.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.705e-05/0.317, allocations: 108.4 kB / 435 MB, free: 6.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/0.317, allocations: 52.19 kB / 435.1 MB, free: 6.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.294e-05/0.3171, allocations: 330.2 kB / 435.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001806/0.3173, allocations: 75.78 kB / 435.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.3175, allocations: 113 kB / 435.6 MB, free: 6.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003665/0.3178, allocations: 205.7 kB / 435.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3178, allocations: 1.094 kB / 435.8 MB, free: 6.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004691/0.3183, allocations: 260.1 kB / 436 MB, free: 6.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3183, allocations: 5.5 kB / 436 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3183, allocations: 1.656 kB / 436 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3184, allocations: 3.312 kB / 436 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002977/0.3187, allocations: 81.03 kB / 436.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3187, allocations: 2.625 kB / 436.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001272/0.3188, allocations: 13.31 kB / 436.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.3188, allocations: 10.88 kB / 436.1 MB, free: 6.301 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 8.659e-05/0.3189, allocations: 138.8 kB / 436.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.383e-05/0.3189, allocations: 21.02 kB / 436.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.168e-05/0.319, allocations: 26.39 kB / 436.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.319, allocations: 4.469 kB / 436.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.319, allocations: 4 kB / 436.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.319, allocations: 2.578 kB / 436.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008521/0.3199, allocations: 0.6517 MB / 437 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3199, allocations: 1.125 kB / 437 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.3202, allocations: 72.2 kB / 437 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.3202, allocations: 6.891 kB / 437.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.3202, allocations: 11.34 kB / 437.1 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.3202, allocations: 4.969 kB / 437.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3202, allocations: 5.562 kB / 437.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006739/0.3209, allocations: 452.4 kB / 437.5 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.3209, allocations: 91.14 kB / 437.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.321, allocations: 7.281 kB / 437.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.3211, allocations: 15.61 kB / 437.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.003e-05/0.3212, allocations: 18.25 kB / 437.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3212, allocations: 5.875 kB / 437.7 MB, free: 5.551 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.023e-05/0.3213, allocations: 115.9 kB / 437.8 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3213, allocations: 7.188 kB / 437.8 MB, free: 5.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.3216, allocations: 58.97 kB / 437.8 MB, free: 5.473 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 9.024e-05/0.3217, allocations: 103.7 kB / 437.9 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004554/0.3221, allocations: 188.4 kB / 438.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3221, allocations: 0 / 438.1 MB, free: 5.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.3223, allocations: 108.9 kB / 438.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004157/0.3228, allocations: 41.19 kB / 438.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.324, allocations: 0.8207 MB / 439.1 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.3242, allocations: 0.7532 MB / 439.8 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.867e-05/0.3242, allocations: 22.12 kB / 439.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.966e-05/0.3243, allocations: 21.62 kB / 439.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3243, allocations: 0 / 439.9 MB, free: 4.133 MB / 350.1 MB Notification: Performance of Templates: time 0.006269/0.3306, allocations: 2.237 MB / 442.1 MB, free: 3.957 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.682462010532618]