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.512/1.512, allocations: 251.9 MB / 266.9 MB, free: 11 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.001173/0.001174, allocations: 178.8 kB / 326.5 MB, free: 2.234 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.782/1.782, allocations: 205.4 MB / 0.5775 GB, free: 20.27 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.000972/0.0009718, allocations: 96.42 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003427/0.0003427, allocations: 12.03 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2533, allocations: 106.3 MB / 0.9002 GB, free: 63.8 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1818/0.4352, allocations: 133.9 MB / 1.031 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.4355, allocations: 79.89 kB / 1.031 GB, free: 9.688 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0137/0.4492, allocations: 5.004 MB / 1.036 GB, free: 4.648 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.567e-06/0.4493, allocations: 0 / 1.036 GB, free: 4.648 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.634e-05/0.4493, allocations: 4 kB / 1.036 GB, free: 4.645 MB / 0.6823 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.001046/0.4503, allocations: 0.5561 MB / 1.036 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.615e-05/0.4504, allocations: 8.031 kB / 1.036 GB, free: 4.008 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.473e-05/0.4505, allocations: 34.56 kB / 1.036 GB, free: 3.965 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.389e-05/0.4506, allocations: 15.91 kB / 1.036 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.4511, allocations: 234.7 kB / 1.037 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.4511, allocations: 8 kB / 1.037 GB, free: 3.672 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.4512, allocations: 16 kB / 1.037 GB, free: 3.656 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.4515, allocations: 121.5 kB / 1.037 GB, free: 3.531 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.4516, allocations: 0 / 1.037 GB, free: 3.531 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.358e-05/0.4516, allocations: 4 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.4516, allocations: 0 / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002255/0.4518, allocations: 83.88 kB / 1.037 GB, free: 3.445 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008366/0.4527, allocations: 424.6 kB / 1.037 GB, free: 2.98 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002372/0.4529, allocations: 98.56 kB / 1.037 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.453, allocations: 0 / 1.037 GB, free: 2.875 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.4533, allocations: 186.9 kB / 1.038 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.432e-06/0.4533, allocations: 0 / 1.038 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.000839/0.4541, allocations: 0.5068 MB / 1.038 GB, free: 2.105 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.4543, allocations: 174.2 kB / 1.038 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.4545, allocations: 158.3 kB / 1.038 GB, free: 1.734 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.4545, allocations: 29.7 kB / 1.038 GB, free: 1.699 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.651e-05/0.4546, allocations: 108.4 kB / 1.039 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.582e-05/0.4546, allocations: 27.69 kB / 1.039 GB, free: 1.559 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.194e-05/0.4547, allocations: 8 kB / 1.039 GB, free: 1.551 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001902/0.4549, allocations: 322.8 kB / 1.039 GB, free: 1.227 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.455, allocations: 55.97 kB / 1.039 GB, free: 1.172 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.4552, allocations: 110.8 kB / 1.039 GB, free: 1.039 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.4554, allocations: 179 kB / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4554, allocations: 0 / 1.039 GB, free: 0.8398 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005877/0.456, allocations: 356 kB / 1.04 GB, free: 472 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.4561, allocations: 123 kB / 1.04 GB, free: 324 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.4562, allocations: 0 / 1.04 GB, free: 324 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.4562, allocations: 4 kB / 1.04 GB, free: 320 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.4563, allocations: 19.98 kB / 1.04 GB, free: 300 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.4564, allocations: 7.938 kB / 1.04 GB, free: 292 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.4565, allocations: 19.88 kB / 1.04 GB, free: 272 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.4565, allocations: 12 kB / 1.04 GB, free: 260 kB / 0.6823 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.0002175/0.4567, allocations: 194.3 kB / 1.04 GB, free: 44 kB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.265e-05/0.4568, allocations: 15.81 kB / 1.04 GB, free: 28 kB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.4568, allocations: 21.33 kB / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.4568, allocations: 0 / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.4569, allocations: 0 / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4569, allocations: 4 kB / 1.04 GB, free: 4 kB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007873/0.4577, allocations: 0.5876 MB / 1.041 GB, free: 15.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4577, allocations: 0 / 1.041 GB, free: 15.35 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.462e-05/0.4577, allocations: 11.98 kB / 1.041 GB, free: 15.34 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4578, allocations: 4 kB / 1.041 GB, free: 15.33 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.4578, allocations: 11.98 kB / 1.041 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.4578, allocations: 0 / 1.041 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4578, allocations: 7.891 kB / 1.041 GB, free: 15.31 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005536/0.4584, allocations: 406.7 kB / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.4584, allocations: 92.91 kB / 1.041 GB, free: 14.78 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.4585, allocations: 4 kB / 1.041 GB, free: 14.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.4586, allocations: 12 kB / 1.041 GB, free: 14.76 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.084e-05/0.4587, allocations: 7.984 kB / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.4587, allocations: 15.94 kB / 1.041 GB, free: 14.74 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001293/0.4588, allocations: 135.2 kB / 1.041 GB, free: 14.61 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4588, allocations: 3.938 kB / 1.041 GB, free: 14.6 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002937/0.4591, allocations: 40 kB / 1.041 GB, free: 14.56 MB / 0.698 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.001179/0.4603, allocations: 0.9688 MB / 1.042 GB, free: 13.56 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005572/0.4609, allocations: 365.5 kB / 1.043 GB, free: 13.16 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.4609, allocations: 0 / 1.043 GB, free: 13.16 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002789/0.4612, allocations: 219 kB / 1.043 GB, free: 12.92 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002782/0.4615, allocations: 13.72 kB / 1.043 GB, free: 12.9 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.4629, allocations: 1.621 MB / 1.044 GB, free: 11.2 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.4633, allocations: 0.716 MB / 1.045 GB, free: 10.46 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.124e-05/0.4634, allocations: 20.55 kB / 1.045 GB, free: 10.44 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.861e-05/0.4634, allocations: 39.42 kB / 1.045 GB, free: 10.4 MB / 0.698 GB Notification: Performance of SimCode: time 5.4e-06/0.4634, allocations: 0 / 1.045 GB, free: 10.4 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01501/0.4785, allocations: 3.285 MB / 1.048 GB, free: 7.262 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.4787, allocations: 190 kB / 1.048 GB, free: 7.02 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/2.184, allocations: 1.828 kB / 1.048 GB, free: 7.02 MB / 0.698 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)