Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_0_0_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.0/package.mo): time 2.563/2.563, allocations: 284.9 MB / 292.4 MB, free: 10.61 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.001415/0.001415, allocations: 180.8 kB / 360.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.146/2.146, allocations: 205.3 MB / 0.6191 GB, free: 12.24 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.001157/0.001156, allocations: 94.78 kB / 0.7321 GB, free: 44.76 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.763e-05/2.78e-05, allocations: 3.984 kB / 0.8509 GB, free: 3.375 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8433/0.8433, allocations: 115.3 MB / 0.9634 GB, free: 78.35 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/1.08, allocations: 139.2 MB / 1.099 GB, free: 1.242 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/1.08, allocations: 79.95 kB / 1.099 GB, free: 1.164 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02199/1.102, allocations: 4.973 MB / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.452e-06/1.102, allocations: 0 / 1.104 GB, free: 12.25 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.582e-05/1.102, allocations: 8.406 kB / 1.104 GB, free: 12.24 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.0007089/1.103, allocations: 0.5182 MB / 1.105 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/1.103, allocations: 8.031 kB / 1.105 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/1.103, allocations: 25 kB / 1.105 GB, free: 11.62 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/1.103, allocations: 228.2 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.041e-05/1.103, allocations: 4 kB / 1.105 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.125e-05/1.103, allocations: 12.75 kB / 1.105 GB, free: 11.35 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000203/1.103, allocations: 51.92 kB / 1.105 GB, free: 11.3 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/1.104, allocations: 98.56 kB / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/1.104, allocations: 0 / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.255e-05/1.104, allocations: 0 / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/1.104, allocations: 0.5312 kB / 1.105 GB, free: 11.2 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008702/1.105, allocations: 402.6 kB / 1.106 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/1.105, allocations: 70.56 kB / 1.106 GB, free: 10.69 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/1.105, allocations: 64.83 kB / 1.106 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/1.105, allocations: 4 kB / 1.106 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/1.105, allocations: 164.1 kB / 1.106 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.174e-06/1.106, allocations: 0 / 1.106 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0006494/1.106, allocations: 197.7 kB / 1.106 GB, free: 10.24 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/1.106, allocations: 171.9 kB / 1.106 GB, free: 10.04 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001984/1.107, allocations: 154.3 kB / 1.106 GB, free: 9.875 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.689e-05/1.107, allocations: 31.11 kB / 1.106 GB, free: 9.84 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.284e-05/1.107, allocations: 112.4 kB / 1.107 GB, free: 9.723 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/1.107, allocations: 19.66 kB / 1.107 GB, free: 9.703 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-05/1.107, allocations: 4 kB / 1.107 GB, free: 9.699 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001341/1.107, allocations: 326.8 kB / 1.107 GB, free: 9.371 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/1.107, allocations: 39.98 kB / 1.107 GB, free: 9.332 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/1.107, allocations: 90.78 kB / 1.107 GB, free: 9.219 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/1.107, allocations: 47.97 kB / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/1.107, allocations: 0 / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005684/1.108, allocations: 197.4 kB / 1.107 GB, free: 8.973 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.568e-05/1.108, allocations: 118.8 kB / 1.107 GB, free: 8.832 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/1.108, allocations: 4 kB / 1.107 GB, free: 8.828 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/1.108, allocations: 4 kB / 1.107 GB, free: 8.824 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001825/1.108, allocations: 19.92 kB / 1.107 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/1.108, allocations: 4 kB / 1.107 GB, free: 8.801 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000163/1.109, allocations: 15.08 kB / 1.107 GB, free: 8.789 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/1.109, allocations: 12.19 kB / 1.107 GB, free: 8.777 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.0001775/1.109, allocations: 192 kB / 1.108 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005797/1.109, allocations: 209.4 kB / 1.108 GB, free: 8.359 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/1.109, allocations: 19.81 kB / 1.108 GB, free: 8.34 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.189e-05/1.109, allocations: 17.83 kB / 1.108 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/1.109, allocations: 0 / 1.108 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/1.11, allocations: 1.5 kB / 1.108 GB, free: 8.324 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/1.11, allocations: 3.953 kB / 1.108 GB, free: 8.32 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008265/1.11, allocations: 478.9 kB / 1.108 GB, free: 7.809 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/1.11, allocations: 4 kB / 1.108 GB, free: 7.805 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/1.111, allocations: 11.98 kB / 1.108 GB, free: 7.793 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/1.111, allocations: 3.938 kB / 1.108 GB, free: 7.789 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/1.111, allocations: 11.98 kB / 1.108 GB, free: 7.777 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/1.111, allocations: 0 / 1.108 GB, free: 7.777 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.111, allocations: 3.953 kB / 1.108 GB, free: 7.773 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006222/1.111, allocations: 308.7 kB / 1.109 GB, free: 7.457 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.472e-05/1.111, allocations: 85.02 kB / 1.109 GB, free: 7.355 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.999e-05/1.111, allocations: 6.312 kB / 1.109 GB, free: 7.352 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/1.112, allocations: 11.98 kB / 1.109 GB, free: 7.34 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/1.112, allocations: 8 kB / 1.109 GB, free: 7.332 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.258e-05/1.112, allocations: 11.94 kB / 1.109 GB, free: 7.32 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001306/1.112, allocations: 128.2 kB / 1.109 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.51e-07/1.112, allocations: 0 / 1.109 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004287/1.112, allocations: 39.91 kB / 1.109 GB, free: 7.156 MB / 0.7136 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.001122/1.113, allocations: 0.8673 MB / 1.11 GB, free: 6.273 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0005663/1.114, allocations: 325.5 kB / 1.11 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.114, allocations: 0 / 1.11 GB, free: 5.906 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002958/1.114, allocations: 186.8 kB / 1.11 GB, free: 5.699 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/1.115, allocations: 20.33 kB / 1.11 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009337/1.116, allocations: 254.5 kB / 1.11 GB, free: 5.398 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/1.116, allocations: 0.7202 MB / 1.111 GB, free: 4.652 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0001103/1.116, allocations: 16.55 kB / 1.111 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.045e-05/1.116, allocations: 31.42 kB / 1.111 GB, free: 4.605 MB / 0.7136 GB Notification: Performance of SimCode: time 9.52e-07/1.116, allocations: 0 / 1.111 GB, free: 4.605 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0384/1.155, allocations: 2.941 MB / 1.114 GB, free: 1.754 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003209/1.155, allocations: 148.6 kB / 1.114 GB, free: 1.559 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.733, allocations: 0 / 1.114 GB, free: 1.559 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)