Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00167/0.001671, 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.001882/0.001882, allocations: 192.7 kB / 16.14 MB, free: 6.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00249/0.00249, allocations: 290.5 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.067/1.067, allocations: 178.6 MB / 0.5068 GB, free: 4.75 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002715/0.002715, allocations: 95.48 kB / 0.6057 GB, free: 25.28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1821, allocations: 89.15 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003131/0.1852, allocations: 1.669 MB / 0.6944 GB, free: 3.164 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00105/0.1863, allocations: 0.6291 MB / 0.695 GB, free: 2.531 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.906e-05/0.1864, allocations: 7.938 kB / 0.695 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.1865, allocations: 23.84 kB / 0.6951 GB, free: 2.5 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001752/0.1867, allocations: 39.83 kB / 0.6951 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003672/0.1871, allocations: 91.91 kB / 0.6952 GB, free: 2.371 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001786/0.1873, allocations: 163.6 kB / 0.6953 GB, free: 2.211 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1874, allocations: 25.12 kB / 0.6954 GB, free: 2.188 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.1876, allocations: 75.75 kB / 0.6954 GB, free: 2.113 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.1877, allocations: 83.72 kB / 0.6955 GB, free: 2.031 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.1877, allocations: 4 kB / 0.6955 GB, free: 2.027 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.821e-05/0.1878, allocations: 19.98 kB / 0.6955 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.123e-05/0.1879, allocations: 31.91 kB / 0.6956 GB, free: 1.977 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.188, allocations: 67.66 kB / 0.6956 GB, free: 1.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002325/0.1883, allocations: 167.7 kB / 0.6958 GB, free: 1.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1883, allocations: 0 / 0.6958 GB, free: 1.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1883, allocations: 0 / 0.6958 GB, free: 1.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.1883, allocations: 0 / 0.6958 GB, free: 1.746 MB / 494.1 MB 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.0007467/0.189, allocations: 0.5486 MB / 0.6963 GB, free: 1.125 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.1891, allocations: 11.97 kB / 0.6963 GB, free: 1.113 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.285e-05/0.1892, allocations: 20.75 kB / 0.6964 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.1895, allocations: 240.1 kB / 0.6966 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.1895, allocations: 8.375 kB / 0.6966 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.064e-05/0.1896, allocations: 12.38 kB / 0.6966 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.1899, allocations: 117.7 kB / 0.6967 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1899, allocations: 0 / 0.6967 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.197e-05/0.1899, allocations: 11.94 kB / 0.6967 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1899, allocations: 0 / 0.6967 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002099/0.1902, allocations: 67.95 kB / 0.6968 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007086/0.1909, allocations: 424.5 kB / 0.6972 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.1911, allocations: 86.53 kB / 0.6973 GB, free: 44 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.1913, allocations: 80.81 kB / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.1913, allocations: 0 / 0.6974 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003023/0.1916, allocations: 174.7 kB / 0.6975 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 3.687e-06/0.1916, allocations: 3.984 kB / 0.6975 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007826/0.1924, allocations: 356.9 kB / 0.6979 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.1926, allocations: 166.2 kB / 0.698 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.1928, allocations: 179.7 kB / 0.6982 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.1928, allocations: 29.7 kB / 0.6982 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.926e-05/0.1929, allocations: 108.4 kB / 0.6983 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.1929, allocations: 23.66 kB / 0.6984 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.746e-05/0.193, allocations: 41.7 kB / 0.6984 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1932, allocations: 326.8 kB / 0.6987 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.1933, allocations: 55.89 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.1935, allocations: 109.5 kB / 0.6989 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.1939, allocations: 312.9 kB / 0.6992 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1939, allocations: 0 / 0.6992 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005888/0.1945, allocations: 348 kB / 0.6995 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.143e-05/0.1946, allocations: 114.8 kB / 0.6996 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1946, allocations: 4 kB / 0.6996 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.1947, allocations: 4 kB / 0.6996 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1948, allocations: 19.92 kB / 0.6996 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.1948, allocations: 4.281 kB / 0.6996 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.1949, allocations: 12.23 kB / 0.6997 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/0.1949, allocations: 16.08 kB / 0.6997 GB, free: 13.34 MB / 0.4981 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.00018/0.1951, allocations: 198.9 kB / 0.6999 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.875e-05/0.1952, allocations: 19.81 kB / 0.6999 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.235e-05/0.1952, allocations: 21.39 kB / 0.6999 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1952, allocations: 0 / 0.6999 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.1952, allocations: 0 / 0.6999 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1952, allocations: 0 / 0.6999 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008107/0.1961, allocations: 0.5991 MB / 0.7005 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1961, allocations: 0 / 0.7005 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.58e-05/0.1961, allocations: 8 kB / 0.7005 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1962, allocations: 3.984 kB / 0.7005 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.1962, allocations: 7.984 kB / 0.7005 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1962, allocations: 4 kB / 0.7005 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1962, allocations: 3.938 kB / 0.7005 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006083/0.1968, allocations: 398.7 kB / 0.7009 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.1969, allocations: 88.92 kB / 0.701 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.752e-05/0.1969, allocations: 7.984 kB / 0.701 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.1971, allocations: 12 kB / 0.701 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.32e-05/0.1971, allocations: 11.92 kB / 0.701 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.1971, allocations: 8 kB / 0.701 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000116/0.1973, allocations: 136.3 kB / 0.7011 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1973, allocations: 0 / 0.7011 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002961/0.1976, allocations: 40 kB / 0.7012 GB, free: 11.66 MB / 0.4981 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.0002507/0.1978, allocations: 121.6 kB / 0.7013 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005598/0.1984, allocations: 369.3 kB / 0.7016 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1984, allocations: 0 / 0.7016 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002722/0.1987, allocations: 206.8 kB / 0.7018 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.199, allocations: 19.94 kB / 0.7019 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006244/0.1996, allocations: 326.2 kB / 0.7022 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.2, allocations: 0.7122 MB / 0.7029 GB, free: 9.797 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.921e-05/0.2001, allocations: 20.53 kB / 0.7029 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.2001, allocations: 15.44 kB / 0.7029 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2001, allocations: 0 / 0.7029 GB, free: 9.766 MB / 0.4981 GB Notification: Performance of Templates: time 0.005686/0.2058, allocations: 1.996 MB / 0.7049 GB, free: 7.805 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)