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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.873/1.873, allocations: 289.9 MB / 297.4 MB, free: 6.352 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.001173/0.001173, allocations: 176.8 kB / 366.7 MB, free: 1.645 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.948/1.948, allocations: 205.3 MB / 0.626 GB, free: 7.156 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009061/0.0009059, allocations: 86.97 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.186e-05/2.186e-05, allocations: 4 kB / 0.8598 GB, free: 12.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8071/0.8072, allocations: 116.3 MB / 0.9733 GB, free: 76.2 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2305/1.038, allocations: 140.4 MB / 1.11 GB, free: 9.695 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003166/1.038, allocations: 84.97 kB / 1.111 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01448/1.053, allocations: 4.954 MB / 1.115 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.504e-06/1.053, allocations: 1.312 kB / 1.115 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.137e-05/1.053, allocations: 0 / 1.115 GB, free: 4.684 MB / 0.7136 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.0007381/1.053, allocations: 0.5229 MB / 1.116 GB, free: 4.094 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/1.054, allocations: 8.594 kB / 1.116 GB, free: 4.086 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.32e-05/1.054, allocations: 19.81 kB / 1.116 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/1.054, allocations: 231.8 kB / 1.116 GB, free: 3.801 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/1.054, allocations: 4 kB / 1.116 GB, free: 3.797 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/1.054, allocations: 12.94 kB / 1.116 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000158/1.054, allocations: 43.98 kB / 1.116 GB, free: 3.742 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/1.054, allocations: 102.1 kB / 1.116 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/1.055, allocations: 0 / 1.116 GB, free: 3.641 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/1.055, allocations: 4 kB / 1.116 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/1.055, allocations: 0 / 1.116 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000758/1.055, allocations: 395.5 kB / 1.117 GB, free: 3.215 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/1.055, allocations: 81.16 kB / 1.117 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/1.056, allocations: 63.44 kB / 1.117 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/1.056, allocations: 0 / 1.117 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002056/1.056, allocations: 166.7 kB / 1.117 GB, free: 2.879 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/1.056, allocations: 0 / 1.117 GB, free: 2.879 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0004657/1.056, allocations: 204.8 kB / 1.117 GB, free: 2.676 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/1.056, allocations: 166.2 kB / 1.117 GB, free: 2.477 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/1.057, allocations: 146.3 kB / 1.117 GB, free: 2.32 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.981e-05/1.057, allocations: 29.7 kB / 1.117 GB, free: 2.285 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.854e-05/1.057, allocations: 108.4 kB / 1.118 GB, free: 2.172 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/1.057, allocations: 30.17 kB / 1.118 GB, free: 2.145 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/1.057, allocations: 4 kB / 1.118 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001463/1.057, allocations: 333.9 kB / 1.118 GB, free: 1.809 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.16e-05/1.057, allocations: 35.98 kB / 1.118 GB, free: 1.773 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/1.057, allocations: 84.36 kB / 1.118 GB, free: 1.668 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/1.057, allocations: 56.66 kB / 1.118 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/1.057, allocations: 0 / 1.118 GB, free: 1.613 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003655/1.058, allocations: 197.3 kB / 1.118 GB, free: 1.414 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.394e-05/1.058, allocations: 116.3 kB / 1.118 GB, free: 1.277 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/1.058, allocations: 4 kB / 1.118 GB, free: 1.273 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/1.058, allocations: 7.984 kB / 1.118 GB, free: 1.266 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/1.058, allocations: 23.98 kB / 1.118 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/1.058, allocations: 7.938 kB / 1.118 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/1.058, allocations: 11.94 kB / 1.118 GB, free: 1.223 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/1.058, allocations: 8 kB / 1.118 GB, free: 1.215 MB / 0.7136 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 () * 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.0001586/1.058, allocations: 176.3 kB / 1.119 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003601/1.059, allocations: 221.3 kB / 1.119 GB, free: 0.8008 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/1.059, allocations: 15.81 kB / 1.119 GB, free: 0.7852 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.971e-05/1.059, allocations: 17.84 kB / 1.119 GB, free: 0.7656 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/1.059, allocations: 0 / 1.119 GB, free: 0.7656 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/1.059, allocations: 4 kB / 1.119 GB, free: 0.7617 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/1.059, allocations: 0 / 1.119 GB, free: 0.7617 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/1.059, allocations: 481.7 kB / 1.119 GB, free: 256 kB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/1.059, allocations: 0.6875 kB / 1.119 GB, free: 256 kB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.416e-05/1.059, allocations: 19.98 kB / 1.119 GB, free: 236 kB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/1.06, allocations: 0 / 1.119 GB, free: 236 kB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/1.06, allocations: 4 kB / 1.119 GB, free: 232 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/1.06, allocations: 5.422 kB / 1.119 GB, free: 228 kB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.06, allocations: 0 / 1.119 GB, free: 228 kB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004266/1.06, allocations: 313.1 kB / 1.12 GB, free: 15.9 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/1.06, allocations: 93 kB / 1.12 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.876e-05/1.06, allocations: 4 kB / 1.12 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/1.06, allocations: 12 kB / 1.12 GB, free: 15.78 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.538e-05/1.06, allocations: 3.984 kB / 1.12 GB, free: 15.77 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/1.06, allocations: 15.98 kB / 1.12 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001171/1.06, allocations: 125.1 kB / 1.12 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.3e-07/1.06, allocations: 0 / 1.12 GB, free: 15.64 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003266/1.061, allocations: 39.86 kB / 1.12 GB, free: 15.6 MB / 0.7292 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) * 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.000886/1.062, allocations: 0.8631 MB / 1.121 GB, free: 14.72 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003838/1.062, allocations: 329.8 kB / 1.121 GB, free: 14.35 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/1.062, allocations: 8.125 kB / 1.121 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001886/1.062, allocations: 186.8 kB / 1.121 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/1.063, allocations: 15.7 kB / 1.121 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/1.063, allocations: 252.8 kB / 1.122 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/1.064, allocations: 0.708 MB / 1.122 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.505e-05/1.064, allocations: 24.53 kB / 1.122 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/1.064, allocations: 39.42 kB / 1.122 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of SimCode: time 4.81e-07/1.064, allocations: 0 / 1.122 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.027/1.091, allocations: 2.956 MB / 1.125 GB, free: 10.19 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002265/1.091, allocations: 137.9 kB / 1.125 GB, free: 9.996 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.837, allocations: 4 kB / 1.125 GB, free: 9.992 MB / 0.7292 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/linux/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)