Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.628/1.628, allocations: 288.4 MB / 303.3 MB, free: 8.094 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 177.6 kB / 372 MB, free: 10.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.509/1.509, allocations: 205.4 MB / 0.6307 GB, free: 9.977 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007791/0.000779, allocations: 78.38 kB / 0.744 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003396/0.0003396, allocations: 10.59 kB / 0.867 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1847, allocations: 115.3 MB / 0.9796 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001503/0.1862, allocations: 1.293 MB / 0.9809 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007638/0.187, allocations: 0.6245 MB / 0.9815 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.272e-05/0.1871, allocations: 4 kB / 0.9815 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.1873, allocations: 19.91 kB / 0.9815 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.1875, allocations: 31.84 kB / 0.9816 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.1879, allocations: 99.83 kB / 0.9817 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001315/0.188, allocations: 147.6 kB / 0.9818 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.066e-05/0.1881, allocations: 25.09 kB / 0.9818 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.1882, allocations: 71.81 kB / 0.9819 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001139/0.1884, allocations: 75.72 kB / 0.982 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.1884, allocations: 8 kB / 0.982 GB, free: 25.16 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.255e-05/0.1885, allocations: 19.94 kB / 0.982 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 5.912e-05/0.1885, allocations: 27.91 kB / 0.982 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.578e-05/0.1886, allocations: 49.64 kB / 0.9821 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.1887, allocations: 116 kB / 0.9822 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1888, allocations: 0 / 0.9822 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.923e-06/0.1888, allocations: 0 / 0.9822 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.1888, allocations: 3.938 kB / 0.9822 GB, free: 24.95 MB / 0.6198 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.0005/0.1893, allocations: 0.5289 MB / 0.9827 GB, free: 24.34 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.1893, allocations: 12.02 kB / 0.9827 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.1894, allocations: 34.56 kB / 0.9827 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.705e-05/0.1894, allocations: 23.81 kB / 0.9828 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.1897, allocations: 222.8 kB / 0.983 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1897, allocations: 8 kB / 0.983 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.534e-05/0.1897, allocations: 16 kB / 0.983 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.19, allocations: 117.5 kB / 0.9831 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.19, allocations: 0 / 0.9831 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.19, allocations: 8 kB / 0.9831 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.19, allocations: 0 / 0.9831 GB, free: 23.86 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001863/0.1902, allocations: 79.94 kB / 0.9832 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005533/0.1908, allocations: 432.4 kB / 0.9836 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.191, allocations: 86.53 kB / 0.9837 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.1911, allocations: 80.81 kB / 0.9838 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.565e-05/0.1911, allocations: 4 kB / 0.9838 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.1914, allocations: 190.8 kB / 0.984 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.944e-06/0.1914, allocations: 0 / 0.984 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0006444/0.192, allocations: 369 kB / 0.9843 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.1921, allocations: 170.2 kB / 0.9845 GB, free: 22.33 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.1922, allocations: 166.7 kB / 0.9846 GB, free: 22.16 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.972e-05/0.1923, allocations: 37.64 kB / 0.9847 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.574e-05/0.1923, allocations: 112.3 kB / 0.9848 GB, free: 22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.217e-05/0.1923, allocations: 27.64 kB / 0.9848 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.1924, allocations: 8 kB / 0.9848 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.916e-05/0.1924, allocations: 322.8 kB / 0.9851 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1925, allocations: 55.97 kB / 0.9852 GB, free: 21.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.1927, allocations: 108.2 kB / 0.9853 GB, free: 21.46 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001657/0.1929, allocations: 174.8 kB / 0.9854 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.1929, allocations: 7.938 kB / 0.9854 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004399/0.1933, allocations: 352.1 kB / 0.9858 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.1934, allocations: 115.1 kB / 0.9859 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.1934, allocations: 4 kB / 0.9859 GB, free: 20.74 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1934, allocations: 4 kB / 0.9859 GB, free: 20.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.1935, allocations: 27.92 kB / 0.9859 GB, free: 20.71 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1936, allocations: 7.938 kB / 0.9859 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.1937, allocations: 12 kB / 0.9859 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.935e-05/0.1937, allocations: 8 kB / 0.9859 GB, free: 20.68 MB / 0.6198 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.0001156/0.1938, allocations: 204 kB / 0.9861 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.1938, allocations: 19.81 kB / 0.9862 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.1939, allocations: 17.39 kB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1939, allocations: 0 / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1939, allocations: 0 / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1939, allocations: 3.953 kB / 0.9862 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.1945, allocations: 0.5954 MB / 0.9868 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1945, allocations: 0 / 0.9868 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/0.1946, allocations: 8 kB / 0.9868 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.1946, allocations: 7.984 kB / 0.9868 GB, free: 19.75 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.1946, allocations: 11.94 kB / 0.9868 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1946, allocations: 3.953 kB / 0.9868 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1946, allocations: 0 / 0.9868 GB, free: 19.73 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004643/0.1951, allocations: 414.5 kB / 0.9872 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.365e-05/0.1952, allocations: 92.91 kB / 0.9873 GB, free: 19.19 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1952, allocations: 4 kB / 0.9873 GB, free: 19.18 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.1953, allocations: 12 kB / 0.9873 GB, free: 19.17 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/0.1954, allocations: 15.92 kB / 0.9873 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.1954, allocations: 8 kB / 0.9873 GB, free: 19.15 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.983e-05/0.1955, allocations: 136.3 kB / 0.9874 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1955, allocations: 0 / 0.9874 GB, free: 19.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000289/0.1958, allocations: 32 kB / 0.9875 GB, free: 18.98 MB / 0.6198 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.0007774/0.1966, allocations: 0.9733 MB / 0.9884 GB, free: 17.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003854/0.197, allocations: 361.5 kB / 0.9888 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.197, allocations: 3.938 kB / 0.9888 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.1972, allocations: 210.8 kB / 0.989 GB, free: 17.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.1975, allocations: 20.64 kB / 0.989 GB, free: 17.32 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1989, allocations: 0.9606 MB / 0.9899 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.1991, allocations: 0.7082 MB / 0.9906 GB, free: 15.57 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.719e-05/0.1991, allocations: 24.53 kB / 0.9906 GB, free: 15.54 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.567e-05/0.1992, allocations: 35.42 kB / 0.9907 GB, free: 15.51 MB / 0.6198 GB Notification: Performance of SimCode: time 3.71e-07/0.1992, allocations: 3.938 kB / 0.9907 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01345/0.2127, allocations: 3.377 MB / 0.994 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001253/0.2128, allocations: 192.4 kB / 0.9942 GB, free: 12.04 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/1.823, allocations: 4 kB / 0.9942 GB, free: 12.04 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)