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.001706/0.001706, allocations: 124.5 kB / 18.46 MB, free: 4.613 MB / 14.72 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.001961/0.001961, allocations: 190.7 kB / 21.4 MB, free: 1.684 MB / 14.72 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 1.494/1.494, allocations: 225.6 MB / 249.8 MB, free: 3.711 MB / 190.1 MB " [Timeout remaining time 178] 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 0.002156/0.002156, allocations: 47.92 kB / 366.8 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1377, allocations: 52.14 MB / 418.9 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003959/0.1416, allocations: 2.439 MB / 421.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1428, allocations: 0.5765 MB / 422 MB, free: 9.059 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.1429, allocations: 8 kB / 422 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1431, allocations: 39.58 kB / 422 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001819/0.1433, allocations: 83.25 kB / 422.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001779/0.1434, allocations: 55.94 kB / 422.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.1438, allocations: 290.7 kB / 422.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.144, allocations: 79.56 kB / 422.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.1441, allocations: 115.6 kB / 422.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1443, allocations: 123.5 kB / 422.7 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.866e-05/0.1443, allocations: 24 kB / 422.8 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.942e-05/0.1444, allocations: 24 kB / 422.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.154e-05/0.1444, allocations: 63.7 kB / 422.8 MB, free: 8.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1446, allocations: 127.4 kB / 423 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003693/0.145, allocations: 298.7 kB / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.145, allocations: 0 / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.145, allocations: 0 / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.145, allocations: 0 / 423.3 MB, free: 7.746 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.000882/0.1458, allocations: 0.5496 MB / 423.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.1459, allocations: 12.03 kB / 423.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.695e-05/0.146, allocations: 32.69 kB / 423.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.1463, allocations: 244.5 kB / 424.1 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.1463, allocations: 20.94 kB / 424.1 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.38e-05/0.1464, allocations: 28.12 kB / 424.1 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004832/0.1469, allocations: 228.9 kB / 424.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.1469, allocations: 0 / 424.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.501e-05/0.1469, allocations: 12 kB / 424.4 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.1469, allocations: 7.938 kB / 424.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004212/0.1473, allocations: 178.1 kB / 424.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001231/0.1486, allocations: 0.7542 MB / 425.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.149, allocations: 204.9 kB / 425.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.1493, allocations: 105.5 kB / 425.6 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.1493, allocations: 4 kB / 425.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.1493, allocations: 38.56 kB / 425.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.1493, allocations: 0 / 425.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00182/0.1511, allocations: 0.9663 MB / 426.6 MB, free: 4.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.764e-05/0.1512, allocations: 55.41 kB / 426.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.1513, allocations: 150.7 kB / 426.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.1514, allocations: 33.7 kB / 426.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001096/0.1515, allocations: 140.8 kB / 427 MB, free: 3.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.984e-05/0.1516, allocations: 111 kB / 427.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.255e-05/0.1517, allocations: 53.64 kB / 427.2 MB, free: 3.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1518, allocations: 334.8 kB / 427.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.152, allocations: 79.95 kB / 427.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002099/0.1522, allocations: 115.1 kB / 427.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004056/0.1526, allocations: 211.2 kB / 427.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1526, allocations: 0 / 427.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005013/0.1531, allocations: 265.4 kB / 428.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.1531, allocations: 4 kB / 428.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1531, allocations: 0 / 428.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.1532, allocations: 4 kB / 428.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.1535, allocations: 79.98 kB / 428.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1535, allocations: 0 / 428.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.1536, allocations: 19.98 kB / 428.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1536, allocations: 4 kB / 428.2 MB, free: 2.422 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.0001411/0.1538, allocations: 147.8 kB / 428.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.298e-05/0.1538, allocations: 15.91 kB / 428.4 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.642e-05/0.1539, allocations: 26.56 kB / 428.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1539, allocations: 7.984 kB / 428.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1539, allocations: 4 kB / 428.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.1539, allocations: 7.922 kB / 428.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1549, allocations: 0.6486 MB / 429.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1549, allocations: 0 / 429.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003355/0.1552, allocations: 76.02 kB / 429.2 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1552, allocations: 4 kB / 429.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.1553, allocations: 4 kB / 429.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.985e-06/0.1553, allocations: 11.88 kB / 429.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1553, allocations: 0 / 429.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007327/0.156, allocations: 443.8 kB / 429.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.17e-05/0.1561, allocations: 96.97 kB / 429.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.1561, allocations: 4.062 kB / 429.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.1563, allocations: 19.92 kB / 429.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.278e-05/0.1563, allocations: 11.98 kB / 429.8 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.568e-05/0.1563, allocations: 11.98 kB / 429.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1564, allocations: 123.4 kB / 429.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1564, allocations: 4 kB / 429.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1567, allocations: 59.98 kB / 430 MB, free: 0.6094 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.0001361/0.1569, allocations: 107.7 kB / 430.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004735/0.1573, allocations: 196 kB / 430.2 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1573, allocations: 0 / 430.2 MB, free: 312 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002144/0.1576, allocations: 108.3 kB / 430.4 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.158, allocations: 40.09 kB / 430.4 MB, free: 164 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/0.1595, allocations: 0.8514 MB / 431.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004008/0.1599, allocations: 0.7522 MB / 432 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.776e-05/0.16, allocations: 19.44 kB / 432 MB, free: 14.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.16, allocations: 0 / 432 MB, free: 14.45 MB / 366.1 MB Notification: Performance of Templates: time 0.005154/0.1651, allocations: 2.82 MB / 434.8 MB, free: 11.64 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 7.2944022170268]