Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001358/0.001357, allocations: 108 kB / 15.6 MB, free: 132 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.001516/0.001516, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.225/1.225, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.543/1.543, allocations: 292.3 MB / 0.5489 GB, free: 12.77 MB / 462.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.001263/0.001264, allocations: 68.05 kB / 0.6716 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.163, allocations: 114.6 MB / 0.7835 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002563/0.1656, allocations: 1.609 MB / 0.7851 GB, free: 11.69 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008455/0.1664, allocations: 0.6565 MB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.322e-05/0.1665, allocations: 7.938 kB / 0.7857 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.1666, allocations: 11.86 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001604/0.1668, allocations: 47.77 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.1671, allocations: 115.7 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001963/0.1673, allocations: 195.6 kB / 0.7861 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.629e-05/0.1674, allocations: 21.11 kB / 0.7861 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.1676, allocations: 87.81 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.1677, allocations: 83.72 kB / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.553e-05/0.1677, allocations: 12 kB / 0.7862 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.436e-05/0.1678, allocations: 35.98 kB / 0.7863 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.403e-05/0.1679, allocations: 31.86 kB / 0.7863 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.687e-05/0.168, allocations: 75.64 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.1682, allocations: 159.7 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1682, allocations: 0 / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1682, allocations: 0 / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.1682, allocations: 0 / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005843/0.1688, allocations: 0.5679 MB / 0.7871 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.1688, allocations: 8.031 kB / 0.7871 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.216e-05/0.1689, allocations: 34.75 kB / 0.7871 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.1689, allocations: 20.84 kB / 0.7872 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.1692, allocations: 228.2 kB / 0.7874 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1692, allocations: 8.375 kB / 0.7874 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.1692, allocations: 16.38 kB / 0.7874 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.1695, allocations: 121.5 kB / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.1695, allocations: 0 / 0.7875 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.1695, allocations: 8 kB / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.477e-06/0.1695, allocations: 0 / 0.7875 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001834/0.1697, allocations: 67.94 kB / 0.7876 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005441/0.1702, allocations: 420.5 kB / 0.788 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001688/0.1704, allocations: 82.53 kB / 0.7881 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.1706, allocations: 80.75 kB / 0.7881 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.1706, allocations: 0 / 0.7881 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.1709, allocations: 190.9 kB / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.1709, allocations: 0 / 0.7883 GB, free: 8.121 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006426/0.1715, allocations: 352.7 kB / 0.7887 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.033e-05/0.1716, allocations: 162.2 kB / 0.7888 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.1718, allocations: 179.1 kB / 0.789 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.079e-05/0.1718, allocations: 29.7 kB / 0.789 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/0.1718, allocations: 104.4 kB / 0.7891 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.663e-05/0.1719, allocations: 39.62 kB / 0.7891 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.177e-05/0.1719, allocations: 33.72 kB / 0.7892 GB, free: 7.16 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1721, allocations: 338.7 kB / 0.7895 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.1722, allocations: 51.97 kB / 0.7896 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.1723, allocations: 102.8 kB / 0.7897 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.1726, allocations: 312.9 kB / 0.7899 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1727, allocations: 0 / 0.7899 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004737/0.1731, allocations: 344 kB / 0.7903 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.1732, allocations: 127 kB / 0.7904 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1732, allocations: 4 kB / 0.7904 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1732, allocations: 4 kB / 0.7904 GB, free: 5.754 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.831e-05/0.1733, allocations: 15.98 kB / 0.7904 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1734, allocations: 4 kB / 0.7904 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.956e-05/0.1735, allocations: 12 kB / 0.7904 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1735, allocations: 11.98 kB / 0.7904 GB, free: 5.711 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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.0001332/0.1736, allocations: 202.2 kB / 0.7906 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.12e-05/0.1737, allocations: 19.81 kB / 0.7907 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.1737, allocations: 13.41 kB / 0.7907 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1737, allocations: 3.984 kB / 0.7907 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.1737, allocations: 0 / 0.7907 GB, free: 5.453 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1737, allocations: 3.984 kB / 0.7907 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006533/0.1744, allocations: 0.5916 MB / 0.7913 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.1744, allocations: 0 / 0.7913 GB, free: 4.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.143e-05/0.1745, allocations: 11.98 kB / 0.7913 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.1745, allocations: 4 kB / 0.7913 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.44e-05/0.1745, allocations: 8 kB / 0.7913 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.1745, allocations: 0 / 0.7913 GB, free: 4.766 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1745, allocations: 7.922 kB / 0.7913 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004994/0.175, allocations: 398.7 kB / 0.7917 GB, free: 4.34 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.335e-05/0.1751, allocations: 88.92 kB / 0.7918 GB, free: 4.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.402e-05/0.1751, allocations: 12 kB / 0.7918 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1752, allocations: 4 kB / 0.7918 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.773e-05/0.1753, allocations: 11.92 kB / 0.7918 GB, free: 4.207 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.1753, allocations: 12 kB / 0.7918 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.73e-05/0.1754, allocations: 136.2 kB / 0.7919 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1754, allocations: 0 / 0.7919 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002633/0.1757, allocations: 32 kB / 0.792 GB, free: 4.031 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0008356/0.1765, allocations: 0.9606 MB / 0.7929 GB, free: 3.039 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004499/0.177, allocations: 373.3 kB / 0.7932 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.177, allocations: 0 / 0.7932 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.1772, allocations: 202.7 kB / 0.7934 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.1775, allocations: 31.09 kB / 0.7935 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.1796, allocations: 2.11 MB / 0.7955 GB, free: 124 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.1799, allocations: 0.708 MB / 0.7962 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 5.398e-05/0.1799, allocations: 16.55 kB / 0.7962 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.272e-05/0.18, allocations: 35.42 kB / 0.7963 GB, free: 15.34 MB / 0.6231 GB Notification: Performance of SimCode: time 2.31e-07/0.18, allocations: 4 kB / 0.7963 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.55/1.73, allocations: 3.587 MB / 0.7998 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.408/11.14, allocations: 4.562 kB / 0.7998 GB, free: 11.81 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)