Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.509/1.509, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 180 kB / 326.6 MB, free: 2.211 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.577/1.577, allocations: 205.4 MB / 0.5777 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007381/0.0007379, allocations: 94.28 kB / 0.6823 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003034/0.0003034, allocations: 11.03 kB / 0.7965 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1958, allocations: 106.3 MB / 0.9003 GB, free: 63.79 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001921/0.1977, allocations: 1.305 MB / 0.9016 GB, free: 62.47 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0008157/0.1986, allocations: 0.6321 MB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.606e-05/0.1987, allocations: 4 kB / 0.9022 GB, free: 61.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.1989, allocations: 15.88 kB / 0.9022 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.1991, allocations: 37.56 kB / 0.9022 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000391/0.1994, allocations: 95.89 kB / 0.9023 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001599/0.1996, allocations: 151.6 kB / 0.9025 GB, free: 61.54 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1998, allocations: 25.03 kB / 0.9025 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2, allocations: 71.77 kB / 0.9026 GB, free: 61.44 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.2001, allocations: 79.72 kB / 0.9026 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.852e-05/0.2002, allocations: 8 kB / 0.9027 GB, free: 61.36 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.689e-05/0.2002, allocations: 12 kB / 0.9027 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.2003, allocations: 35.89 kB / 0.9027 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.34e-05/0.2004, allocations: 49.64 kB / 0.9028 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001541/0.2005, allocations: 111.8 kB / 0.9029 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2005, allocations: 0 / 0.9029 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2005, allocations: 0 / 0.9029 GB, free: 61.14 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.2006, allocations: 0 / 0.9029 GB, free: 61.14 MB / 0.6042 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.0005965/0.2012, allocations: 0.5175 MB / 0.9034 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2012, allocations: 11.97 kB / 0.9034 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.844e-05/0.2013, allocations: 46.55 kB / 0.9034 GB, free: 60.49 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.166e-05/0.2013, allocations: 27.7 kB / 0.9034 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002561/0.2016, allocations: 230.8 kB / 0.9037 GB, free: 60.2 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.2016, allocations: 7.938 kB / 0.9037 GB, free: 60.19 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.2016, allocations: 16 kB / 0.9037 GB, free: 60.17 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.2019, allocations: 109.6 kB / 0.9038 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2019, allocations: 0 / 0.9038 GB, free: 60.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.2019, allocations: 12 kB / 0.9038 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.2019, allocations: 0 / 0.9038 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001855/0.2021, allocations: 75.95 kB / 0.9039 GB, free: 59.97 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005712/0.2027, allocations: 432.5 kB / 0.9043 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.2029, allocations: 86.53 kB / 0.9044 GB, free: 59.41 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.203, allocations: 88.84 kB / 0.9045 GB, free: 59.32 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2031, allocations: 4 kB / 0.9045 GB, free: 59.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002436/0.2033, allocations: 174.7 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.673e-06/0.2033, allocations: 0 / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0006255/0.204, allocations: 368.9 kB / 0.905 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.204, allocations: 170.2 kB / 0.9051 GB, free: 58.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.2042, allocations: 175.1 kB / 0.9053 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.2042, allocations: 29.7 kB / 0.9053 GB, free: 58.32 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.66e-05/0.2042, allocations: 108.4 kB / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.2043, allocations: 27.66 kB / 0.9055 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.154e-05/0.2043, allocations: 8 kB / 0.9055 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.725e-05/0.2043, allocations: 322.8 kB / 0.9058 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2045, allocations: 55.95 kB / 0.9058 GB, free: 57.79 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.2046, allocations: 106.8 kB / 0.9059 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.2048, allocations: 179 kB / 0.9061 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2048, allocations: 7.938 kB / 0.9061 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004293/0.2052, allocations: 348.2 kB / 0.9064 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.662e-05/0.2053, allocations: 130.8 kB / 0.9066 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.2053, allocations: 0 / 0.9066 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2053, allocations: 7.953 kB / 0.9066 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2054, allocations: 19.98 kB / 0.9066 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.2055, allocations: 0 / 0.9066 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.2056, allocations: 23.83 kB / 0.9066 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.2056, allocations: 12 kB / 0.9066 GB, free: 56.87 MB / 0.6042 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.2057, allocations: 198.2 kB / 0.9068 GB, free: 56.66 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.2057, allocations: 11.91 kB / 0.9068 GB, free: 56.64 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.256e-05/0.2058, allocations: 17.39 kB / 0.9068 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2058, allocations: 0 / 0.9068 GB, free: 56.63 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2058, allocations: 3.953 kB / 0.9069 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.2058, allocations: 7.984 kB / 0.9069 GB, free: 56.62 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005711/0.2064, allocations: 0.5876 MB / 0.9074 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.2064, allocations: 0 / 0.9074 GB, free: 55.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.433e-05/0.2065, allocations: 15.98 kB / 0.9074 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2065, allocations: 0 / 0.9074 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.2065, allocations: 15.94 kB / 0.9075 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.2065, allocations: 0 / 0.9075 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.2065, allocations: 0 / 0.9075 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.207, allocations: 414.6 kB / 0.9079 GB, free: 55.5 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.846e-05/0.207, allocations: 88.95 kB / 0.9079 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/0.207, allocations: 4 kB / 0.9079 GB, free: 55.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.2072, allocations: 19.94 kB / 0.908 GB, free: 55.37 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.41e-05/0.2072, allocations: 8 kB / 0.908 GB, free: 55.36 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.2072, allocations: 11.98 kB / 0.908 GB, free: 55.35 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 7.664e-05/0.2073, allocations: 127.2 kB / 0.9081 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2073, allocations: 0 / 0.9081 GB, free: 55.22 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002714/0.2076, allocations: 39.98 kB / 0.9081 GB, free: 55.18 MB / 0.6042 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 (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.0007425/0.2083, allocations: 0.9651 MB / 0.9091 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003998/0.2088, allocations: 377.4 kB / 0.9094 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2088, allocations: 0 / 0.9094 GB, free: 53.77 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001815/0.209, allocations: 202.8 kB / 0.9096 GB, free: 53.55 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.2093, allocations: 28.62 kB / 0.9097 GB, free: 53.52 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.2106, allocations: 0.9475 MB / 0.9106 GB, free: 52.5 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001198/0.2107, allocations: 0.7043 MB / 0.9113 GB, free: 51.77 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.411e-05/0.2108, allocations: 24.53 kB / 0.9113 GB, free: 51.74 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.2109, allocations: 35.42 kB / 0.9113 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2109, allocations: 0 / 0.9113 GB, free: 51.71 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01324/0.2241, allocations: 3.377 MB / 0.9146 GB, free: 48.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001207/0.2243, allocations: 206.7 kB / 0.9148 GB, free: 48.25 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.578/1.802, allocations: 0 / 0.9148 GB, free: 48.25 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)