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.9611/0.9611, allocations: 141.8 MB / 149.3 MB, free: 9.203 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.001175/0.001175, allocations: 184.8 kB / 182.2 MB, free: 9.426 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.652/1.652, allocations: 221.5 MB / 436.4 MB, free: 13.27 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.001114/0.001114, allocations: 96.08 kB / 0.5074 GB, free: 10.09 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001947/0.001947, allocations: 288.4 kB / 0.5889 GB, free: 54.63 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.747e-05/2.774e-05, allocations: 11.97 kB / 0.6766 GB, free: 12.7 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5107/0.5107, allocations: 82.77 MB / 0.7575 GB, free: 31.88 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1535/0.6643, allocations: 110 MB / 0.8649 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002683/0.6647, allocations: 75.95 kB / 0.865 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01405/0.6787, allocations: 5.041 MB / 0.8699 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of FrontEnd: time 4.429e-06/0.6788, allocations: 3.984 kB / 0.8699 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.283e-05/0.6788, allocations: 0 / 0.8699 GB, free: 12.59 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.0006269/0.6794, allocations: 0.5166 MB / 0.8704 GB, free: 12 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.6795, allocations: 12.03 kB / 0.8704 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.021e-05/0.6796, allocations: 15.91 kB / 0.8704 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003278/0.6799, allocations: 239.6 kB / 0.8707 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.6799, allocations: 4 kB / 0.8707 GB, free: 11.7 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.68, allocations: 15.94 kB / 0.8707 GB, free: 11.68 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001456/0.6801, allocations: 47.97 kB / 0.8707 GB, free: 11.64 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.6803, allocations: 93.64 kB / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/0.6803, allocations: 0 / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.6804, allocations: 4 kB / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.6804, allocations: 0 / 0.8708 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.681, allocations: 397.2 kB / 0.8712 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001318/0.6812, allocations: 74.56 kB / 0.8713 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.6813, allocations: 64.83 kB / 0.8713 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.6813, allocations: 0 / 0.8713 GB, free: 10.96 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.6815, allocations: 166.8 kB / 0.8715 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 2.084e-06/0.6816, allocations: 0 / 0.8715 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0004496/0.682, allocations: 205.6 kB / 0.8717 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.6821, allocations: 170.2 kB / 0.8718 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.6823, allocations: 153.7 kB / 0.872 GB, free: 10.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.448e-05/0.6823, allocations: 25.7 kB / 0.872 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.831e-05/0.6824, allocations: 116.3 kB / 0.8721 GB, free: 10.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.6825, allocations: 19.72 kB / 0.8721 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.456e-05/0.6825, allocations: 4 kB / 0.8722 GB, free: 10.03 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001489/0.6826, allocations: 334.8 kB / 0.8725 GB, free: 9.691 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.139e-05/0.6827, allocations: 28 kB / 0.8725 GB, free: 9.664 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.6828, allocations: 98.78 kB / 0.8726 GB, free: 9.543 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000106/0.6829, allocations: 43.97 kB / 0.8726 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.683, allocations: 0 / 0.8726 GB, free: 9.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003251/0.6833, allocations: 205.3 kB / 0.8728 GB, free: 9.293 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.716e-05/0.6834, allocations: 116.2 kB / 0.8729 GB, free: 9.156 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.6834, allocations: 4 kB / 0.8729 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.6834, allocations: 0 / 0.8729 GB, free: 9.152 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001226/0.6835, allocations: 19.98 kB / 0.873 GB, free: 9.133 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.6836, allocations: 4 kB / 0.873 GB, free: 9.129 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.6837, allocations: 12.23 kB / 0.873 GB, free: 9.117 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.593e-05/0.6837, allocations: 16 kB / 0.873 GB, free: 9.102 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 () * 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.0001413/0.6838, allocations: 190.8 kB / 0.8732 GB, free: 8.898 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003318/0.6842, allocations: 213.4 kB / 0.8734 GB, free: 8.684 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.691e-05/0.6842, allocations: 15.81 kB / 0.8734 GB, free: 8.668 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.6843, allocations: 17.83 kB / 0.8734 GB, free: 8.648 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.6843, allocations: 8 kB / 0.8734 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.6843, allocations: 0 / 0.8734 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.6843, allocations: 0 / 0.8734 GB, free: 8.641 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005359/0.6849, allocations: 479 kB / 0.8739 GB, free: 8.129 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.6849, allocations: 3.938 kB / 0.8739 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.059e-05/0.6849, allocations: 12 kB / 0.8739 GB, free: 8.113 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.685, allocations: 3.984 kB / 0.8739 GB, free: 8.109 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.685, allocations: 8 kB / 0.8739 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.685, allocations: 0 / 0.8739 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.685, allocations: 3.984 kB / 0.8739 GB, free: 8.098 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000396/0.6854, allocations: 319.1 kB / 0.8742 GB, free: 7.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.202e-05/0.6855, allocations: 89.02 kB / 0.8743 GB, free: 7.664 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.6855, allocations: 4 kB / 0.8743 GB, free: 7.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.6856, allocations: 11.98 kB / 0.8743 GB, free: 7.648 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.6857, allocations: 4 kB / 0.8743 GB, free: 7.645 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.6857, allocations: 7.984 kB / 0.8743 GB, free: 7.637 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.043e-05/0.6858, allocations: 124.3 kB / 0.8744 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6858, allocations: 0 / 0.8744 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002857/0.6861, allocations: 43.89 kB / 0.8745 GB, free: 7.473 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) * 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.000865/0.687, allocations: 0.8607 MB / 0.8753 GB, free: 6.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003766/0.6874, allocations: 321.5 kB / 0.8756 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6874, allocations: 0 / 0.8756 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.6876, allocations: 196 kB / 0.8758 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.6878, allocations: 16.17 kB / 0.8758 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006656/0.6885, allocations: 246.7 kB / 0.8761 GB, free: 5.719 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003226/0.6889, allocations: 0.7157 MB / 0.8768 GB, free: 4.977 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.743e-05/0.6889, allocations: 20.53 kB / 0.8768 GB, free: 4.957 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.607e-05/0.689, allocations: 35.44 kB / 0.8768 GB, free: 4.922 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.689, allocations: 0 / 0.8768 GB, free: 4.922 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02401/0.713, allocations: 2.965 MB / 0.8797 GB, free: 1.992 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/0.7133, allocations: 149.4 kB / 0.8799 GB, free: 1.801 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/2.469, allocations: 0 / 0.8799 GB, free: 1.801 MB / 0.5417 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)