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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8567/0.8567, allocations: 143.4 MB / 158.3 MB, free: 5.598 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 181.5 kB / 191.5 MB, free: 5.625 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.2 MB / 447.7 MB, free: 4.836 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 92.31 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002104/0.002104, allocations: 264.3 kB / 0.6005 GB, free: 48.74 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005755/0.0005757, allocations: 16.16 kB / 0.6929 GB, free: 59.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2048, allocations: 82.8 MB / 0.7738 GB, free: 13.7 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6626/0.8675, allocations: 110.7 MB / 0.8819 GB, free: 31.86 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.8678, allocations: 80.67 kB / 0.882 GB, free: 31.86 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01492/0.8828, allocations: 5.087 MB / 0.887 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.824e-06/0.8828, allocations: 0 / 0.887 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.539e-05/0.8829, allocations: 2.5 kB / 0.887 GB, free: 31.27 MB / 0.5417 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.0006279/0.8835, allocations: 0.5449 MB / 0.8875 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.8836, allocations: 8.25 kB / 0.8875 GB, free: 30.74 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.075e-05/0.8836, allocations: 40.69 kB / 0.8876 GB, free: 30.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.8837, allocations: 18.38 kB / 0.8876 GB, free: 30.69 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.884, allocations: 228 kB / 0.8878 GB, free: 30.48 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.884, allocations: 12.88 kB / 0.8878 GB, free: 30.48 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.952e-05/0.884, allocations: 9.641 kB / 0.8878 GB, free: 30.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003008/0.8843, allocations: 116.8 kB / 0.8879 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.8844, allocations: 1.156 kB / 0.8879 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.8844, allocations: 6.406 kB / 0.8879 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.201e-06/0.8844, allocations: 2.016 kB / 0.8879 GB, free: 30.45 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.8846, allocations: 82.91 kB / 0.888 GB, free: 30.44 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007235/0.8854, allocations: 432.9 kB / 0.8884 GB, free: 30.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.8856, allocations: 98.95 kB / 0.8885 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.8856, allocations: 0 / 0.8885 GB, free: 30.12 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003171/0.8859, allocations: 181.7 kB / 0.8887 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.694e-06/0.8859, allocations: 1.375 kB / 0.8887 GB, free: 30.01 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.000837/0.8868, allocations: 0.5162 MB / 0.8892 GB, free: 29.72 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.8869, allocations: 162.4 kB / 0.8894 GB, free: 29.53 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.887, allocations: 161.8 kB / 0.8895 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.8871, allocations: 32.27 kB / 0.8896 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.8871, allocations: 107.6 kB / 0.8897 GB, free: 29.31 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.112e-05/0.8872, allocations: 30.28 kB / 0.8897 GB, free: 29.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.8872, allocations: 2.375 kB / 0.8897 GB, free: 29.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.575e-05/0.8873, allocations: 329.6 kB / 0.89 GB, free: 28.98 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.8874, allocations: 53.66 kB / 0.8901 GB, free: 28.98 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.8876, allocations: 113.3 kB / 0.8902 GB, free: 28.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000196/0.8878, allocations: 177 kB / 0.8903 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.8878, allocations: 0 / 0.8903 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005207/0.8884, allocations: 358.1 kB / 0.8907 GB, free: 28.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.108e-05/0.8884, allocations: 119.4 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.8885, allocations: 1.562 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.8885, allocations: 2.906 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.8886, allocations: 17.66 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.8886, allocations: 4.156 kB / 0.8908 GB, free: 28.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.8888, allocations: 20.72 kB / 0.8908 GB, free: 28.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.8888, allocations: 11.23 kB / 0.8908 GB, free: 28.47 MB / 0.5417 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.0001572/0.889, allocations: 200.9 kB / 0.891 GB, free: 28.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.889, allocations: 18.66 kB / 0.891 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.889, allocations: 18.73 kB / 0.8911 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.8891, allocations: 3.5 kB / 0.8911 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.8891, allocations: 0 / 0.8911 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.8891, allocations: 0.6562 kB / 0.8911 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007305/0.8898, allocations: 0.5928 MB / 0.8916 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8898, allocations: 0 / 0.8916 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.479e-05/0.8899, allocations: 12.94 kB / 0.8917 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.8899, allocations: 0.6562 kB / 0.8917 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.8899, allocations: 8.312 kB / 0.8917 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.8899, allocations: 0.6562 kB / 0.8917 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.8899, allocations: 0 / 0.8917 GB, free: 27.89 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005312/0.8905, allocations: 421.7 kB / 0.8921 GB, free: 27.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.127e-05/0.8905, allocations: 92.75 kB / 0.8922 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.8906, allocations: 3.297 kB / 0.8922 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.8907, allocations: 9.953 kB / 0.8922 GB, free: 27.58 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.884e-05/0.8908, allocations: 15.7 kB / 0.8922 GB, free: 27.57 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.8908, allocations: 7.469 kB / 0.8922 GB, free: 27.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001083/0.8909, allocations: 128.3 kB / 0.8923 GB, free: 27.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8909, allocations: 0 / 0.8923 GB, free: 27.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003094/0.8912, allocations: 36.61 kB / 0.8924 GB, free: 27.5 MB / 0.5417 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.001979/0.8932, allocations: 0.9817 MB / 0.8933 GB, free: 42.75 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004897/0.8937, allocations: 364 kB / 0.8937 GB, free: 42.49 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.8937, allocations: 3.938 kB / 0.8937 GB, free: 42.49 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.894, allocations: 217.8 kB / 0.8939 GB, free: 42.35 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002454/0.8943, allocations: 19.81 kB / 0.8939 GB, free: 42.34 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.8955, allocations: 1.618 MB / 0.8955 GB, free: 40.85 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.8958, allocations: 0.7147 MB / 0.8962 GB, free: 40.15 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 7.255e-05/0.8959, allocations: 18.45 kB / 0.8962 GB, free: 40.15 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.425e-05/0.896, allocations: 36.94 kB / 0.8962 GB, free: 40.14 MB / 0.5573 GB Notification: Performance of SimCode: time 2.91e-07/0.896, allocations: 0 / 0.8962 GB, free: 40.14 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.9114, allocations: 3.302 MB / 0.8994 GB, free: 39.74 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.9117, allocations: 184.1 kB / 0.8996 GB, free: 39.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/2.578, allocations: 0 / 0.8996 GB, free: 39.5 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)