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.001188/0.001188, allocations: 105.4 kB / 15.7 MB, free: 24 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.001055/0.001055, allocations: 194.6 kB / 16.64 MB, free: 6.453 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.328/1.328, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.645/1.645, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001384/0.001384, allocations: 75.88 kB / 0.6718 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2016/0.203, allocations: 114.6 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002671/0.2057, allocations: 1.613 MB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008673/0.2066, allocations: 0.6487 MB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.141e-05/0.2066, allocations: 4 kB / 0.7859 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.2068, allocations: 23.78 kB / 0.7859 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.207, allocations: 43.77 kB / 0.7859 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.2073, allocations: 119.7 kB / 0.786 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002219/0.2076, allocations: 183.6 kB / 0.7862 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.2077, allocations: 29.09 kB / 0.7862 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.2078, allocations: 91.75 kB / 0.7863 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.208, allocations: 87.66 kB / 0.7864 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.208, allocations: 12 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.755e-05/0.2081, allocations: 27.98 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.131e-05/0.2082, allocations: 31.91 kB / 0.7865 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.977e-05/0.2082, allocations: 75.64 kB / 0.7866 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.2085, allocations: 171.7 kB / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2085, allocations: 0 / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.623e-06/0.2085, allocations: 0 / 0.7867 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.2085, allocations: 0 / 0.7867 GB, free: 10.1 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.000671/0.2092, allocations: 0.5601 MB / 0.7873 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2092, allocations: 8.031 kB / 0.7873 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.2093, allocations: 38.75 kB / 0.7873 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.286e-05/0.2093, allocations: 20.78 kB / 0.7873 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.2097, allocations: 240.1 kB / 0.7876 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.2097, allocations: 8.375 kB / 0.7876 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.2097, allocations: 12.38 kB / 0.7876 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002714/0.21, allocations: 125.4 kB / 0.7877 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.21, allocations: 0 / 0.7877 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.2101, allocations: 7.984 kB / 0.7877 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2101, allocations: 4 kB / 0.7877 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001922/0.2103, allocations: 63.95 kB / 0.7878 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006422/0.2109, allocations: 424.5 kB / 0.7882 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.2111, allocations: 86.53 kB / 0.7883 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.2113, allocations: 68.83 kB / 0.7883 GB, free: 8.27 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.2113, allocations: 7.984 kB / 0.7883 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.2116, allocations: 182.8 kB / 0.7885 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.2116, allocations: 0 / 0.7885 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006884/0.2123, allocations: 352.9 kB / 0.7888 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.471e-05/0.2124, allocations: 162.2 kB / 0.789 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.2125, allocations: 179.7 kB / 0.7892 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.2126, allocations: 29.7 kB / 0.7892 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.752e-05/0.2126, allocations: 108.4 kB / 0.7893 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.2127, allocations: 31.64 kB / 0.7893 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.717e-05/0.2128, allocations: 41.7 kB / 0.7894 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.2129, allocations: 326.8 kB / 0.7897 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.213, allocations: 47.97 kB / 0.7897 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.2132, allocations: 106.8 kB / 0.7898 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.2135, allocations: 309.2 kB / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2135, allocations: 0 / 0.7901 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004944/0.214, allocations: 348.1 kB / 0.7905 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.2141, allocations: 126.9 kB / 0.7906 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.2141, allocations: 4 kB / 0.7906 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.2141, allocations: 4 kB / 0.7906 GB, free: 5.695 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.2143, allocations: 19.98 kB / 0.7906 GB, free: 5.676 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.2143, allocations: 4 kB / 0.7906 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.566e-05/0.2144, allocations: 11.98 kB / 0.7906 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.2144, allocations: 8 kB / 0.7906 GB, free: 5.652 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.0001566/0.2146, allocations: 201.1 kB / 0.7908 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.2146, allocations: 15.81 kB / 0.7908 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.2147, allocations: 21.39 kB / 0.7908 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2147, allocations: 3.938 kB / 0.7909 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.2147, allocations: 3.984 kB / 0.7909 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.2147, allocations: 0 / 0.7909 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006785/0.2154, allocations: 0.5874 MB / 0.7914 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2154, allocations: 0 / 0.7914 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.235e-05/0.2154, allocations: 11.98 kB / 0.7914 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.2155, allocations: 0 / 0.7914 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.2155, allocations: 19.98 kB / 0.7915 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.2155, allocations: 0 / 0.7915 GB, free: 4.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2155, allocations: 3.938 kB / 0.7915 GB, free: 4.695 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.216, allocations: 394.7 kB / 0.7918 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.2161, allocations: 88.92 kB / 0.7919 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.2161, allocations: 4 kB / 0.7919 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.2162, allocations: 19.98 kB / 0.7919 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.512e-05/0.2163, allocations: 7.938 kB / 0.792 GB, free: 4.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.2163, allocations: 15.97 kB / 0.792 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.807e-05/0.2164, allocations: 132.8 kB / 0.7921 GB, free: 4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2164, allocations: 0 / 0.7921 GB, free: 4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002787/0.2167, allocations: 28 kB / 0.7921 GB, free: 3.973 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.0008913/0.2176, allocations: 0.965 MB / 0.7931 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004487/0.218, allocations: 369.6 kB / 0.7934 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.218, allocations: 0 / 0.7934 GB, free: 2.562 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.2183, allocations: 202.8 kB / 0.7936 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2186, allocations: 30.36 kB / 0.7936 GB, free: 2.312 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.2208, allocations: 2.117 MB / 0.7957 GB, free: 52 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.2211, allocations: 0.708 MB / 0.7964 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 6.756e-05/0.2211, allocations: 24.53 kB / 0.7964 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.587e-05/0.2212, allocations: 35.42 kB / 0.7965 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of SimCode: time 2.4e-07/0.2212, allocations: 0 / 0.7965 GB, free: 15.26 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01789/0.2391, allocations: 3.608 MB / 0.8 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.921/7.16, allocations: 0 / 0.8 GB, free: 11.74 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)