Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004646/0.004646, allocations: 99.3 kB / 15.73 MB, free: 6.043 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.001153/0.001153, allocations: 190.6 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00201/0.00201, allocations: 283 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9276/0.9276, allocations: 169.2 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 95.84 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1651/0.1667, allocations: 86.98 MB / 0.7664 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002571/0.1693, allocations: 1.641 MB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008122/0.1701, allocations: 0.5461 MB / 0.7685 GB, free: 6.266 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.167e-05/0.1702, allocations: 11.94 kB / 0.7685 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1703, allocations: 19.8 kB / 0.7685 GB, free: 6.234 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002273/0.1706, allocations: 69.8 kB / 0.7686 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.1707, allocations: 63.84 kB / 0.7687 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001704/0.1709, allocations: 135.5 kB / 0.7688 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.1711, allocations: 61.38 kB / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1712, allocations: 51.78 kB / 0.7689 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001052/0.1713, allocations: 63.69 kB / 0.7689 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.583e-05/0.1713, allocations: 8 kB / 0.769 GB, free: 5.789 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.435e-05/0.1714, allocations: 24 kB / 0.769 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.94e-05/0.1715, allocations: 43.83 kB / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.283e-05/0.1716, allocations: 59.55 kB / 0.7691 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.1718, allocations: 147.4 kB / 0.7692 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1718, allocations: 0 / 0.7692 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1718, allocations: 0 / 0.7692 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.392e-06/0.1718, allocations: 4 kB / 0.7692 GB, free: 5.516 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005737/0.1724, allocations: 466.6 kB / 0.7697 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.1724, allocations: 12.03 kB / 0.7697 GB, free: 5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.521e-05/0.1725, allocations: 20.66 kB / 0.7697 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.1727, allocations: 241.5 kB / 0.7699 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.1728, allocations: 8.375 kB / 0.7699 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.1728, allocations: 4.312 kB / 0.7699 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002538/0.173, allocations: 113.9 kB / 0.7701 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.753e-06/0.1731, allocations: 0 / 0.7701 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.1731, allocations: 8 kB / 0.7701 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.1731, allocations: 0 / 0.7701 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.1733, allocations: 67.88 kB / 0.7701 GB, free: 4.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005228/0.1738, allocations: 380.5 kB / 0.7705 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001258/0.174, allocations: 34.55 kB / 0.7705 GB, free: 4.035 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.1741, allocations: 36.89 kB / 0.7706 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.1741, allocations: 0 / 0.7706 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.1743, allocations: 93.09 kB / 0.7706 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1743, allocations: 0 / 0.7706 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.0004095/0.1747, allocations: 129.3 kB / 0.7708 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.1748, allocations: 77.11 kB / 0.7708 GB, free: 3.66 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002283/0.175, allocations: 264.8 kB / 0.7711 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.175, allocations: 29.7 kB / 0.7711 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.1751, allocations: 120.1 kB / 0.7712 GB, free: 3.234 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.1751, allocations: 11.89 kB / 0.7712 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.1752, allocations: 17.72 kB / 0.7713 GB, free: 3.199 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.856e-05/0.1753, allocations: 326.8 kB / 0.7716 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.1754, allocations: 23.97 kB / 0.7716 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.1755, allocations: 47.41 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.1757, allocations: 70.5 kB / 0.7717 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1758, allocations: 0 / 0.7717 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002726/0.176, allocations: 109.4 kB / 0.7718 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.1761, allocations: 10.5 kB / 0.7718 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-06/0.1761, allocations: 0 / 0.7718 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.1761, allocations: 3.938 kB / 0.7718 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1762, allocations: 11.98 kB / 0.7718 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.1762, allocations: 3.984 kB / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.071e-05/0.1763, allocations: 11.94 kB / 0.7719 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.1763, allocations: 7.984 kB / 0.7719 GB, free: 2.551 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * 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.348e-05/0.1764, allocations: 129.8 kB / 0.772 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.269e-05/0.1764, allocations: 20.08 kB / 0.772 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.12e-05/0.1765, allocations: 21.19 kB / 0.772 GB, free: 2.371 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.1765, allocations: 7.922 kB / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1765, allocations: 0 / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1765, allocations: 0 / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001662/0.1767, allocations: 221.6 kB / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1767, allocations: 0 / 0.7722 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.783e-05/0.1768, allocations: 11.98 kB / 0.7723 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1768, allocations: 0 / 0.7723 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1768, allocations: 12 kB / 0.7723 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.1768, allocations: 3.938 kB / 0.7723 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1768, allocations: 0 / 0.7723 GB, free: 2.07 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000271/0.1771, allocations: 124.7 kB / 0.7724 GB, free: 1.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.283e-05/0.1771, allocations: 89 kB / 0.7725 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.1772, allocations: 0 / 0.7725 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.122e-05/0.1773, allocations: 19.92 kB / 0.7725 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.351e-05/0.1773, allocations: 4 kB / 0.7725 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.1773, allocations: 4 kB / 0.7725 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001576/0.1775, allocations: 188.5 kB / 0.7727 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1775, allocations: 0 / 0.7727 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002174/0.1777, allocations: 27.91 kB / 0.7727 GB, free: 1.586 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001875/0.1779, allocations: 120.3 kB / 0.7728 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002722/0.1782, allocations: 55.94 kB / 0.7729 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1782, allocations: 3.938 kB / 0.7729 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.1783, allocations: 28.16 kB / 0.7729 GB, free: 1.379 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002805/0.1786, allocations: 45.72 kB / 0.7729 GB, free: 1.34 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004593/0.1791, allocations: 272.3 kB / 0.7732 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.1793, allocations: 0.7236 MB / 0.7739 GB, free: 304 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.143e-05/0.1794, allocations: 24.66 kB / 0.7739 GB, free: 280 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.542e-05/0.1795, allocations: 19.38 kB / 0.774 GB, free: 260 kB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.1795, allocations: 0 / 0.774 GB, free: 260 kB / 0.5606 GB Notification: Performance of Templates: time 0.3049/0.4843, allocations: 1.788 MB / 0.7757 GB, free: 14.34 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)