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.001382/0.001382, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 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.001549/0.001549, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9683/0.9683, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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 1.783e-06/1.783e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.913e-05/3.091e-05, allocations: 6.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.004392/0.004423, allocations: 2.468 MB / 275.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.005681, allocations: 0.6076 MB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001887/0.00587, allocations: 7.938 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.006035, allocations: 31.66 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.006238, allocations: 95.19 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002175/0.006456, allocations: 59.91 kB / 276.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.006812, allocations: 306.4 kB / 276.5 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.007014, allocations: 79.3 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002312/0.007245, allocations: 167.6 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.007395, allocations: 95.7 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.007436, allocations: 24 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.808e-05/0.007474, allocations: 24 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.007519, allocations: 51.83 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.007744, allocations: 99.73 kB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.008046, allocations: 191.2 kB / 277.2 MB, free: 13.24 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.00805, allocations: 4 kB / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.008051, allocations: 0 / 277.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.008057, allocations: 0 / 277.2 MB, free: 13.23 MB / 266.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.0005646/0.008622, allocations: 0.5587 MB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.008662, allocations: 12.03 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.11e-05/0.008733, allocations: 52.73 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.008947, allocations: 184.7 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.008964, allocations: 25.03 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.009009, allocations: 32.33 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.009273, allocations: 183.4 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.009295, allocations: 3.938 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.009312, allocations: 12 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.009322, allocations: 4 kB / 278.3 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001456/0.009468, allocations: 103.8 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007578/0.01023, allocations: 0.6283 MB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.01055, allocations: 167 kB / 279.2 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.989e-05/0.01064, allocations: 67.66 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.01066, allocations: 4 kB / 279.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.01069, allocations: 37.39 kB / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of pre-optimization done (n=26): time 2.515e-06/0.01069, allocations: 0 / 279.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009697/0.01166, allocations: 0.6565 MB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.01169, allocations: 55.41 kB / 280 MB, free: 10.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.93e-05/0.01179, allocations: 200.3 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.0118, allocations: 33.7 kB / 280.2 MB, free: 10.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.469e-05/0.01188, allocations: 195.4 kB / 280.4 MB, free: 9.812 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.01218, allocations: 103.1 kB / 280.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.999e-05/0.01225, allocations: 59.36 kB / 280.6 MB, free: 9.645 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.01236, allocations: 0.5001 MB / 281.1 MB, free: 9.133 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.75e-05/0.01242, allocations: 31.98 kB / 281.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.56e-05/0.01251, allocations: 95.16 kB / 281.2 MB, free: 8.992 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.01266, allocations: 142.7 kB / 281.4 MB, free: 8.836 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01266, allocations: 3.938 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002169/0.01288, allocations: 209.4 kB / 281.6 MB, free: 8.621 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.01289, allocations: 4 kB / 281.6 MB, free: 8.617 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.0129, allocations: 3.984 kB / 281.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.655e-05/0.01292, allocations: 8 kB / 281.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.01309, allocations: 71.91 kB / 281.6 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.0131, allocations: 4 kB / 281.7 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.93e-05/0.01316, allocations: 11.98 kB / 281.7 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.01317, allocations: 8 kB / 281.7 MB, free: 8.512 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 0.0001009/0.01327, allocations: 176.6 kB / 281.8 MB, free: 8.328 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.01331, allocations: 31.8 kB / 281.9 MB, free: 8.297 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.615e-05/0.01335, allocations: 25.95 kB / 281.9 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.01336, allocations: 4 kB / 281.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.01336, allocations: 0 / 281.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.01337, allocations: 3.984 kB / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005721/0.01394, allocations: 0.5485 MB / 282.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.01395, allocations: 0 / 282.5 MB, free: 7.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.01413, allocations: 72.03 kB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.01413, allocations: 4 kB / 282.5 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.01415, allocations: 4 kB / 282.5 MB, free: 7.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.01415, allocations: 4 kB / 282.5 MB, free: 7.582 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.01416, allocations: 3.938 kB / 282.5 MB, free: 7.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003276/0.01448, allocations: 406 kB / 282.9 MB, free: 7.152 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.925e-05/0.0145, allocations: 15.89 kB / 283 MB, free: 7.137 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.01452, allocations: 8 kB / 283 MB, free: 7.129 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.519e-05/0.01459, allocations: 8 kB / 283 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.478e-05/0.01463, allocations: 19.97 kB / 283 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.01464, allocations: 8 kB / 283 MB, free: 7.094 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.913e-05/0.0147, allocations: 159 kB / 283.2 MB, free: 6.941 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0147, allocations: 0 / 283.2 MB, free: 6.941 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002004/0.0149, allocations: 59.94 kB / 283.2 MB, free: 6.883 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 8.792e-05/0.01499, allocations: 99.25 kB / 283.3 MB, free: 6.777 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.01519, allocations: 144.4 kB / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.0152, allocations: 0 / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.965e-05/0.01528, allocations: 83.72 kB / 283.5 MB, free: 6.547 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.01555, allocations: 35.97 kB / 283.6 MB, free: 6.512 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.01664, allocations: 0.6841 MB / 284.3 MB, free: 5.797 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.683e-05/0.0167, allocations: 88.64 kB / 284.3 MB, free: 5.688 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.755e-05/0.01676, allocations: 25.88 kB / 284.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.0168, allocations: 20.5 kB / 284.4 MB, free: 5.641 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.01681, allocations: 4 kB / 284.4 MB, free: 5.637 MB / 266.7 MB Notification: Performance of Templates: time 0.004164/0.02097, allocations: 2.126 MB / 286.5 MB, free: 3.551 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 240] 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","",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.847599840257317]