Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7545/0.7545, allocations: 143.8 MB / 159.1 MB, free: 6.488 MB / 122.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 178 kB / 192 MB, free: 6.727 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 225.7 MB / 450.4 MB, free: 4.984 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008448/0.0008448, allocations: 114.9 kB / 0.5211 GB, free: 1.648 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001619/0.001619, allocations: 277.5 kB / 0.6025 GB, free: 49.31 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004504/0.0004503, allocations: 15.03 kB / 0.6948 GB, free: 59.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1649, allocations: 82.46 MB / 0.7753 GB, free: 14.38 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001947/0.1668, allocations: 1.333 MB / 0.7766 GB, free: 13.04 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008293/0.1677, allocations: 0.5148 MB / 0.7771 GB, free: 12.52 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.094e-05/0.1678, allocations: 4 kB / 0.7771 GB, free: 12.52 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.168, allocations: 19.86 kB / 0.7771 GB, free: 12.5 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002304/0.1682, allocations: 59.73 kB / 0.7772 GB, free: 12.44 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001516/0.1684, allocations: 55.94 kB / 0.7772 GB, free: 12.38 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.000178/0.1685, allocations: 127.6 kB / 0.7774 GB, free: 12.26 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1687, allocations: 41.73 kB / 0.7774 GB, free: 12.21 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.1689, allocations: 47.72 kB / 0.7775 GB, free: 12.16 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.169, allocations: 59.69 kB / 0.7775 GB, free: 12.11 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.169, allocations: 0 / 0.7775 GB, free: 12.11 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.939e-05/0.1691, allocations: 20 kB / 0.7775 GB, free: 12.09 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 8.576e-05/0.1692, allocations: 35.89 kB / 0.7776 GB, free: 12.05 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 8.454e-05/0.1693, allocations: 81.25 kB / 0.7776 GB, free: 11.96 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1695, allocations: 131.4 kB / 0.7778 GB, free: 11.84 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1695, allocations: 0 / 0.7778 GB, free: 11.84 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1695, allocations: 0 / 0.7778 GB, free: 11.84 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1695, allocations: 3.938 kB / 0.7778 GB, free: 11.83 MB / 458.7 MB 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.0006305/0.1701, allocations: 454.8 kB / 0.7782 GB, free: 11.34 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1702, allocations: 8.031 kB / 0.7782 GB, free: 11.33 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.1702, allocations: 16.75 kB / 0.7782 GB, free: 11.32 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/0.1705, allocations: 232.8 kB / 0.7784 GB, free: 11.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.1705, allocations: 12.25 kB / 0.7785 GB, free: 11.04 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.626e-05/0.1706, allocations: 8.375 kB / 0.7785 GB, free: 11.03 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002722/0.1708, allocations: 118 kB / 0.7786 GB, free: 10.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1709, allocations: 0 / 0.7786 GB, free: 10.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1709, allocations: 8 kB / 0.7786 GB, free: 10.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-06/0.1709, allocations: 0 / 0.7786 GB, free: 10.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002322/0.1711, allocations: 75.94 kB / 0.7787 GB, free: 10.82 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.1717, allocations: 392.5 kB / 0.779 GB, free: 10.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001281/0.1718, allocations: 46.55 kB / 0.7791 GB, free: 10.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1719, allocations: 40.89 kB / 0.7791 GB, free: 10.29 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.1719, allocations: 0 / 0.7791 GB, free: 10.29 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.1722, allocations: 105 kB / 0.7792 GB, free: 10.17 MB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 2.425e-06/0.1722, allocations: 4 kB / 0.7792 GB, free: 10.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004267/0.1726, allocations: 145.4 kB / 0.7794 GB, free: 10.02 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.1727, allocations: 81.09 kB / 0.7794 GB, free: 9.922 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002505/0.173, allocations: 248.9 kB / 0.7797 GB, free: 9.672 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.173, allocations: 29.7 kB / 0.7797 GB, free: 9.637 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.67e-05/0.1731, allocations: 132 kB / 0.7798 GB, free: 9.504 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.1731, allocations: 11.75 kB / 0.7798 GB, free: 9.492 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-06/0.1731, allocations: 0 / 0.7798 GB, free: 9.492 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1733, allocations: 326.8 kB / 0.7802 GB, free: 9.164 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1734, allocations: 35.97 kB / 0.7802 GB, free: 9.129 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1735, allocations: 59.41 kB / 0.7802 GB, free: 9.059 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.1737, allocations: 78.56 kB / 0.7803 GB, free: 8.973 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1737, allocations: 3.938 kB / 0.7803 GB, free: 8.969 MB / 458.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003027/0.174, allocations: 117.5 kB / 0.7804 GB, free: 8.848 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1741, allocations: 8 kB / 0.7804 GB, free: 8.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1741, allocations: 0 / 0.7804 GB, free: 8.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1741, allocations: 7.922 kB / 0.7804 GB, free: 8.832 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.1742, allocations: 15.98 kB / 0.7805 GB, free: 8.816 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1742, allocations: 3.938 kB / 0.7805 GB, free: 8.812 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.298e-05/0.1743, allocations: 23.97 kB / 0.7805 GB, free: 8.789 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.1744, allocations: 7.984 kB / 0.7805 GB, free: 8.781 MB / 458.7 MB 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 0.000109/0.1745, allocations: 121.8 kB / 0.7806 GB, free: 8.652 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.1745, allocations: 19.8 kB / 0.7806 GB, free: 8.633 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.1745, allocations: 17.25 kB / 0.7807 GB, free: 8.617 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1745, allocations: 7.938 kB / 0.7807 GB, free: 8.609 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1746, allocations: 0 / 0.7807 GB, free: 8.609 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1746, allocations: 0 / 0.7807 GB, free: 8.609 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.1747, allocations: 213.6 kB / 0.7809 GB, free: 8.352 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1747, allocations: 4 kB / 0.7809 GB, free: 8.348 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.093e-05/0.1748, allocations: 15.98 kB / 0.7809 GB, free: 8.332 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.1748, allocations: 3.938 kB / 0.7809 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.1749, allocations: 0 / 0.7809 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.58e-06/0.1749, allocations: 7.938 kB / 0.7809 GB, free: 8.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1749, allocations: 3.938 kB / 0.7809 GB, free: 8.316 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002942/0.1752, allocations: 136.8 kB / 0.781 GB, free: 8.164 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.416e-05/0.1752, allocations: 96.91 kB / 0.7811 GB, free: 8.051 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.227e-05/0.1753, allocations: 0 / 0.7811 GB, free: 8.051 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-05/0.1754, allocations: 23.92 kB / 0.7811 GB, free: 8.027 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.118e-05/0.1754, allocations: 3.984 kB / 0.7811 GB, free: 8.023 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.395e-05/0.1755, allocations: 4.328 kB / 0.7811 GB, free: 8.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0001841/0.1756, allocations: 192.5 kB / 0.7813 GB, free: 7.832 MB / 458.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1757, allocations: 0 / 0.7813 GB, free: 7.832 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0001972/0.1759, allocations: 16 kB / 0.7813 GB, free: 7.816 MB / 458.7 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 ($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.0002698/0.1761, allocations: 139.8 kB / 0.7815 GB, free: 7.684 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0002766/0.1764, allocations: 67.95 kB / 0.7815 GB, free: 7.617 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1764, allocations: 0 / 0.7815 GB, free: 7.617 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.1765, allocations: 35.97 kB / 0.7816 GB, free: 7.582 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.1768, allocations: 37.34 kB / 0.7816 GB, free: 7.547 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005685/0.1774, allocations: 350 kB / 0.7819 GB, free: 7.176 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.1777, allocations: 0.7121 MB / 0.7826 GB, free: 6.438 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 6.455e-05/0.1778, allocations: 24.47 kB / 0.7827 GB, free: 6.414 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.1779, allocations: 11.44 kB / 0.7827 GB, free: 6.402 MB / 458.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1779, allocations: 0 / 0.7827 GB, free: 6.402 MB / 458.7 MB Notification: Performance of Templates: time 0.004421/0.1823, allocations: 1.607 MB / 0.7842 GB, free: 4.816 MB / 458.7 MB 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)