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.0008284/0.0008283, allocations: 88.41 kB / 15.36 MB, free: 0.7383 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.006156/0.006156, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.532/1.532, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.3359/0.3359, allocations: 40.01 MB / 310.7 MB, free: 9.602 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.0007774/0.0007775, allocations: 15.98 kB / 379.4 MB, free: 11.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1413, allocations: 57.95 MB / 437.4 MB, free: 1.93 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.001745/0.1431, allocations: 1.159 MB / 438.5 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007172/0.1438, allocations: 452 kB / 439 MB, free: 320 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.38e-05/0.1439, allocations: 0 / 439 MB, free: 320 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.874e-05/0.1439, allocations: 0 / 439 MB, free: 320 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.626e-05/0.144, allocations: 3.938 kB / 439 MB, free: 316 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001812/0.1442, allocations: 19.91 kB / 439 MB, free: 296 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.355e-05/0.1442, allocations: 39.8 kB / 439.1 MB, free: 256 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.1444, allocations: 4 kB / 439.1 MB, free: 252 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.12e-05/0.1445, allocations: 15.98 kB / 439.1 MB, free: 236 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.963e-05/0.1445, allocations: 19.91 kB / 439.1 MB, free: 216 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1446, allocations: 0 / 439.1 MB, free: 216 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.1446, allocations: 4 kB / 439.1 MB, free: 212 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.946e-05/0.1446, allocations: 3.938 kB / 439.1 MB, free: 208 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.038e-05/0.1447, allocations: 37.64 kB / 439.1 MB, free: 164 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 9.135e-05/0.1448, allocations: 27.89 kB / 439.2 MB, free: 136 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1448, allocations: 0 / 439.2 MB, free: 136 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1448, allocations: 0 / 439.2 MB, free: 136 kB / 366.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.1448, allocations: 0 / 439.2 MB, free: 136 kB / 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.0004728/0.1453, allocations: 355.7 kB / 439.5 MB, free: 15.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/0.1453, allocations: 8.031 kB / 439.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.836e-05/0.1454, allocations: 8.844 kB / 439.5 MB, free: 15.72 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001309/0.1455, allocations: 176.2 kB / 439.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1455, allocations: 4.375 kB / 439.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.1455, allocations: 8.125 kB / 439.7 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001708/0.1457, allocations: 67.39 kB / 439.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.1457, allocations: 0 / 439.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1457, allocations: 0 / 439.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.1458, allocations: 0 / 439.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.679e-05/0.1459, allocations: 27.97 kB / 439.8 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004401/0.1463, allocations: 268.8 kB / 440.1 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.155e-05/0.1464, allocations: 34.56 kB / 440.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.392e-05/0.1465, allocations: 16.92 kB / 440.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.1465, allocations: 0 / 440.1 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.155e-05/0.1465, allocations: 38.55 kB / 440.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1465, allocations: 0 / 440.2 MB, free: 14.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002394/0.1468, allocations: 69.62 kB / 440.2 MB, free: 14.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.1468, allocations: 81.09 kB / 440.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.684e-05/0.1469, allocations: 109.8 kB / 440.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.147, allocations: 29.81 kB / 440.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.147, allocations: 88.14 kB / 440.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.48e-05/0.147, allocations: 7.906 kB / 440.5 MB, free: 14.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.1471, allocations: 13.72 kB / 440.5 MB, free: 14.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1472, allocations: 318.8 kB / 440.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.792e-05/0.1472, allocations: 12 kB / 440.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.153e-05/0.1473, allocations: 29.7 kB / 440.9 MB, free: 14.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.954e-05/0.1474, allocations: 32.88 kB / 440.9 MB, free: 14.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.564e-06/0.1474, allocations: 0 / 440.9 MB, free: 14.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001294/0.1475, allocations: 61.62 kB / 441 MB, free: 14.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1476, allocations: 15.52 kB / 441 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1476, allocations: 0 / 441 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1476, allocations: 0 / 441 MB, free: 14.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.923e-05/0.1477, allocations: 12 kB / 441 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1477, allocations: 0 / 441 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.439e-05/0.1478, allocations: 19.89 kB / 441 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1478, allocations: 0 / 441 MB, free: 14.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 0.0001141/0.1479, allocations: 109.8 kB / 441.1 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.258e-05/0.1479, allocations: 4 kB / 441.1 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.822e-05/0.148, allocations: 7.531 kB / 441.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.148, allocations: 4 kB / 441.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.148, allocations: 4 kB / 441.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.148, allocations: 3.984 kB / 441.2 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.1482, allocations: 157.6 kB / 441.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1482, allocations: 0 / 441.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.798e-05/0.1482, allocations: 7.984 kB / 441.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1483, allocations: 0 / 441.3 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.1483, allocations: 7.938 kB / 441.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1483, allocations: 0 / 441.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1483, allocations: 0 / 441.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.1485, allocations: 159.6 kB / 441.5 MB, free: 13.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.1485, allocations: 85 kB / 441.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.1486, allocations: 4 kB / 441.6 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.577e-05/0.1487, allocations: 11.98 kB / 441.6 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.479e-05/0.1487, allocations: 12.02 kB / 441.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-06/0.1487, allocations: 7.938 kB / 441.6 MB, free: 13.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.232e-05/0.1488, allocations: 83.59 kB / 441.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1488, allocations: 0 / 441.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000216/0.149, allocations: 8 kB / 441.7 MB, free: 13.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.0001363/0.1492, allocations: 107.1 kB / 441.8 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.1494, allocations: 35.92 kB / 441.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1494, allocations: 0 / 441.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/0.1494, allocations: 12 kB / 441.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.1497, allocations: 7.984 kB / 441.9 MB, free: 13.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002952/0.15, allocations: 132.6 kB / 442 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.1503, allocations: 0.6849 MB / 442.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.964e-05/0.1504, allocations: 0 / 442.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.1504, allocations: 7.438 kB / 442.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.1504, allocations: 0 / 442.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of Templates: time 0.003129/0.1536, allocations: 0.4969 MB / 443.2 MB, free: 11.73 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Hysteresis.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: