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.0009502/0.0009502, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.001011/0.001011, allocations: 143.6 kB / 24.97 MB, free: 8.359 MB / 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.8987/0.8987, allocations: 173.4 MB / 201.5 MB, free: 9.344 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.472e-06/1.472e-06, allocations: 0 / 268 MB, free: 6.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.818e-05/1.966e-05, allocations: 6.25 kB / 268.1 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002622/0.002642, allocations: 2.461 MB / 270.5 MB, free: 4.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007638/0.003406, allocations: 0.5764 MB / 271.1 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.003509, allocations: 4 kB / 271.1 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.003637, allocations: 43.58 kB / 271.1 MB, free: 3.656 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001199/0.003757, allocations: 83.2 kB / 271.2 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.003891, allocations: 55.92 kB / 271.3 MB, free: 3.52 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002273/0.004118, allocations: 310.4 kB / 271.6 MB, free: 3.215 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.004266, allocations: 75.11 kB / 271.6 MB, free: 3.141 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.004412, allocations: 179.6 kB / 271.8 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.004515, allocations: 87.77 kB / 271.9 MB, free: 2.879 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.004547, allocations: 24 kB / 271.9 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.865e-05/0.004576, allocations: 24 kB / 272 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.808e-05/0.004624, allocations: 63.73 kB / 272 MB, free: 2.77 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.645e-05/0.004691, allocations: 87.83 kB / 272.1 MB, free: 2.684 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.004894, allocations: 199.2 kB / 272.3 MB, free: 2.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.004896, allocations: 0 / 272.3 MB, free: 2.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.004896, allocations: 0 / 272.3 MB, free: 2.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.0049, allocations: 4 kB / 272.3 MB, free: 2.484 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.0006544/0.005554, allocations: 0.5625 MB / 272.9 MB, free: 1.887 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.005598, allocations: 12.92 kB / 272.9 MB, free: 1.875 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.488e-05/0.005663, allocations: 48.75 kB / 272.9 MB, free: 1.828 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.00585, allocations: 187.7 kB / 273.1 MB, free: 1.621 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.005867, allocations: 17.03 kB / 273.1 MB, free: 1.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.362e-05/0.005901, allocations: 28.38 kB / 273.2 MB, free: 1.574 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.006143, allocations: 191.4 kB / 273.3 MB, free: 1.379 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.006157, allocations: 7.891 kB / 273.3 MB, free: 1.371 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.006173, allocations: 12 kB / 273.4 MB, free: 1.359 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.006181, allocations: 4 kB / 273.4 MB, free: 1.355 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001367/0.006318, allocations: 99.8 kB / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000679/0.006997, allocations: 0.6283 MB / 274.1 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.007265, allocations: 163 kB / 274.2 MB, free: 432 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.444e-05/0.00735, allocations: 75.59 kB / 274.3 MB, free: 352 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.00736, allocations: 4 kB / 274.3 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.007379, allocations: 33.39 kB / 274.4 MB, free: 304 kB / 250.7 MB Notification: Performance of pre-optimization done (n=26): time 1.322e-06/0.007381, allocations: 0 / 274.4 MB, free: 304 kB / 250.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008031/0.008184, allocations: 0.6586 MB / 275 MB, free: 15.58 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.008211, allocations: 55.41 kB / 275.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.012e-05/0.008302, allocations: 197.9 kB / 275.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.008315, allocations: 37.64 kB / 275.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.008382, allocations: 191.4 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.963e-05/0.008431, allocations: 115.1 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-05/0.008483, allocations: 55.36 kB / 275.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.00862, allocations: 0.4962 MB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.922e-05/0.008679, allocations: 39.97 kB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.208e-05/0.008761, allocations: 90.44 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001478/0.008909, allocations: 146.6 kB / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.00891, allocations: 0 / 276.4 MB, free: 14.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002025/0.009112, allocations: 201.5 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.36e-05/0.009126, allocations: 8 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.009131, allocations: 0 / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.009144, allocations: 4 kB / 276.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001602/0.009304, allocations: 71.89 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.593e-06/0.009311, allocations: 4 kB / 276.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.399e-05/0.009365, allocations: 8 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.009374, allocations: 8 kB / 276.7 MB, free: 13.77 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.279e-05/0.009447, allocations: 168.5 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.646e-05/0.009484, allocations: 35.88 kB / 276.9 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.031e-05/0.009524, allocations: 29.95 kB / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.009526, allocations: 0 / 276.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.00953, allocations: 4 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.009534, allocations: 7.938 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.009999, allocations: 0.5556 MB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.01, allocations: 0 / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.01017, allocations: 67.91 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.01017, allocations: 0 / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01019, allocations: 16.05 kB / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.01019, allocations: 0 / 277.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.01019, allocations: 4 kB / 277.6 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.01049, allocations: 401 kB / 278 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.143e-05/0.01051, allocations: 23.86 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.01053, allocations: 4 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.193e-05/0.01059, allocations: 4 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.01063, allocations: 23.95 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.767e-06/0.01064, allocations: 12 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.898e-05/0.01069, allocations: 145.6 kB / 278.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01069, allocations: 4 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001846/0.01088, allocations: 59.94 kB / 278.3 MB, free: 12.13 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.327e-05/0.01095, allocations: 107.2 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001853/0.01114, allocations: 139.7 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.01114, allocations: 4 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.029e-05/0.01122, allocations: 79.58 kB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.01149, allocations: 42.27 kB / 278.6 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008984/0.01239, allocations: 0.6772 MB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.316e-05/0.01244, allocations: 88.64 kB / 279.4 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.295e-05/0.0125, allocations: 25.92 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.193e-05/0.01254, allocations: 20.5 kB / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of SimCode: time 6.31e-07/0.01254, allocations: 0 / 279.4 MB, free: 10.89 MB / 266.7 MB Notification: Performance of Templates: time 0.003643/0.01618, allocations: 2.119 MB / 281.6 MB, free: 8.805 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.627810528036207]