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.001185/0.001185, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 193.4 kB / 16.14 MB, free: 6.707 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.437/1.437, allocations: 205.1 MB / 222 MB, free: 4.766 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.744/1.744, allocations: 292.3 MB / 0.5484 GB, free: 13.61 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.001413/0.001413, allocations: 66.53 kB / 0.6709 GB, free: 26.51 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2103, allocations: 114.5 MB / 0.7828 GB, free: 13.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002737/0.2131, allocations: 1.663 MB / 0.7844 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009465/0.214, allocations: 0.6751 MB / 0.7851 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.705e-05/0.2141, allocations: 4 kB / 0.7851 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.2143, allocations: 23.86 kB / 0.7851 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001726/0.2144, allocations: 31.83 kB / 0.7851 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003552/0.2148, allocations: 107.8 kB / 0.7852 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001509/0.215, allocations: 159.7 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.68e-05/0.2151, allocations: 21.11 kB / 0.7854 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2152, allocations: 79.75 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.2153, allocations: 83.66 kB / 0.7856 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.2153, allocations: 11.94 kB / 0.7856 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.357e-05/0.2154, allocations: 20 kB / 0.7856 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.2155, allocations: 27.91 kB / 0.7856 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.184e-05/0.2156, allocations: 71.64 kB / 0.7857 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001919/0.2158, allocations: 155.8 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2158, allocations: 0 / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.81e-07/0.2158, allocations: 0 / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2158, allocations: 0 / 0.7858 GB, free: 10.73 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.0006185/0.2164, allocations: 0.5601 MB / 0.7864 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2165, allocations: 15.97 kB / 0.7864 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.2165, allocations: 38.75 kB / 0.7864 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.045e-05/0.2166, allocations: 12.84 kB / 0.7865 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.2169, allocations: 228.2 kB / 0.7867 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.2169, allocations: 12.38 kB / 0.7867 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.2169, allocations: 8.375 kB / 0.7867 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.2172, allocations: 125.5 kB / 0.7868 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.2172, allocations: 0 / 0.7868 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.2172, allocations: 4 kB / 0.7868 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2172, allocations: 0 / 0.7868 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.2174, allocations: 71.94 kB / 0.7869 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.218, allocations: 420.5 kB / 0.7873 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.2182, allocations: 86.53 kB / 0.7874 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.2184, allocations: 76.81 kB / 0.7874 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.2184, allocations: 3.938 kB / 0.7874 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000245/0.2186, allocations: 187 kB / 0.7876 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2187, allocations: 3.938 kB / 0.7876 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.000701/0.2194, allocations: 345 kB / 0.788 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.2195, allocations: 170.2 kB / 0.7881 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.2196, allocations: 178.5 kB / 0.7883 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.2196, allocations: 33.7 kB / 0.7883 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.096e-05/0.2197, allocations: 112.4 kB / 0.7884 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.2198, allocations: 23.66 kB / 0.7884 GB, free: 7.773 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.278e-05/0.2198, allocations: 45.69 kB / 0.7885 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.22, allocations: 322.8 kB / 0.7888 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.2201, allocations: 55.95 kB / 0.7889 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.2203, allocations: 105.6 kB / 0.789 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003102/0.2206, allocations: 312.9 kB / 0.7893 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.2206, allocations: 4 kB / 0.7893 GB, free: 6.848 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005036/0.2211, allocations: 344.3 kB / 0.7896 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.674e-05/0.2212, allocations: 124.9 kB / 0.7897 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.2212, allocations: 4 kB / 0.7897 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2212, allocations: 3.938 kB / 0.7897 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.2213, allocations: 19.98 kB / 0.7897 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.2214, allocations: 0 / 0.7897 GB, free: 6.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.568e-05/0.2215, allocations: 8 kB / 0.7897 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.2215, allocations: 12 kB / 0.7897 GB, free: 6.289 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.0001569/0.2217, allocations: 201.9 kB / 0.7899 GB, free: 6.07 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.2217, allocations: 19.81 kB / 0.79 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.2217, allocations: 13.41 kB / 0.79 GB, free: 6.035 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.07e-06/0.2217, allocations: 4 kB / 0.79 GB, free: 6.031 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.2218, allocations: 4 kB / 0.79 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2218, allocations: 0 / 0.79 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007024/0.2225, allocations: 0.5913 MB / 0.7906 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2225, allocations: 0 / 0.7906 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.577e-05/0.2226, allocations: 19.98 kB / 0.7906 GB, free: 5.348 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2226, allocations: 3.938 kB / 0.7906 GB, free: 5.344 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.755e-05/0.2226, allocations: 4 kB / 0.7906 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2226, allocations: 0 / 0.7906 GB, free: 5.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.2226, allocations: 3.938 kB / 0.7906 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005018/0.2231, allocations: 406.6 kB / 0.791 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.752e-05/0.2232, allocations: 88.91 kB / 0.7911 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.482e-05/0.2232, allocations: 12 kB / 0.7911 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.2233, allocations: 8 kB / 0.7911 GB, free: 4.785 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.2234, allocations: 11.92 kB / 0.7911 GB, free: 4.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.2234, allocations: 4 kB / 0.7911 GB, free: 4.77 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.558e-05/0.2235, allocations: 136.8 kB / 0.7912 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2235, allocations: 0 / 0.7912 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002793/0.2238, allocations: 36 kB / 0.7913 GB, free: 4.602 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.000885/0.2247, allocations: 0.9563 MB / 0.7922 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.2251, allocations: 361.4 kB / 0.7925 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2252, allocations: 4 kB / 0.7925 GB, free: 3.207 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002178/0.2254, allocations: 202.8 kB / 0.7927 GB, free: 2.984 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.2257, allocations: 23.92 kB / 0.7928 GB, free: 2.961 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002241/0.228, allocations: 2.135 MB / 0.7948 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002365/0.2282, allocations: 0.7044 MB / 0.7955 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.75e-05/0.2283, allocations: 24.47 kB / 0.7956 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.2284, allocations: 43.36 kB / 0.7956 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of SimCode: time 2.2e-07/0.2284, allocations: 0 / 0.7956 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01214/0.2405, allocations: 3.411 MB / 0.7989 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.2407, allocations: 211.5 kB / 0.7991 GB, free: 12.31 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/1.965, allocations: 0 / 0.7991 GB, free: 12.31 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 & /home/hudson/saved_omc/OMSimulator/install/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)