Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004647/0.004647, allocations: 104.4 kB / 15.74 MB, free: 6.039 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.001149/0.001149, allocations: 195.2 kB / 16.68 MB, free: 5.957 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.164/1.164, allocations: 205.1 MB / 222.5 MB, free: 4.52 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.346/1.346, allocations: 251.7 MB / 0.5094 GB, free: 3.039 MB / 414.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.001344/0.001344, allocations: 67.91 kB / 0.7258 GB, free: 9.066 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1581, allocations: 104.7 MB / 0.828 GB, free: 260 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom): time 0.002517/0.1606, allocations: 1.785 MB / 0.8298 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1624, allocations: 1.628 MB / 0.8314 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.2e-05/0.1624, allocations: 4 kB / 0.8314 GB, free: 12.81 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1626, allocations: 35.72 kB / 0.8314 GB, free: 12.78 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 9.261e-05/0.1627, allocations: 19.8 kB / 0.8314 GB, free: 12.76 MB / 0.6544 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:310:3-383:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.replace' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function 'Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange' contains a call to impure function 'Modelica.Utilities.Strings.replace'. Notification: Performance of NFTyping.typeClassSections: time 0.0005341/0.1632, allocations: 235.3 kB / 0.8316 GB, free: 12.53 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002208/0.1635, allocations: 211.5 kB / 0.8318 GB, free: 12.32 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.1636, allocations: 69.81 kB / 0.8319 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.1637, allocations: 79.77 kB / 0.832 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001096/0.1638, allocations: 75.67 kB / 0.832 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.441e-05/0.1638, allocations: 12 kB / 0.8321 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002905/0.1641, allocations: 211.6 kB / 0.8323 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 8.569e-05/0.1642, allocations: 75.8 kB / 0.8323 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.858e-05/0.1643, allocations: 79.55 kB / 0.8324 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003502/0.1647, allocations: 367 kB / 0.8328 GB, free: 11.37 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1647, allocations: 3.938 kB / 0.8328 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1647, allocations: 4 kB / 0.8328 GB, free: 11.36 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.558e-06/0.1647, allocations: 0 / 0.8328 GB, free: 11.36 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.000796/0.1655, allocations: 0.5532 MB / 0.8333 GB, free: 10.76 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 2.628e-05/0.1655, allocations: 12.03 kB / 0.8333 GB, free: 10.75 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.776e-05/0.1656, allocations: 24.69 kB / 0.8333 GB, free: 10.72 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.1658, allocations: 236.7 kB / 0.8336 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.1658, allocations: 16.38 kB / 0.8336 GB, free: 10.44 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.047e-05/0.1659, allocations: 27.83 kB / 0.8336 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002975/0.1662, allocations: 181.4 kB / 0.8338 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1662, allocations: 4 kB / 0.8338 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.1662, allocations: 7.984 kB / 0.8338 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.1662, allocations: 4 kB / 0.8338 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002318/0.1665, allocations: 123.9 kB / 0.8339 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1675, allocations: 0.551 MB / 0.8345 GB, free: 9.488 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007163/0.1683, allocations: 242.7 kB / 0.8347 GB, free: 9.242 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001453/0.1684, allocations: 96.75 kB / 0.8348 GB, free: 9.145 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.1685, allocations: 7.969 kB / 0.8348 GB, free: 9.137 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002413/0.1687, allocations: 155.2 kB / 0.8349 GB, free: 8.973 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.1687, allocations: 0 / 0.8349 GB, free: 8.973 MB / 0.6544 GB Notification: Performance of matching and sorting (n=22): time 0.0005826/0.1693, allocations: 347.7 kB / 0.8353 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.906e-05/0.1694, allocations: 71.33 kB / 0.8353 GB, free: 8.547 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.1695, allocations: 179.2 kB / 0.8355 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1695, allocations: 33.7 kB / 0.8355 GB, free: 8.32 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.174e-05/0.1696, allocations: 136.4 kB / 0.8357 GB, free: 8.184 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.1696, allocations: 59.2 kB / 0.8357 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/0.1697, allocations: 65.69 kB / 0.8358 GB, free: 8.055 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.037e-05/0.1698, allocations: 338.8 kB / 0.8361 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.17, allocations: 95.94 kB / 0.8362 GB, free: 7.621 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.1702, allocations: 228 kB / 0.8364 GB, free: 7.34 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003807/0.1706, allocations: 335.9 kB / 0.8367 GB, free: 6.953 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1706, allocations: 7.938 kB / 0.8367 GB, free: 6.945 MB / 0.6544 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005041/0.1711, allocations: 361 kB / 0.8371 GB, free: 6.586 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.1711, allocations: 8 kB / 0.8371 GB, free: 6.578 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.1712, allocations: 4 kB / 0.8371 GB, free: 6.574 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1712, allocations: 4 kB / 0.8371 GB, free: 6.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.1713, allocations: 55.91 kB / 0.8372 GB, free: 6.516 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.1714, allocations: 11.88 kB / 0.8372 GB, free: 6.504 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001705/0.1715, allocations: 44.11 kB / 0.8372 GB, free: 6.461 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.1716, allocations: 16.02 kB / 0.8372 GB, free: 6.445 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 26 (pyt.firstTrigger,$PRE.pyt.firstTrigger,pyt.yR[2],$PRE.pyt.yR[2],pyt.uRIntPre[1],$PRE.pyt.uRIntPre[1],pyt.uRIntPre[2],$PRE.pyt.uRIntPre[2],pyt.uRIntPre[3],$PRE.pyt.uRIntPre[3],pyt.uRIntPre[4],$PRE.pyt.uRIntPre[4],pyt.uRWri[1],$PRE.pyt.uRWri[1],pyt.uRWri[4],$PRE.pyt.uRWri[4],pyt.sampleTrigger,$whenCondition1,onOffCon.y,$PRE.onOffCon.y,pyt.uRWri[3],$PRE.pyt.uRWri[3],pyt.yR[1],$PRE.pyt.yR[1],pyt.uRWri[2],$PRE.pyt.uRWri[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 42 * 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.0001264/0.1717, allocations: 171.4 kB / 0.8374 GB, free: 6.27 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.1717, allocations: 15.81 kB / 0.8374 GB, free: 6.254 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.19e-05/0.1718, allocations: 25.86 kB / 0.8374 GB, free: 6.223 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1718, allocations: 7.938 kB / 0.8374 GB, free: 6.215 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.1718, allocations: 4.078 kB / 0.8374 GB, free: 6.211 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1718, allocations: 3.984 kB / 0.8374 GB, free: 6.207 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008113/0.1726, allocations: 0.6301 MB / 0.8381 GB, free: 5.523 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1726, allocations: 0 / 0.8381 GB, free: 5.523 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.1727, allocations: 23.92 kB / 0.8381 GB, free: 5.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1727, allocations: 0 / 0.8381 GB, free: 5.5 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.1728, allocations: 15.92 kB / 0.8381 GB, free: 5.484 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.1728, allocations: 3.984 kB / 0.8381 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1728, allocations: 4 kB / 0.8381 GB, free: 5.477 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000595/0.1734, allocations: 473.4 kB / 0.8386 GB, free: 5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.1734, allocations: 88.92 kB / 0.8386 GB, free: 4.895 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.1735, allocations: 15.97 kB / 0.8387 GB, free: 4.879 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.1736, allocations: 27.97 kB / 0.8387 GB, free: 4.852 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.1737, allocations: 15.98 kB / 0.8387 GB, free: 4.836 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.1737, allocations: 11.98 kB / 0.8387 GB, free: 4.824 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.114e-05/0.1738, allocations: 131.2 kB / 0.8388 GB, free: 4.695 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1738, allocations: 0 / 0.8388 GB, free: 4.695 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0003612/0.1742, allocations: 107.8 kB / 0.8389 GB, free: 4.59 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pyt.uRInt[1],pyt.uRInt[2],pyt.uRInt[3],pyt.uRInt[4]) * Number of discrete variables: 14 (pyt.sampleTrigger,$whenCondition1,pyt.firstTrigger,pyt.yR[1],pyt.yR[2],pyt.uRIntPre[1],pyt.uRIntPre[2],pyt.uRIntPre[3],pyt.uRIntPre[4],pyt.uRWri[1],pyt.uRWri[2],pyt.uRWri[3],pyt.uRWri[4],onOffCon.y) * Number of discrete states: 5 (pyt.uR[1],pyt.uR[2],pyt.uR[3],pyt.uR[4],onOffCon.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0005172/0.1747, allocations: 308.1 kB / 0.8392 GB, free: 4.344 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003986/0.1751, allocations: 247.5 kB / 0.8395 GB, free: 4.102 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1751, allocations: 0 / 0.8395 GB, free: 4.102 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.1753, allocations: 94.02 kB / 0.8396 GB, free: 4.012 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.1756, allocations: 31.61 kB / 0.8396 GB, free: 3.98 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006592/0.1762, allocations: 469.1 kB / 0.84 GB, free: 3.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.1765, allocations: 0.744 MB / 0.8408 GB, free: 2.73 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001094/0.1766, allocations: 49.91 kB / 0.8408 GB, free: 2.68 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.1767, allocations: 19.44 kB / 0.8408 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of SimCode: time 2.11e-07/0.1767, allocations: 0 / 0.8408 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of Templates: time 0.005395/0.1821, allocations: 3.128 MB / 0.8439 GB, free: 15.54 MB / 0.67 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.makefile (rm -f Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.sim & ./Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Obsolete.Utilities.IO.Python27.Examples.SimpleRoom.pipe 2>&1)