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.001036/0.001036, allocations: 108 kB / 15.61 MB, free: 152 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.00108/0.00108, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.377/1.377, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.633/1.633, allocations: 292.3 MB / 0.5489 GB, free: 12.83 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.001478/0.001478, allocations: 68.38 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2039, allocations: 114.5 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002778/0.2067, allocations: 1.611 MB / 0.7851 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000958/0.2077, allocations: 0.6603 MB / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.4e-05/0.2078, allocations: 0 / 0.7857 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.2079, allocations: 23.8 kB / 0.7857 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.2082, allocations: 50.64 kB / 0.7858 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.2086, allocations: 107.8 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.2088, allocations: 187.6 kB / 0.786 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.2089, allocations: 29.09 kB / 0.7861 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.2091, allocations: 83.77 kB / 0.7862 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.2092, allocations: 83.72 kB / 0.7862 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.2092, allocations: 12 kB / 0.7862 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.316e-05/0.2093, allocations: 39.97 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.597e-05/0.2094, allocations: 27.86 kB / 0.7863 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.882e-05/0.2095, allocations: 75.7 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002112/0.2097, allocations: 159.7 kB / 0.7865 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2097, allocations: 7.938 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2097, allocations: 0 / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.2097, allocations: 0 / 0.7865 GB, free: 10.23 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.0006657/0.2104, allocations: 0.564 MB / 0.7871 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2105, allocations: 8.031 kB / 0.7871 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.676e-05/0.2105, allocations: 34.75 kB / 0.7871 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.466e-05/0.2106, allocations: 20.84 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.2108, allocations: 232.1 kB / 0.7874 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.2109, allocations: 12.38 kB / 0.7874 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.2109, allocations: 16.38 kB / 0.7874 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.2111, allocations: 109.5 kB / 0.7875 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2112, allocations: 0 / 0.7875 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.2112, allocations: 8 kB / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.2112, allocations: 0 / 0.7875 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.2114, allocations: 71.88 kB / 0.7876 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006115/0.212, allocations: 420.6 kB / 0.788 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.2122, allocations: 86.56 kB / 0.7881 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.2124, allocations: 76.81 kB / 0.7881 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.2124, allocations: 4 kB / 0.7881 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.2127, allocations: 178.9 kB / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.2127, allocations: 0 / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006807/0.2134, allocations: 352.7 kB / 0.7887 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.2134, allocations: 166.2 kB / 0.7888 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2136, allocations: 183.1 kB / 0.789 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.2136, allocations: 25.7 kB / 0.789 GB, free: 7.426 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.997e-05/0.2137, allocations: 112.6 kB / 0.7891 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.2137, allocations: 27.64 kB / 0.7891 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.279e-05/0.2138, allocations: 37.72 kB / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.2139, allocations: 338.7 kB / 0.7895 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.214, allocations: 51.97 kB / 0.7896 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.2142, allocations: 106.8 kB / 0.7897 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003058/0.2145, allocations: 317 kB / 0.79 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2145, allocations: 0 / 0.79 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000473/0.215, allocations: 348 kB / 0.7903 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.511e-05/0.215, allocations: 118.8 kB / 0.7904 GB, free: 5.84 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2151, allocations: 4 kB / 0.7904 GB, free: 5.836 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.2151, allocations: 4 kB / 0.7904 GB, free: 5.832 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/0.2152, allocations: 19.92 kB / 0.7904 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.2152, allocations: 0 / 0.7904 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.363e-05/0.2153, allocations: 16 kB / 0.7904 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.027e-05/0.2153, allocations: 12.23 kB / 0.7905 GB, free: 5.785 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.0001437/0.2155, allocations: 202.2 kB / 0.7906 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.428e-05/0.2155, allocations: 19.81 kB / 0.7907 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.738e-05/0.2156, allocations: 13.41 kB / 0.7907 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2156, allocations: 0 / 0.7907 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2156, allocations: 0 / 0.7907 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2156, allocations: 7.922 kB / 0.7907 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.2163, allocations: 0.5875 MB / 0.7913 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2163, allocations: 0 / 0.7913 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.348e-05/0.2164, allocations: 15.92 kB / 0.7913 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2164, allocations: 0 / 0.7913 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.2164, allocations: 4 kB / 0.7913 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.2164, allocations: 4 kB / 0.7913 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2165, allocations: 7.922 kB / 0.7913 GB, free: 4.836 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000538/0.217, allocations: 402.7 kB / 0.7917 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.44e-05/0.217, allocations: 88.92 kB / 0.7918 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.994e-05/0.2171, allocations: 8 kB / 0.7918 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.2172, allocations: 7.938 kB / 0.7918 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.413e-05/0.2173, allocations: 15.86 kB / 0.7918 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.674e-05/0.2173, allocations: 12 kB / 0.7918 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.385e-05/0.2174, allocations: 128.3 kB / 0.7919 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2174, allocations: 4 kB / 0.7919 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002836/0.2177, allocations: 36 kB / 0.792 GB, free: 4.102 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.0009351/0.2186, allocations: 0.9571 MB / 0.7929 GB, free: 3.109 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004991/0.2191, allocations: 365.4 kB / 0.7932 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2192, allocations: 0 / 0.7932 GB, free: 2.703 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/0.2194, allocations: 202.8 kB / 0.7934 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.2197, allocations: 30.92 kB / 0.7935 GB, free: 2.453 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.222, allocations: 2.11 MB / 0.7955 GB, free: 200 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.2223, allocations: 0.708 MB / 0.7962 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.63e-05/0.2224, allocations: 24.48 kB / 0.7962 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.217e-05/0.2224, allocations: 31.42 kB / 0.7963 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of SimCode: time 4.51e-07/0.2225, allocations: 0 / 0.7963 GB, free: 15.41 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02016/0.2426, allocations: 3.594 MB / 0.7998 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.315/7.557, allocations: 0.5625 kB / 0.7998 GB, free: 11.89 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)