Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.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.001583/0.001583, allocations: 123.4 kB / 17.79 MB, free: 5.285 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.001662/0.001662, allocations: 208.2 kB / 20.75 MB, free: 2.336 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.634/1.634, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2627/0.2627, allocations: 46.93 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 75.88 kB / 0.4914 GB, free: 7.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.167/0.169, allocations: 65.99 MB / 0.5558 GB, free: 5.367 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003115/0.1721, allocations: 1.471 MB / 0.5573 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009773/0.1731, allocations: 492.4 kB / 0.5577 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.263e-05/0.1731, allocations: 0 / 0.5577 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.853e-05/0.1732, allocations: 7.938 kB / 0.5578 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.433e-05/0.1732, allocations: 3.938 kB / 0.5578 GB, free: 3.387 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002675/0.1735, allocations: 27.91 kB / 0.5578 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.1736, allocations: 43.84 kB / 0.5578 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.1737, allocations: 4 kB / 0.5578 GB, free: 3.312 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001341/0.1739, allocations: 23.92 kB / 0.5578 GB, free: 3.289 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.199e-05/0.1739, allocations: 15.92 kB / 0.5579 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.174, allocations: 7.938 kB / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.933e-05/0.174, allocations: 7.984 kB / 0.5579 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.174, allocations: 8 kB / 0.5579 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.202e-05/0.1741, allocations: 15.92 kB / 0.5579 GB, free: 3.234 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.1742, allocations: 35.83 kB / 0.5579 GB, free: 3.199 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1742, allocations: 0 / 0.5579 GB, free: 3.199 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1742, allocations: 0 / 0.5579 GB, free: 3.199 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1742, allocations: 4 kB / 0.5579 GB, free: 3.195 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005882/0.1748, allocations: 363.3 kB / 0.5583 GB, free: 2.793 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1748, allocations: 8.031 kB / 0.5583 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.175, allocations: 12.92 kB / 0.5583 GB, free: 2.773 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.1752, allocations: 172.3 kB / 0.5585 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.1752, allocations: 4.375 kB / 0.5585 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.1752, allocations: 8.25 kB / 0.5585 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.1754, allocations: 63.72 kB / 0.5585 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1754, allocations: 0 / 0.5585 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1754, allocations: 4 kB / 0.5585 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1754, allocations: 0 / 0.5585 GB, free: 2.477 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.709e-05/0.1755, allocations: 23.97 kB / 0.5586 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004298/0.176, allocations: 260.9 kB / 0.5588 GB, free: 2.148 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.1761, allocations: 34.5 kB / 0.5589 GB, free: 2.105 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.419e-05/0.1761, allocations: 16.92 kB / 0.5589 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.1761, allocations: 0 / 0.5589 GB, free: 2.086 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.1762, allocations: 34.55 kB / 0.5589 GB, free: 2.043 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.82e-07/0.1762, allocations: 0 / 0.5589 GB, free: 2.043 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002742/0.1765, allocations: 65.78 kB / 0.559 GB, free: 1.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.1765, allocations: 85.03 kB / 0.559 GB, free: 1.871 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.1766, allocations: 109.8 kB / 0.5592 GB, free: 1.754 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.195e-05/0.1767, allocations: 29.7 kB / 0.5592 GB, free: 1.719 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.51e-05/0.1767, allocations: 84.08 kB / 0.5593 GB, free: 1.633 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.1767, allocations: 11.95 kB / 0.5593 GB, free: 1.621 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.603e-05/0.1768, allocations: 9.719 kB / 0.5593 GB, free: 1.605 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1769, allocations: 322.8 kB / 0.5596 GB, free: 1.281 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.772e-05/0.177, allocations: 8.031 kB / 0.5596 GB, free: 1.273 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.85e-05/0.177, allocations: 29.7 kB / 0.5596 GB, free: 1.238 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.147e-05/0.1771, allocations: 28.78 kB / 0.5597 GB, free: 1.207 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1771, allocations: 0 / 0.5597 GB, free: 1.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001339/0.1773, allocations: 61.61 kB / 0.5597 GB, free: 1.141 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1773, allocations: 8 kB / 0.5597 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.1773, allocations: 0 / 0.5597 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1773, allocations: 4.031 kB / 0.5597 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.324e-05/0.1774, allocations: 4 kB / 0.5597 GB, free: 1.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1774, allocations: 3.938 kB / 0.5597 GB, free: 1.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.167e-05/0.1774, allocations: 11.94 kB / 0.5597 GB, free: 1.109 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.221e-06/0.1774, allocations: 0 / 0.5597 GB, free: 1.109 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001006/0.1775, allocations: 118.2 kB / 0.5599 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.1776, allocations: 8.125 kB / 0.5599 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.1776, allocations: 7.516 kB / 0.5599 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1776, allocations: 8 kB / 0.5599 GB, free: 0.9609 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1776, allocations: 3.938 kB / 0.5599 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1776, allocations: 0 / 0.5599 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001945/0.1778, allocations: 169.6 kB / 0.56 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1778, allocations: 0 / 0.56 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.1778, allocations: 4 kB / 0.56 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.1778, allocations: 0 / 0.56 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1779, allocations: 3.984 kB / 0.56 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1779, allocations: 0 / 0.56 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1779, allocations: 0 / 0.56 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001928/0.1781, allocations: 163.4 kB / 0.5602 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.539e-05/0.1781, allocations: 77.11 kB / 0.5603 GB, free: 476 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1781, allocations: 3.984 kB / 0.5603 GB, free: 472 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.96e-05/0.1782, allocations: 8 kB / 0.5603 GB, free: 464 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.1783, allocations: 3.984 kB / 0.5603 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.1783, allocations: 4 kB / 0.5603 GB, free: 456 kB / 414.1 MB Notification: Performance of sorting global known variables: time 5.529e-05/0.1783, allocations: 91.3 kB / 0.5604 GB, free: 364 kB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1783, allocations: 0 / 0.5604 GB, free: 364 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002209/0.1786, allocations: 8 kB / 0.5604 GB, free: 356 kB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001151/0.1787, allocations: 91.25 kB / 0.5605 GB, free: 256 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001713/0.1788, allocations: 31.92 kB / 0.5605 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1788, allocations: 0 / 0.5605 GB, free: 224 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.103e-05/0.1789, allocations: 11.98 kB / 0.5605 GB, free: 212 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.1791, allocations: 16 kB / 0.5605 GB, free: 196 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003159/0.1794, allocations: 118.7 kB / 0.5606 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.1798, allocations: 0.6807 MB / 0.5613 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.167e-05/0.1798, allocations: 0 / 0.5613 GB, free: 15.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.437e-05/0.1799, allocations: 15.42 kB / 0.5613 GB, free: 15.32 MB / 430.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1799, allocations: 3.938 kB / 0.5613 GB, free: 15.32 MB / 430.1 MB Notification: Performance of Templates: time 0.003381/0.1832, allocations: 0.608 MB / 0.5619 GB, free: 14.71 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.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: 5.5254324413836]