Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_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.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") translateModel(ModelicaTest.Blocks.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001995/0.001995, allocations: 188.7 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.693/1.693, allocations: 205.1 MB / 222.1 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4353/0.4353, allocations: 39.93 MB / 309.4 MB, free: 9.359 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: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001499, allocations: 59.91 kB / 377.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1563, allocations: 56.89 MB / 434 MB, free: 4.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003104/0.1595, allocations: 1.486 MB / 435.5 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007863/0.1603, allocations: 459.9 kB / 435.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.935e-05/0.1603, allocations: 0 / 435.9 MB, free: 2.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 6e-05/0.1604, allocations: 7.922 kB / 435.9 MB, free: 2.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.058e-05/0.1605, allocations: 4 kB / 435.9 MB, free: 2.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.1607, allocations: 11.92 kB / 435.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.821e-05/0.1608, allocations: 39.86 kB / 436 MB, free: 2.016 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.1609, allocations: 11.98 kB / 436 MB, free: 2.004 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.161, allocations: 12 kB / 436 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.425e-05/0.1611, allocations: 19.91 kB / 436 MB, free: 1.973 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.946e-05/0.1612, allocations: 4 kB / 436 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.06e-05/0.1612, allocations: 0 / 436 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.933e-05/0.1612, allocations: 19.86 kB / 436.1 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.67e-05/0.1612, allocations: 7.938 kB / 436.1 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.1614, allocations: 39.88 kB / 436.1 MB, free: 1.902 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1614, allocations: 0 / 436.1 MB, free: 1.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.1614, allocations: 0 / 436.1 MB, free: 1.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.054e-06/0.1614, allocations: 4 kB / 436.1 MB, free: 1.898 MB / 366.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.0005439/0.1619, allocations: 355.5 kB / 436.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/0.162, allocations: 11.89 kB / 436.5 MB, free: 1.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.1621, allocations: 4.938 kB / 436.5 MB, free: 1.488 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.1622, allocations: 168.2 kB / 436.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.1622, allocations: 4.375 kB / 436.6 MB, free: 1.281 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.6e-05/0.1622, allocations: 4.125 kB / 436.6 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.1624, allocations: 71.38 kB / 436.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.1625, allocations: 0 / 436.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1625, allocations: 0 / 436.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1625, allocations: 0 / 436.7 MB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.395e-05/0.1626, allocations: 23.92 kB / 436.7 MB, free: 1.172 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.1631, allocations: 260.9 kB / 437 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.173e-05/0.1632, allocations: 38.56 kB / 437 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.799e-05/0.1632, allocations: 12.92 kB / 437 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.1632, allocations: 0 / 437 MB, free: 0.8047 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.1633, allocations: 34.56 kB / 437.1 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.02e-07/0.1633, allocations: 0 / 437.1 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002466/0.1635, allocations: 65.61 kB / 437.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.637e-05/0.1636, allocations: 81.23 kB / 437.2 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.716e-05/0.1637, allocations: 105.8 kB / 437.3 MB, free: 492 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.1637, allocations: 33.64 kB / 437.3 MB, free: 452 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.1638, allocations: 92.03 kB / 437.4 MB, free: 356 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1638, allocations: 0 / 437.4 MB, free: 356 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.1639, allocations: 17.72 kB / 437.5 MB, free: 332 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.164, allocations: 327 kB / 437.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.432e-05/0.1641, allocations: 4 kB / 437.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.418e-05/0.1641, allocations: 33.7 kB / 437.8 MB, free: 15.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.268e-05/0.1642, allocations: 24.78 kB / 437.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1642, allocations: 4 kB / 437.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001177/0.1644, allocations: 57.59 kB / 437.9 MB, free: 15.86 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.974e-05/0.1644, allocations: 7.984 kB / 437.9 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1644, allocations: 4 kB / 437.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.1644, allocations: 0 / 437.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.539e-05/0.1645, allocations: 8.031 kB / 437.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.1645, allocations: 0 / 437.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.868e-05/0.1646, allocations: 7.984 kB / 437.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.1646, allocations: 3.938 kB / 437.9 MB, free: 15.82 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 9.967e-05/0.1647, allocations: 117.8 kB / 438 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.31e-05/0.1647, allocations: 0 / 438 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.1648, allocations: 7.531 kB / 438.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.1648, allocations: 0 / 438.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.1648, allocations: 4 kB / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1648, allocations: 3.984 kB / 438.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001655/0.165, allocations: 165.6 kB / 438.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.165, allocations: 0 / 438.2 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.608e-05/0.165, allocations: 7.922 kB / 438.2 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.165, allocations: 4 kB / 438.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.165, allocations: 0 / 438.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.165, allocations: 0 / 438.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1651, allocations: 0 / 438.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.1653, allocations: 155.4 kB / 438.4 MB, free: 15.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.1653, allocations: 81.25 kB / 438.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.1653, allocations: 0 / 438.5 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.1654, allocations: 15.97 kB / 438.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.949e-05/0.1655, allocations: 11.98 kB / 438.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.1655, allocations: 0 / 438.5 MB, free: 15.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.535e-05/0.1656, allocations: 91.22 kB / 438.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1656, allocations: 32 / 438.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1658, allocations: 8 kB / 438.6 MB, free: 15.07 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.0001653/0.166, allocations: 103.1 kB / 438.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002133/0.1662, allocations: 31.92 kB / 438.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1663, allocations: 4 kB / 438.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.707e-05/0.1663, allocations: 8 kB / 438.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.1666, allocations: 0 / 438.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.167, allocations: 142.6 kB / 438.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.1673, allocations: 0.6883 MB / 439.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.071e-05/0.1673, allocations: 0 / 439.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.1673, allocations: 11.44 kB / 439.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1673, allocations: 0 / 439.6 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Templates: time 0.002781/0.1701, allocations: 0.5283 MB / 440.1 MB, free: 13.5 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.pipe 2>&1)