Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009161/0.0009161, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9331/0.9331, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 268 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.577e-05/2.752e-05, allocations: 10.19 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004443/0.004471, allocations: 2.466 MB / 270.4 MB, free: 3.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009514/0.005422, allocations: 0.5725 MB / 271 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.005548, allocations: 4 kB / 271 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.005704, allocations: 39.53 kB / 271.1 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.005844, allocations: 87.27 kB / 271.1 MB, free: 3.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001879/0.006032, allocations: 59.89 kB / 271.2 MB, free: 3.195 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.006309, allocations: 306.4 kB / 271.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.006487, allocations: 75.11 kB / 271.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001743/0.006662, allocations: 175.6 kB / 271.7 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.006782, allocations: 91.75 kB / 271.8 MB, free: 2.559 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.325e-05/0.006815, allocations: 24 kB / 271.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.137e-05/0.006847, allocations: 28 kB / 271.9 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.294e-05/0.00689, allocations: 55.77 kB / 271.9 MB, free: 2.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.52e-05/0.006965, allocations: 91.81 kB / 272 MB, free: 2.363 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.0072, allocations: 199.2 kB / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.007202, allocations: 0 / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.007203, allocations: 0 / 272.2 MB, free: 2.168 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.007214, allocations: 0 / 272.2 MB, free: 2.168 MB / 250.7 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.0006143/0.007828, allocations: 0.5586 MB / 272.8 MB, free: 1.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.007876, allocations: 16.92 kB / 272.8 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.949e-05/0.007945, allocations: 48.75 kB / 272.8 MB, free: 1.512 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.008175, allocations: 192.7 kB / 273 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.0082, allocations: 17.03 kB / 273 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/0.008247, allocations: 28.38 kB / 273.1 MB, free: 1.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.008505, allocations: 183.4 kB / 273.3 MB, free: 1.062 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.008521, allocations: 11.83 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.008539, allocations: 12 kB / 273.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.00855, allocations: 4 kB / 273.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.008698, allocations: 103.8 kB / 273.4 MB, free: 0.9375 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007486/0.009447, allocations: 0.6205 MB / 274 MB, free: 284 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.009743, allocations: 166.3 kB / 274.2 MB, free: 108 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.825e-05/0.009831, allocations: 75.58 kB / 274.2 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.44e-05/0.009845, allocations: 4 kB / 274.2 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.009878, allocations: 33.39 kB / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 2.104e-06/0.00988, allocations: 0 / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.000895/0.01078, allocations: 0.6625 MB / 274.9 MB, free: 15.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.01081, allocations: 55.41 kB / 275 MB, free: 15.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.01091, allocations: 203.5 kB / 275.2 MB, free: 14.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.568e-05/0.01093, allocations: 33.7 kB / 275.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.793e-05/0.011, allocations: 187.4 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.71e-05/0.01106, allocations: 107.1 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.01111, allocations: 59.36 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.01124, allocations: 0.4962 MB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.673e-05/0.01129, allocations: 35.98 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-05/0.01138, allocations: 94.42 kB / 276.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.01151, allocations: 146.6 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.01152, allocations: 0 / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0001976/0.01171, allocations: 201.4 kB / 276.5 MB, free: 13.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.01173, allocations: 10.81 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.01173, allocations: 0 / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.01175, allocations: 4 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.0119, allocations: 68 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.0119, allocations: 8 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.255e-05/0.01196, allocations: 11.98 kB / 276.6 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.01197, allocations: 8 kB / 276.6 MB, free: 13.46 MB / 266.7 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 7.98e-05/0.01205, allocations: 168.5 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.345e-05/0.01208, allocations: 35.83 kB / 276.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.01212, allocations: 25.97 kB / 276.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.01213, allocations: 3.938 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.01213, allocations: 7.938 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.01214, allocations: 3.984 kB / 276.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004673/0.0126, allocations: 0.5557 MB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.01261, allocations: 3.984 kB / 277.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.01277, allocations: 67.91 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.01277, allocations: 0 / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.01278, allocations: 8 kB / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.01278, allocations: 0 / 277.5 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.01279, allocations: 4 kB / 277.5 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.01309, allocations: 405 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.708e-05/0.01311, allocations: 23.92 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.01313, allocations: 11.98 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.794e-05/0.01319, allocations: 8 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.01323, allocations: 11.97 kB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.01324, allocations: 12 kB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.505e-05/0.01329, allocations: 150.2 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01329, allocations: 0 / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001783/0.01347, allocations: 59.94 kB / 278.2 MB, free: 11.82 MB / 266.7 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 7.481e-05/0.01355, allocations: 103.2 kB / 278.3 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001858/0.01373, allocations: 147.7 kB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.01373, allocations: 4 kB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.386e-05/0.01381, allocations: 75.59 kB / 278.5 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.01408, allocations: 47.19 kB / 278.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009824/0.01506, allocations: 0.6814 MB / 279.2 MB, free: 10.72 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.475e-05/0.01512, allocations: 88.64 kB / 279.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.887e-05/0.01516, allocations: 17.94 kB / 279.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.56e-05/0.01521, allocations: 20.5 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01521, allocations: 0 / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of Templates: time 0.003805/0.01902, allocations: 2.113 MB / 281.5 MB, free: 8.492 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9134558709338307]