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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001526, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 187.1 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.296/1.296, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.618/1.618, allocations: 292.3 MB / 0.549 GB, free: 12.74 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 68.3 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2277, allocations: 114.6 MB / 0.7836 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003112/0.2309, allocations: 1.604 MB / 0.7852 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2319, allocations: 0.6565 MB / 0.7858 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.2321, allocations: 7.938 kB / 0.7858 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.2322, allocations: 15.86 kB / 0.7859 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.2325, allocations: 47.75 kB / 0.7859 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.2329, allocations: 115.7 kB / 0.786 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002703/0.2332, allocations: 191.6 kB / 0.7862 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.2333, allocations: 37.03 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.2335, allocations: 83.81 kB / 0.7863 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.2336, allocations: 83.72 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.2337, allocations: 16 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.967e-05/0.2338, allocations: 24 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.295e-05/0.2339, allocations: 43.77 kB / 0.7865 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.098e-05/0.234, allocations: 67.72 kB / 0.7865 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002349/0.2342, allocations: 175.7 kB / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2342, allocations: 0 / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2342, allocations: 0 / 0.7867 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.2342, allocations: 0 / 0.7867 GB, free: 10.08 MB / 0.6075 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.0006796/0.2349, allocations: 0.5523 MB / 0.7872 GB, free: 9.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.235, allocations: 16.02 kB / 0.7873 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.14e-05/0.235, allocations: 38.75 kB / 0.7873 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.859e-05/0.2351, allocations: 16.84 kB / 0.7873 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.2354, allocations: 240.1 kB / 0.7875 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.2354, allocations: 12.38 kB / 0.7876 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.2354, allocations: 8.375 kB / 0.7876 GB, free: 9.082 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.2357, allocations: 117.5 kB / 0.7877 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.2357, allocations: 4 kB / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2357, allocations: 0 / 0.7877 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.2358, allocations: 4 kB / 0.7877 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.236, allocations: 67.94 kB / 0.7877 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006093/0.2366, allocations: 416.5 kB / 0.7881 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.2368, allocations: 94.62 kB / 0.7882 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001455/0.2369, allocations: 76.75 kB / 0.7883 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.237, allocations: 4 kB / 0.7883 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.2372, allocations: 170.7 kB / 0.7885 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.2372, allocations: 0 / 0.7885 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006801/0.2379, allocations: 368.7 kB / 0.7888 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.853e-05/0.238, allocations: 162.2 kB / 0.789 GB, free: 7.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.2382, allocations: 179.1 kB / 0.7892 GB, free: 7.293 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.2382, allocations: 29.7 kB / 0.7892 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.88e-05/0.2383, allocations: 108.4 kB / 0.7893 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.594e-05/0.2383, allocations: 23.66 kB / 0.7893 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.2384, allocations: 41.7 kB / 0.7893 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001001/0.2385, allocations: 334.8 kB / 0.7897 GB, free: 6.742 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2386, allocations: 47.97 kB / 0.7897 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.2388, allocations: 102.8 kB / 0.7898 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003213/0.2391, allocations: 316.9 kB / 0.7901 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2391, allocations: 0 / 0.7901 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004963/0.2396, allocations: 344 kB / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.619e-05/0.2397, allocations: 118.8 kB / 0.7906 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.2397, allocations: 0 / 0.7906 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2397, allocations: 4 kB / 0.7906 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2399, allocations: 24.23 kB / 0.7906 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.2399, allocations: 7.938 kB / 0.7906 GB, free: 5.656 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.363e-05/0.24, allocations: 8 kB / 0.7906 GB, free: 5.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.24, allocations: 8 kB / 0.7906 GB, free: 5.641 MB / 0.6075 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001634/0.2402, allocations: 206.9 kB / 0.7908 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.2402, allocations: 15.81 kB / 0.7908 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.2402, allocations: 13.41 kB / 0.7908 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2403, allocations: 0 / 0.7908 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.2403, allocations: 8 kB / 0.7908 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2403, allocations: 3.984 kB / 0.7908 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006913/0.241, allocations: 0.5874 MB / 0.7914 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.241, allocations: 4 kB / 0.7914 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.37e-05/0.2411, allocations: 15.92 kB / 0.7914 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.2411, allocations: 4 kB / 0.7914 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.2411, allocations: 8 kB / 0.7914 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2411, allocations: 0 / 0.7914 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2411, allocations: 7.938 kB / 0.7915 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005228/0.2416, allocations: 402.9 kB / 0.7918 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.2417, allocations: 88.92 kB / 0.7919 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.234e-05/0.2417, allocations: 4 kB / 0.7919 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.2418, allocations: 8 kB / 0.7919 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.2419, allocations: 19.86 kB / 0.792 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.2419, allocations: 8 kB / 0.792 GB, free: 4.113 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.62e-05/0.242, allocations: 136.3 kB / 0.7921 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.242, allocations: 0 / 0.7921 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003072/0.2423, allocations: 32 kB / 0.7921 GB, free: 3.949 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009156/0.2433, allocations: 0.9617 MB / 0.7931 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004596/0.2437, allocations: 357.5 kB / 0.7934 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2437, allocations: 0.5 kB / 0.7934 GB, free: 2.559 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.244, allocations: 214.7 kB / 0.7936 GB, free: 2.324 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.2443, allocations: 23.92 kB / 0.7936 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.2467, allocations: 2.109 MB / 0.7957 GB, free: 44 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.247, allocations: 0.708 MB / 0.7964 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.537e-05/0.2471, allocations: 16.55 kB / 0.7964 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.956e-05/0.2472, allocations: 39.36 kB / 0.7964 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of SimCode: time 1.884e-06/0.2472, allocations: 4 kB / 0.7964 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2677, allocations: 3.613 MB / 0.8 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.927/8.195, allocations: 15.98 kB / 0.8 GB, free: 11.72 MB / 0.6231 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)