Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000792/0.0007916, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001006, allocations: 184.1 kB / 16.92 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.206/2.206, allocations: 205.4 MB / 223.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5083/0.5083, allocations: 43.56 MB / 315 MB, free: 9.02 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007307/0.0007307, allocations: 19.98 kB / 384.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1593, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001693/0.161, allocations: 1.167 MB / 444.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000696/0.1617, allocations: 440 kB / 445 MB, free: 11.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.379e-05/0.1618, allocations: 4 kB / 445 MB, free: 11.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.846e-05/0.1618, allocations: 11.92 kB / 445.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.804e-05/0.1619, allocations: 3.984 kB / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001774/0.1621, allocations: 7.938 kB / 445.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.321e-05/0.1621, allocations: 35.86 kB / 445.1 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1623, allocations: 11.98 kB / 445.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.139e-05/0.1623, allocations: 8 kB / 445.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.919e-05/0.1624, allocations: 19.91 kB / 445.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.1624, allocations: 0 / 445.1 MB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.081e-05/0.1625, allocations: 8 kB / 445.1 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.822e-05/0.1625, allocations: 7.922 kB / 445.2 MB, free: 11.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.523e-05/0.1625, allocations: 37.64 kB / 445.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.893e-05/0.1626, allocations: 27.88 kB / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1627, allocations: 4 kB / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1627, allocations: 0 / 445.2 MB, free: 11.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.1627, allocations: 0 / 445.2 MB, free: 11.12 MB / 382.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.0004636/0.1631, allocations: 347.7 kB / 445.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1632, allocations: 19.97 kB / 445.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/0.1632, allocations: 4.844 kB / 445.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.1634, allocations: 168.3 kB / 445.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.1634, allocations: 384 / 445.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.086e-05/0.1634, allocations: 384 / 445.8 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001673/0.1636, allocations: 63.7 kB / 445.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1636, allocations: 4 kB / 445.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.1636, allocations: 8 kB / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.1636, allocations: 0 / 445.8 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001029/0.1637, allocations: 23.98 kB / 445.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004308/0.1642, allocations: 268.7 kB / 446.1 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.1643, allocations: 38.56 kB / 446.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.975e-05/0.1644, allocations: 16.92 kB / 446.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.1644, allocations: 0 / 446.2 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1644, allocations: 30.56 kB / 446.2 MB, free: 9.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.1644, allocations: 3.938 kB / 446.2 MB, free: 9.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002508/0.1647, allocations: 81.55 kB / 446.3 MB, free: 9.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.538e-05/0.1647, allocations: 77.11 kB / 446.4 MB, free: 9.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.1648, allocations: 105.8 kB / 446.5 MB, free: 9.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1649, allocations: 29.7 kB / 446.5 MB, free: 9.648 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.1649, allocations: 84.14 kB / 446.6 MB, free: 9.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.1649, allocations: 7.891 kB / 446.6 MB, free: 9.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.598e-05/0.165, allocations: 17.84 kB / 446.6 MB, free: 9.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1651, allocations: 314.8 kB / 446.9 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.6e-05/0.1652, allocations: 15.98 kB / 446.9 MB, free: 9.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.237e-05/0.1652, allocations: 29.7 kB / 446.9 MB, free: 9.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.324e-05/0.1653, allocations: 40.8 kB / 447 MB, free: 9.121 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1653, allocations: 4.031 kB / 447 MB, free: 9.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001169/0.1654, allocations: 53.69 kB / 447 MB, free: 9.059 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.1655, allocations: 8 kB / 447.1 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1655, allocations: 0 / 447.1 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.1655, allocations: 0 / 447.1 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.261e-05/0.1656, allocations: 7.984 kB / 447.1 MB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.1656, allocations: 0 / 447.1 MB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.09e-05/0.1656, allocations: 19.91 kB / 447.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.1657, allocations: 3.984 kB / 447.1 MB, free: 9.02 MB / 382.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 8.45e-05/0.1657, allocations: 113.8 kB / 447.2 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.434e-05/0.1658, allocations: 4 kB / 447.2 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.262e-05/0.1658, allocations: 7.531 kB / 447.2 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1658, allocations: 0 / 447.2 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1658, allocations: 0 / 447.2 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1658, allocations: 0 / 447.2 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000155/0.166, allocations: 169.6 kB / 447.4 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.166, allocations: 0 / 447.4 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.875e-05/0.166, allocations: 11.92 kB / 447.4 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.166, allocations: 0 / 447.4 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1661, allocations: 0 / 447.4 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.1661, allocations: 4 kB / 447.4 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1661, allocations: 0 / 447.4 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001659/0.1662, allocations: 159.5 kB / 447.5 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.1663, allocations: 85 kB / 447.6 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1663, allocations: 3.938 kB / 447.6 MB, free: 8.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.1664, allocations: 8 kB / 447.6 MB, free: 8.375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.1665, allocations: 7.984 kB / 447.6 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.1665, allocations: 3.984 kB / 447.6 MB, free: 8.363 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.195e-05/0.1665, allocations: 87.59 kB / 447.7 MB, free: 8.277 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1665, allocations: 4.031 kB / 447.7 MB, free: 8.273 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002029/0.1667, allocations: 4 kB / 447.7 MB, free: 8.27 MB / 382.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.0001042/0.1668, allocations: 111.1 kB / 447.8 MB, free: 8.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.167, allocations: 35.91 kB / 447.9 MB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.167, allocations: 0 / 447.9 MB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.023e-05/0.1671, allocations: 16 kB / 447.9 MB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.1673, allocations: 7.938 kB / 447.9 MB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003006/0.1676, allocations: 132.6 kB / 448 MB, free: 7.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.1678, allocations: 0.6773 MB / 448.7 MB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.199e-05/0.1679, allocations: 11.92 kB / 448.7 MB, free: 7.223 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.642e-05/0.1679, allocations: 11.5 kB / 448.7 MB, free: 7.211 MB / 382.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1679, allocations: 0 / 448.7 MB, free: 7.211 MB / 382.1 MB Notification: Performance of Templates: time 0.002644/0.1706, allocations: 0.4968 MB / 449.2 MB, free: 6.715 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches