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.001204/0.001204, allocations: 108 kB / 15.61 MB, free: 152 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.001522/0.001522, allocations: 196.5 kB / 16.53 MB, free: 6.664 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.676/1.676, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.3893/0.3893, allocations: 39.93 MB / 309.7 MB, free: 9.328 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.001953/0.001953, allocations: 70.41 kB / 377.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1422, allocations: 56.89 MB / 434.5 MB, free: 3.691 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003095/0.1453, allocations: 1.423 MB / 435.9 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008661/0.1462, allocations: 461.5 kB / 436.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.254e-05/0.1463, allocations: 0 / 436.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.469e-05/0.1463, allocations: 3.938 kB / 436.4 MB, free: 1.793 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.053e-05/0.1464, allocations: 11.92 kB / 436.4 MB, free: 1.781 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002314/0.1466, allocations: 11.98 kB / 436.4 MB, free: 1.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.198e-05/0.1467, allocations: 39.8 kB / 436.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.1468, allocations: 7.984 kB / 436.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.1469, allocations: 15.98 kB / 436.5 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.787e-05/0.147, allocations: 19.92 kB / 436.5 MB, free: 1.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/0.147, allocations: 4 kB / 436.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.295e-05/0.147, allocations: 0 / 436.5 MB, free: 1.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.641e-05/0.1471, allocations: 11.94 kB / 436.5 MB, free: 1.672 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.035e-05/0.1471, allocations: 19.91 kB / 436.5 MB, free: 1.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.1473, allocations: 27.91 kB / 436.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.1473, allocations: 0 / 436.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1473, allocations: 4 kB / 436.5 MB, free: 1.621 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.1473, allocations: 0 / 436.5 MB, free: 1.621 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.0005878/0.1479, allocations: 351.6 kB / 436.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.148, allocations: 11.89 kB / 436.9 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.148, allocations: 4.938 kB / 436.9 MB, free: 1.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001698/0.1482, allocations: 176.2 kB / 437.1 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.1482, allocations: 4.375 kB / 437.1 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.454e-05/0.1482, allocations: 4.125 kB / 437.1 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002194/0.1485, allocations: 63.39 kB / 437.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.1485, allocations: 0 / 437.1 MB, free: 0.9219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.1485, allocations: 4 kB / 437.1 MB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1485, allocations: 3.984 kB / 437.2 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.534e-05/0.1486, allocations: 19.98 kB / 437.2 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004572/0.1491, allocations: 260.8 kB / 437.4 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.794e-05/0.1492, allocations: 34.56 kB / 437.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.934e-05/0.1492, allocations: 16.92 kB / 437.5 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1493, allocations: 3.984 kB / 437.5 MB, free: 0.5234 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.1493, allocations: 38.55 kB / 437.5 MB, free: 488 kB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 2.615e-06/0.1493, allocations: 0 / 437.5 MB, free: 488 kB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002655/0.1496, allocations: 65.56 kB / 437.6 MB, free: 416 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.1497, allocations: 85.03 kB / 437.7 MB, free: 312 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.1498, allocations: 114 kB / 437.8 MB, free: 188 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1498, allocations: 29.7 kB / 437.8 MB, free: 152 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1499, allocations: 84.05 kB / 437.9 MB, free: 64 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.18e-05/0.1499, allocations: 8 kB / 437.9 MB, free: 56 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.15, allocations: 9.719 kB / 437.9 MB, free: 40 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.1501, allocations: 326.8 kB / 438.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.952e-05/0.1502, allocations: 4 kB / 438.2 MB, free: 15.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.092e-05/0.1503, allocations: 33.7 kB / 438.3 MB, free: 15.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.346e-05/0.1503, allocations: 24.84 kB / 438.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1504, allocations: 0 / 438.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001322/0.1505, allocations: 65.52 kB / 438.3 MB, free: 15.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.1505, allocations: 8 kB / 438.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.1505, allocations: 0 / 438.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1506, allocations: 0 / 438.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.073e-05/0.1506, allocations: 4 kB / 438.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.1507, allocations: 0 / 438.4 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.818e-05/0.1507, allocations: 12.02 kB / 438.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.1507, allocations: 0 / 438.4 MB, free: 15.55 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.389e-05/0.1508, allocations: 117.8 kB / 438.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.577e-05/0.1509, allocations: 4 kB / 438.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.371e-05/0.1509, allocations: 7.516 kB / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1509, allocations: 0 / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1509, allocations: 0 / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-06/0.1509, allocations: 0 / 438.5 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001727/0.1511, allocations: 173.6 kB / 438.7 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1511, allocations: 0 / 438.7 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.791e-05/0.1511, allocations: 4 kB / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1512, allocations: 0 / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1512, allocations: 0 / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1512, allocations: 0 / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1512, allocations: 4.078 kB / 438.7 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/0.1513, allocations: 159.4 kB / 438.8 MB, free: 15.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/0.1514, allocations: 81.11 kB / 438.9 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.518e-05/0.1515, allocations: 4 kB / 438.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.66e-05/0.1516, allocations: 11.92 kB / 438.9 MB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.1516, allocations: 7.984 kB / 438.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.1516, allocations: 4 kB / 438.9 MB, free: 14.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.642e-05/0.1517, allocations: 95.56 kB / 439 MB, free: 14.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1517, allocations: 0 / 439 MB, free: 14.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000213/0.1519, allocations: 4 kB / 439 MB, free: 14.79 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.0001769/0.1521, allocations: 103.2 kB / 439.1 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001624/0.1523, allocations: 39.86 kB / 439.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1523, allocations: 0 / 439.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.942e-05/0.1523, allocations: 11.98 kB / 439.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.1525, allocations: 4 kB / 439.2 MB, free: 14.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003069/0.1528, allocations: 130.6 kB / 439.3 MB, free: 14.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.1531, allocations: 0.6806 MB / 440 MB, free: 13.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.754e-05/0.1531, allocations: 4 kB / 440 MB, free: 13.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.943e-05/0.1532, allocations: 7.438 kB / 440 MB, free: 13.75 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1532, allocations: 0 / 440 MB, free: 13.75 MB / 382.1 MB Notification: Performance of Templates: time 0.002729/0.1559, allocations: 0.5905 MB / 440.6 MB, free: 13.16 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)