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.001253/0.001253, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001546/0.001546, allocations: 196.3 kB / 16.14 MB, free: 6.703 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.801/1.801, allocations: 205.1 MB / 222 MB, free: 5 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.4313/0.4313, allocations: 39.93 MB / 309.3 MB, free: 9.23 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.001449/0.001449, allocations: 63.89 kB / 376.9 MB, free: 13.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1743, allocations: 56.88 MB / 433.8 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003694/0.1781, allocations: 1.49 MB / 435.3 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009125/0.179, allocations: 455.9 kB / 435.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.923e-05/0.1791, allocations: 0 / 435.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.638e-05/0.1791, allocations: 4 kB / 435.7 MB, free: 2.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.462e-05/0.1792, allocations: 11.86 kB / 435.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.1794, allocations: 15.98 kB / 435.8 MB, free: 2.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.239e-05/0.1795, allocations: 31.86 kB / 435.8 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.1796, allocations: 4 kB / 435.8 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.974e-05/0.1798, allocations: 23.86 kB / 435.8 MB, free: 2.164 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.94e-05/0.1798, allocations: 19.91 kB / 435.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.1799, allocations: 4 kB / 435.8 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.1799, allocations: 4 kB / 435.8 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.1799, allocations: 0 / 435.8 MB, free: 2.137 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.823e-05/0.18, allocations: 15.92 kB / 435.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.1801, allocations: 31.89 kB / 435.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1801, allocations: 0 / 435.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1801, allocations: 0 / 435.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1801, allocations: 0 / 435.9 MB, free: 2.09 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.0005511/0.1807, allocations: 355.6 kB / 436.2 MB, free: 1.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.1807, allocations: 8.031 kB / 436.2 MB, free: 1.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.1808, allocations: 4.938 kB / 436.3 MB, free: 1.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.181, allocations: 176.2 kB / 436.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.181, allocations: 384 / 436.4 MB, free: 1.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.181, allocations: 8.125 kB / 436.4 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.1812, allocations: 59.33 kB / 436.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1812, allocations: 4 kB / 436.5 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.1813, allocations: 0 / 436.5 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.01e-06/0.1813, allocations: 4 kB / 436.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001161/0.1814, allocations: 19.98 kB / 436.5 MB, free: 1.367 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004588/0.1819, allocations: 264.8 kB / 436.8 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001144/0.182, allocations: 34.5 kB / 436.8 MB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.806e-05/0.1821, allocations: 20.91 kB / 436.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.1821, allocations: 0 / 436.8 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.1821, allocations: 34.56 kB / 436.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.022e-06/0.1821, allocations: 0 / 436.9 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002849/0.1824, allocations: 65.67 kB / 436.9 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.1825, allocations: 81.05 kB / 437 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.923e-05/0.1826, allocations: 105.8 kB / 437.1 MB, free: 0.668 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.1827, allocations: 25.7 kB / 437.1 MB, free: 0.6367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/0.1827, allocations: 96.17 kB / 437.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.734e-05/0.1828, allocations: 0 / 437.2 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.1828, allocations: 21.7 kB / 437.3 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.183, allocations: 314.8 kB / 437.6 MB, free: 200 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.05e-05/0.183, allocations: 12 kB / 437.6 MB, free: 188 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.951e-05/0.1831, allocations: 25.7 kB / 437.6 MB, free: 156 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.978e-05/0.1832, allocations: 28.95 kB / 437.6 MB, free: 124 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1832, allocations: 4 kB / 437.6 MB, free: 120 kB / 366.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001767/0.1834, allocations: 65.52 kB / 437.7 MB, free: 48 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.1834, allocations: 4 kB / 437.7 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.1835, allocations: 0 / 437.7 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1835, allocations: 3.938 kB / 437.7 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.804e-05/0.1836, allocations: 4 kB / 437.7 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.1836, allocations: 0 / 437.7 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.566e-05/0.1837, allocations: 15.98 kB / 437.7 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.093e-06/0.1837, allocations: 0 / 437.7 MB, free: 20 kB / 366.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.0001228/0.1838, allocations: 117.8 kB / 437.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.588e-05/0.1839, allocations: 3.984 kB / 437.8 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.627e-05/0.1839, allocations: 11.53 kB / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1839, allocations: 0 / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1839, allocations: 0 / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1839, allocations: 0 / 437.9 MB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001974/0.1841, allocations: 161.6 kB / 438 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1841, allocations: 0 / 438 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.591e-05/0.1842, allocations: 4 kB / 438 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.1842, allocations: 4 kB / 438 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.1842, allocations: 3.938 kB / 438 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1842, allocations: 4 kB / 438 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.1842, allocations: 3.984 kB / 438 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002072/0.1845, allocations: 155.3 kB / 438.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.1845, allocations: 77.11 kB / 438.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.1846, allocations: 8 kB / 438.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.1847, allocations: 12.02 kB / 438.3 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.001e-05/0.1847, allocations: 7.984 kB / 438.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.1847, allocations: 0 / 438.3 MB, free: 15.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.067e-05/0.1848, allocations: 91.56 kB / 438.4 MB, free: 15.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1848, allocations: 4 kB / 438.4 MB, free: 15.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.1852, allocations: 4 kB / 438.4 MB, free: 15.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.0001081/0.1853, allocations: 103.1 kB / 438.5 MB, free: 15.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001779/0.1855, allocations: 31.92 kB / 438.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1855, allocations: 0 / 438.5 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.515e-05/0.1855, allocations: 15.98 kB / 438.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.1859, allocations: 7.797 kB / 438.5 MB, free: 15.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003544/0.1862, allocations: 132.3 kB / 438.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1865, allocations: 0.6849 MB / 439.3 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.23e-05/0.1866, allocations: 7.844 kB / 439.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.577e-05/0.1866, allocations: 11.42 kB / 439.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1866, allocations: 0 / 439.4 MB, free: 14.23 MB / 382.1 MB Notification: Performance of Templates: time 0.003166/0.1898, allocations: 0.5009 MB / 439.9 MB, free: 13.73 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)