Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.335/1.335, allocations: 251.9 MB / 266.9 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 181.5 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.727/1.727, allocations: 205.4 MB / 0.5775 GB, free: 20.55 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009172/0.0009172, allocations: 96.34 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004564/0.0004566, allocations: 8.25 kB / 0.7963 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.173, allocations: 106.3 MB / 0.9002 GB, free: 64.36 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001705/0.1748, allocations: 1.301 MB / 0.9014 GB, free: 63.04 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0007225/0.1755, allocations: 0.6048 MB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.336e-05/0.1756, allocations: 4 kB / 0.902 GB, free: 62.43 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.1757, allocations: 7.922 kB / 0.902 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001821/0.1759, allocations: 59.78 kB / 0.9021 GB, free: 62.36 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.1763, allocations: 95.77 kB / 0.9022 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001178/0.1764, allocations: 95.83 kB / 0.9023 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.1765, allocations: 17.11 kB / 0.9023 GB, free: 62.16 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.1767, allocations: 67.83 kB / 0.9023 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.1768, allocations: 71.72 kB / 0.9024 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.1768, allocations: 8 kB / 0.9024 GB, free: 62.01 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.527e-05/0.1769, allocations: 12 kB / 0.9024 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.348e-05/0.177, allocations: 27.91 kB / 0.9025 GB, free: 61.97 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.189e-05/0.177, allocations: 49.64 kB / 0.9025 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.1772, allocations: 115.8 kB / 0.9026 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1772, allocations: 0 / 0.9026 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of FrontEnd: time 3.086e-06/0.1772, allocations: 0 / 0.9026 GB, free: 61.8 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.1772, allocations: 3.938 kB / 0.9026 GB, free: 61.8 MB / 0.6042 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.0005158/0.1777, allocations: 0.5214 MB / 0.9031 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.1778, allocations: 8.031 kB / 0.9031 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.1778, allocations: 42.56 kB / 0.9032 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.358e-05/0.1778, allocations: 23.77 kB / 0.9032 GB, free: 61.12 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.1781, allocations: 234.7 kB / 0.9034 GB, free: 60.86 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.1781, allocations: 8 kB / 0.9034 GB, free: 60.85 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.1781, allocations: 12 kB / 0.9034 GB, free: 60.84 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.1784, allocations: 117.6 kB / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1784, allocations: 0 / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.1784, allocations: 4 kB / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1784, allocations: 0 / 0.9036 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.1786, allocations: 83.88 kB / 0.9036 GB, free: 60.63 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.1791, allocations: 424.6 kB / 0.904 GB, free: 60.16 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.1793, allocations: 102.5 kB / 0.9041 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1793, allocations: 7.984 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.1795, allocations: 182.7 kB / 0.9043 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.1796, allocations: 0 / 0.9043 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.000657/0.1802, allocations: 0.5107 MB / 0.9048 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.1803, allocations: 166.2 kB / 0.905 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1804, allocations: 175.1 kB / 0.9052 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.1804, allocations: 33.7 kB / 0.9052 GB, free: 58.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.1805, allocations: 112.5 kB / 0.9053 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.103e-05/0.1805, allocations: 23.66 kB / 0.9053 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.1805, allocations: 0 / 0.9053 GB, free: 58.72 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.501e-05/0.1806, allocations: 330.8 kB / 0.9056 GB, free: 58.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.1807, allocations: 51.95 kB / 0.9057 GB, free: 58.34 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.1808, allocations: 114.8 kB / 0.9058 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.181, allocations: 170.8 kB / 0.9059 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.181, allocations: 4 kB / 0.906 GB, free: 58 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004055/0.1814, allocations: 352 kB / 0.9063 GB, free: 57.63 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.774e-05/0.1815, allocations: 121.5 kB / 0.9064 GB, free: 57.49 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.1815, allocations: 8.25 kB / 0.9064 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1815, allocations: 4 kB / 0.9064 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.1816, allocations: 19.94 kB / 0.9064 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.1816, allocations: 4 kB / 0.9064 GB, free: 57.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.1817, allocations: 23.84 kB / 0.9065 GB, free: 57.43 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.1817, allocations: 7.984 kB / 0.9065 GB, free: 57.42 MB / 0.6042 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.0001016/0.1819, allocations: 194.2 kB / 0.9067 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.426e-05/0.1819, allocations: 19.91 kB / 0.9067 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.127e-05/0.1819, allocations: 17.41 kB / 0.9067 GB, free: 57.18 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.1819, allocations: 3.984 kB / 0.9067 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1819, allocations: 3.953 kB / 0.9067 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1819, allocations: 0 / 0.9067 GB, free: 57.17 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005441/0.1825, allocations: 0.5878 MB / 0.9073 GB, free: 56.51 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.1825, allocations: 0 / 0.9073 GB, free: 56.51 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.416e-05/0.1826, allocations: 23.86 kB / 0.9073 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1826, allocations: 0 / 0.9073 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.1826, allocations: 7.984 kB / 0.9073 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1826, allocations: 7.953 kB / 0.9073 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1826, allocations: 0 / 0.9073 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.1831, allocations: 414.6 kB / 0.9077 GB, free: 56.04 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/0.1831, allocations: 92.95 kB / 0.9078 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1831, allocations: 4 kB / 0.9078 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1833, allocations: 15.98 kB / 0.9078 GB, free: 55.91 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.1833, allocations: 7.953 kB / 0.9078 GB, free: 55.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.584e-05/0.1833, allocations: 15.98 kB / 0.9078 GB, free: 55.89 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.571e-05/0.1834, allocations: 127.2 kB / 0.908 GB, free: 55.76 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1834, allocations: 0 / 0.908 GB, free: 55.76 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002881/0.1837, allocations: 35.98 kB / 0.908 GB, free: 55.73 MB / 0.6042 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.0006713/0.1844, allocations: 0.9581 MB / 0.9089 GB, free: 54.73 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003656/0.1848, allocations: 373.4 kB / 0.9093 GB, free: 54.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1848, allocations: 0 / 0.9093 GB, free: 54.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001758/0.185, allocations: 214.7 kB / 0.9095 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002111/0.1852, allocations: 20.12 kB / 0.9095 GB, free: 54.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007861/0.186, allocations: 1.614 MB / 0.9111 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.1861, allocations: 0.716 MB / 0.9118 GB, free: 51.63 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.132e-05/0.1862, allocations: 24.53 kB / 0.9118 GB, free: 51.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.1862, allocations: 35.42 kB / 0.9118 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of SimCode: time 2.6e-07/0.1862, allocations: 0 / 0.9118 GB, free: 51.57 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0125/0.1987, allocations: 3.321 MB / 0.9151 GB, free: 48.41 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001212/0.1989, allocations: 187.7 kB / 0.9153 GB, free: 48.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.551/1.75, allocations: 7.438 kB / 0.9153 GB, free: 48.16 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)