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.316/1.316, allocations: 251.5 MB / 266.7 MB, free: 11.02 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.0008805/0.0008806, allocations: 169.6 kB / 325.8 MB, free: 2.676 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.322/1.322, allocations: 205 MB / 0.576 GB, free: 21 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.0008039/0.000804, allocations: 93.69 kB / 0.6797 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003023, allocations: 9.125 kB / 0.7932 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1807, allocations: 105.4 MB / 0.8962 GB, free: 68.05 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00171/0.1825, allocations: 1.34 MB / 0.8975 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0009134/0.1834, allocations: 0.6794 MB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.478e-05/0.1835, allocations: 4 kB / 0.8982 GB, free: 66 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.1837, allocations: 19.84 kB / 0.8982 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.1839, allocations: 31.84 kB / 0.8982 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004209/0.1843, allocations: 107.8 kB / 0.8983 GB, free: 65.84 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1845, allocations: 167.6 kB / 0.8985 GB, free: 65.68 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.999e-05/0.1846, allocations: 25.11 kB / 0.8985 GB, free: 65.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.1847, allocations: 71.77 kB / 0.8986 GB, free: 65.59 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.1849, allocations: 75.72 kB / 0.8987 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.751e-05/0.1849, allocations: 8 kB / 0.8987 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.521e-05/0.185, allocations: 20 kB / 0.8987 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.135e-05/0.1851, allocations: 31.89 kB / 0.8987 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.912e-05/0.1851, allocations: 59.67 kB / 0.8988 GB, free: 65.39 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.1853, allocations: 155.5 kB / 0.8989 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.1853, allocations: 3.938 kB / 0.8989 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.804e-06/0.1853, allocations: 0 / 0.8989 GB, free: 65.24 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.11e-06/0.1853, allocations: 0 / 0.8989 GB, free: 65.24 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.0004945/0.1858, allocations: 0.5252 MB / 0.8994 GB, free: 64.64 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1859, allocations: 12.03 kB / 0.8994 GB, free: 64.63 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.1859, allocations: 38.75 kB / 0.8995 GB, free: 64.58 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.034e-05/0.186, allocations: 24.75 kB / 0.8995 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.1862, allocations: 228.2 kB / 0.8997 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.1862, allocations: 12.38 kB / 0.8997 GB, free: 64.29 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.1862, allocations: 12.38 kB / 0.8997 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.1865, allocations: 125.5 kB / 0.8999 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.1865, allocations: 4 kB / 0.8999 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.1865, allocations: 4 kB / 0.8999 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1865, allocations: 0 / 0.8999 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.1867, allocations: 79.94 kB / 0.9 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004954/0.1872, allocations: 428.4 kB / 0.9004 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.1874, allocations: 90.53 kB / 0.9004 GB, free: 63.49 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.1875, allocations: 84.81 kB / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.1875, allocations: 0 / 0.9005 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.1877, allocations: 190.9 kB / 0.9007 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.1877, allocations: 0 / 0.9007 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0005982/0.1883, allocations: 356.9 kB / 0.9011 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1884, allocations: 170.2 kB / 0.9012 GB, free: 62.62 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1885, allocations: 171.1 kB / 0.9014 GB, free: 62.45 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.1885, allocations: 33.7 kB / 0.9014 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.092e-05/0.1886, allocations: 112.4 kB / 0.9015 GB, free: 62.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.226e-05/0.1886, allocations: 31.62 kB / 0.9015 GB, free: 62.26 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.938e-05/0.1887, allocations: 21.72 kB / 0.9016 GB, free: 62.23 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.255e-05/0.1887, allocations: 327 kB / 0.9019 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.1888, allocations: 55.95 kB / 0.9019 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.189, allocations: 109.2 kB / 0.902 GB, free: 61.72 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1892, allocations: 324.8 kB / 0.9023 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1892, allocations: 0 / 0.9023 GB, free: 61.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004015/0.1896, allocations: 360 kB / 0.9027 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.214e-05/0.1897, allocations: 114.8 kB / 0.9028 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.1897, allocations: 0 / 0.9028 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.1897, allocations: 8.25 kB / 0.9028 GB, free: 60.82 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.701e-05/0.1898, allocations: 19.98 kB / 0.9028 GB, free: 60.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.1898, allocations: 3.984 kB / 0.9028 GB, free: 60.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.963e-05/0.1899, allocations: 19.84 kB / 0.9028 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.74e-05/0.1899, allocations: 12 kB / 0.9029 GB, free: 60.76 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 (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.0001008/0.19, allocations: 201 kB / 0.9031 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.1901, allocations: 19.8 kB / 0.9031 GB, free: 60.52 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.1901, allocations: 21.41 kB / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.1901, allocations: 0 / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.1901, allocations: 4 kB / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.1901, allocations: 0 / 0.9031 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005166/0.1907, allocations: 0.5876 MB / 0.9037 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1907, allocations: 4 kB / 0.9037 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.897e-05/0.1907, allocations: 15.98 kB / 0.9037 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.1908, allocations: 0 / 0.9037 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1908, allocations: 4 kB / 0.9037 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1908, allocations: 160 / 0.9037 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1908, allocations: 3.938 kB / 0.9037 GB, free: 59.82 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000409/0.1912, allocations: 422.6 kB / 0.9041 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.087e-05/0.1912, allocations: 81.02 kB / 0.9042 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.1913, allocations: 7.984 kB / 0.9042 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1914, allocations: 16 kB / 0.9042 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.1914, allocations: 11.92 kB / 0.9042 GB, free: 59.24 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.1915, allocations: 8 kB / 0.9042 GB, free: 59.23 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.526e-05/0.1915, allocations: 140.3 kB / 0.9044 GB, free: 59.1 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1e-07/0.1915, allocations: 3.938 kB / 0.9044 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002478/0.1918, allocations: 32 kB / 0.9044 GB, free: 59.06 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 (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.0006773/0.1925, allocations: 0.974 MB / 0.9053 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003574/0.1928, allocations: 373.5 kB / 0.9057 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1928, allocations: 3.938 kB / 0.9057 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.193, allocations: 206.8 kB / 0.9059 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1933, allocations: 19.94 kB / 0.9059 GB, free: 57.39 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.1951, allocations: 2.148 MB / 0.908 GB, free: 55.1 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.1952, allocations: 0.7043 MB / 0.9087 GB, free: 54.37 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 5.505e-05/0.1953, allocations: 20.53 kB / 0.9087 GB, free: 54.35 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.1953, allocations: 35.42 kB / 0.9088 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of SimCode: time 2.4e-07/0.1953, allocations: 0 / 0.9088 GB, free: 54.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2504/0.4458, allocations: 3.355 MB / 0.912 GB, free: 51.12 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001532/0.446, allocations: 207.1 kB / 0.9122 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.739/2.185, allocations: 0 / 0.9122 GB, free: 50.87 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)