Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.693/1.693, allocations: 288.2 MB / 303.2 MB, free: 8.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 177 kB / 371.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.521/1.521, allocations: 205.4 MB / 0.6305 GB, free: 9.961 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008465/0.0008462, allocations: 98.84 kB / 0.7439 GB, free: 5.895 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003687, allocations: 10.78 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1738, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001538/0.1754, allocations: 1.301 MB / 0.9807 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0006918/0.1761, allocations: 0.5972 MB / 0.9813 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.975e-05/0.1762, allocations: 0 / 0.9813 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.1763, allocations: 15.86 kB / 0.9813 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001732/0.1765, allocations: 43.88 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003735/0.1769, allocations: 95.77 kB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.707e-05/0.177, allocations: 95.81 kB / 0.9816 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.966e-05/0.1771, allocations: 21.12 kB / 0.9816 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1772, allocations: 67.81 kB / 0.9816 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.909e-05/0.1773, allocations: 71.73 kB / 0.9817 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.1773, allocations: 4 kB / 0.9817 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.766e-05/0.1774, allocations: 15.98 kB / 0.9817 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 4.863e-05/0.1774, allocations: 27.84 kB / 0.9818 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.788e-05/0.1775, allocations: 49.64 kB / 0.9818 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001179/0.1776, allocations: 120 kB / 0.9819 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.1776, allocations: 8 kB / 0.9819 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1776, allocations: 0 / 0.9819 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 3.667e-06/0.1776, allocations: 0 / 0.9819 GB, free: 25.04 MB / 0.6198 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.0004419/0.178, allocations: 0.5173 MB / 0.9824 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.232e-05/0.1781, allocations: 16.02 kB / 0.9825 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.723e-05/0.1781, allocations: 38.56 kB / 0.9825 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.96e-05/0.1782, allocations: 15.81 kB / 0.9825 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.1784, allocations: 238.7 kB / 0.9827 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.1784, allocations: 12 kB / 0.9827 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.61e-05/0.1785, allocations: 12 kB / 0.9828 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002196/0.1787, allocations: 121.5 kB / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1787, allocations: 0 / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.1787, allocations: 4 kB / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1787, allocations: 0 / 0.9829 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.1789, allocations: 83.88 kB / 0.983 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004902/0.1794, allocations: 424.5 kB / 0.9834 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.1796, allocations: 102.5 kB / 0.9835 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.967e-05/0.1796, allocations: 4 kB / 0.9835 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002002/0.1798, allocations: 178.7 kB / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.1798, allocations: 0 / 0.9836 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0005942/0.1804, allocations: 0.5107 MB / 0.9841 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.1805, allocations: 166.2 kB / 0.9843 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.1806, allocations: 170.7 kB / 0.9845 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.598e-05/0.1806, allocations: 33.7 kB / 0.9845 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.1807, allocations: 116.4 kB / 0.9846 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.1807, allocations: 27.64 kB / 0.9846 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.049e-05/0.1807, allocations: 4 kB / 0.9846 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.1807, allocations: 326.8 kB / 0.9849 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1809, allocations: 55.95 kB / 0.985 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.181, allocations: 106.8 kB / 0.9851 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.1812, allocations: 174.8 kB / 0.9853 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1812, allocations: 4 kB / 0.9853 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004009/0.1816, allocations: 352 kB / 0.9856 GB, free: 20.87 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.941e-05/0.1816, allocations: 122.8 kB / 0.9857 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.1816, allocations: 0 / 0.9857 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.1817, allocations: 4 kB / 0.9857 GB, free: 20.72 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.984e-05/0.1818, allocations: 20.27 kB / 0.9857 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.1818, allocations: 8.141 kB / 0.9857 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.343e-05/0.1819, allocations: 23.94 kB / 0.9858 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.1819, allocations: 11.94 kB / 0.9858 GB, free: 20.66 MB / 0.6198 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.182, allocations: 197.1 kB / 0.986 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.182, allocations: 15.81 kB / 0.986 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.797e-05/0.1821, allocations: 17.41 kB / 0.986 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1821, allocations: 0 / 0.986 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1821, allocations: 4 kB / 0.986 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1821, allocations: 7.953 kB / 0.986 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005383/0.1826, allocations: 0.5915 MB / 0.9866 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1827, allocations: 0 / 0.9866 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.218e-05/0.1827, allocations: 15.98 kB / 0.9866 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1827, allocations: 4 kB / 0.9866 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1828, allocations: 4 kB / 0.9866 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1828, allocations: 0 / 0.9866 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1828, allocations: 3.953 kB / 0.9866 GB, free: 19.72 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004105/0.1832, allocations: 410.6 kB / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.886e-05/0.1832, allocations: 100.9 kB / 0.9871 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.1833, allocations: 4 kB / 0.9871 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.1834, allocations: 8 kB / 0.9871 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.986e-05/0.1834, allocations: 15.94 kB / 0.9871 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.1835, allocations: 15.97 kB / 0.9871 GB, free: 19.13 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.512e-05/0.1835, allocations: 124.3 kB / 0.9873 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1835, allocations: 0 / 0.9873 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002699/0.1838, allocations: 40 kB / 0.9873 GB, free: 18.97 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006515/0.1845, allocations: 0.9663 MB / 0.9882 GB, free: 17.97 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003942/0.1849, allocations: 373.8 kB / 0.9886 GB, free: 17.56 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1849, allocations: 4.062 kB / 0.9886 GB, free: 17.55 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.1851, allocations: 210.7 kB / 0.9888 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.1853, allocations: 21.14 kB / 0.9888 GB, free: 17.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007917/0.1861, allocations: 1.62 MB / 0.9904 GB, free: 15.61 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001133/0.1862, allocations: 0.716 MB / 0.9911 GB, free: 14.87 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.899e-05/0.1863, allocations: 20.53 kB / 0.9911 GB, free: 14.85 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.1863, allocations: 31.42 kB / 0.9912 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of SimCode: time 2.61e-07/0.1863, allocations: 0 / 0.9912 GB, free: 14.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01306/0.1994, allocations: 3.343 MB / 0.9944 GB, free: 11.63 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.1996, allocations: 187.1 kB / 0.9946 GB, free: 11.39 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.558/1.757, allocations: 0 / 0.9946 GB, free: 11.39 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)