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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, 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.001163/0.001163, allocations: 192.4 kB / 16.14 MB, free: 6.707 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.231/1.231, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002013/0.002013, allocations: 274.6 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.876/0.876, allocations: 169.2 MB / 0.4977 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 91.16 kB / 0.5946 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1348, allocations: 86.99 MB / 0.6796 GB, free: 1.027 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002524/0.1374, allocations: 1.647 MB / 0.6812 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008005/0.1382, allocations: 0.6343 MB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.66e-05/0.1382, allocations: 4.719 kB / 0.6818 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.1384, allocations: 19.86 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.1385, allocations: 37.17 kB / 0.6818 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.1388, allocations: 95.91 kB / 0.6819 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001359/0.139, allocations: 167.6 kB / 0.6821 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.867e-05/0.1391, allocations: 37.3 kB / 0.6821 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.1392, allocations: 75.75 kB / 0.6822 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001559/0.1393, allocations: 79.72 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.45e-05/0.1394, allocations: 8 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.674e-05/0.1394, allocations: 20 kB / 0.6823 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-05/0.1395, allocations: 35.84 kB / 0.6823 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.654e-05/0.1396, allocations: 63.72 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.1398, allocations: 155.5 kB / 0.6825 GB, free: 13.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.1398, allocations: 0 / 0.6825 GB, free: 13.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.1398, allocations: 3.938 kB / 0.6825 GB, free: 13.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.1398, allocations: 0 / 0.6825 GB, free: 13.96 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.0006383/0.1404, allocations: 0.5563 MB / 0.6831 GB, free: 13.33 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.1405, allocations: 12.03 kB / 0.6831 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.546e-05/0.1405, allocations: 42.75 kB / 0.6831 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.408e-05/0.1406, allocations: 20.69 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.1408, allocations: 228.8 kB / 0.6834 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.1408, allocations: 12.38 kB / 0.6834 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.1408, allocations: 12.36 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002276/0.1411, allocations: 113.6 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.721e-06/0.1411, allocations: 3.938 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.1411, allocations: 4 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.1411, allocations: 3.984 kB / 0.6835 GB, free: 12.83 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.1413, allocations: 71.95 kB / 0.6836 GB, free: 12.76 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005272/0.1418, allocations: 416.4 kB / 0.684 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.142, allocations: 90.53 kB / 0.6841 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001796/0.1422, allocations: 72.97 kB / 0.6841 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.1422, allocations: 7.969 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002857/0.1425, allocations: 178.7 kB / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1425, allocations: 0 / 0.6843 GB, free: 11.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006261/0.1432, allocations: 352.8 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.1433, allocations: 162.2 kB / 0.6848 GB, free: 11.37 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.1434, allocations: 170.7 kB / 0.685 GB, free: 11.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.1435, allocations: 29.7 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.1435, allocations: 116.2 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.672e-05/0.1436, allocations: 27.92 kB / 0.6851 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.1436, allocations: 37.7 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.868e-05/0.1437, allocations: 342.6 kB / 0.6855 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.1439, allocations: 55.91 kB / 0.6856 GB, free: 10.57 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.144, allocations: 98.83 kB / 0.6857 GB, free: 10.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.1443, allocations: 308.9 kB / 0.6859 GB, free: 10.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1443, allocations: 4 kB / 0.686 GB, free: 10.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004735/0.1448, allocations: 348.1 kB / 0.6863 GB, free: 9.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.972e-05/0.1449, allocations: 114.8 kB / 0.6864 GB, free: 9.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1449, allocations: 4 kB / 0.6864 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.395e-06/0.1449, allocations: 0 / 0.6864 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.145, allocations: 28.17 kB / 0.6864 GB, free: 9.539 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.145, allocations: 4 kB / 0.6864 GB, free: 9.535 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-05/0.1451, allocations: 11.98 kB / 0.6864 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.1451, allocations: 8 kB / 0.6864 GB, free: 9.516 MB / 494.1 MB 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.0001303/0.1453, allocations: 209.7 kB / 0.6866 GB, free: 9.289 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.155e-05/0.1453, allocations: 15.81 kB / 0.6867 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.1454, allocations: 17.39 kB / 0.6867 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1454, allocations: 4 kB / 0.6867 GB, free: 9.254 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.1454, allocations: 4 kB / 0.6867 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.1454, allocations: 4 kB / 0.6867 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006239/0.146, allocations: 0.5759 MB / 0.6873 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.146, allocations: 4 kB / 0.6873 GB, free: 8.598 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.069e-05/0.1461, allocations: 11.98 kB / 0.6873 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1461, allocations: 0 / 0.6873 GB, free: 8.586 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.1461, allocations: 11.98 kB / 0.6873 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1461, allocations: 0 / 0.6873 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1461, allocations: 7.938 kB / 0.6873 GB, free: 8.566 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004755/0.1466, allocations: 406.6 kB / 0.6877 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.364e-05/0.1467, allocations: 84.92 kB / 0.6878 GB, free: 8.039 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.213e-05/0.1467, allocations: 4 kB / 0.6878 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.1468, allocations: 11.98 kB / 0.6878 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.1468, allocations: 11.94 kB / 0.6878 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.1469, allocations: 15.92 kB / 0.6878 GB, free: 7.996 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.269e-05/0.147, allocations: 133.3 kB / 0.6879 GB, free: 7.867 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.147, allocations: 0 / 0.6879 GB, free: 7.867 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002605/0.1472, allocations: 36 kB / 0.688 GB, free: 7.832 MB / 494.1 MB 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.0008378/0.1481, allocations: 0.9639 MB / 0.6889 GB, free: 6.836 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.1485, allocations: 365.8 kB / 0.6892 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1485, allocations: 4.062 kB / 0.6893 GB, free: 6.426 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.1487, allocations: 202.8 kB / 0.6894 GB, free: 6.203 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002709/0.149, allocations: 26.03 kB / 0.6895 GB, free: 6.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1511, allocations: 2.124 MB / 0.6915 GB, free: 3.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.1513, allocations: 0.716 MB / 0.6922 GB, free: 3.168 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.674e-05/0.1514, allocations: 20.53 kB / 0.6923 GB, free: 3.148 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.1515, allocations: 35.42 kB / 0.6923 GB, free: 3.113 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1515, allocations: 0 / 0.6923 GB, free: 3.113 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.823/1.974, allocations: 3.433 MB / 0.6957 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002169/1.974, allocations: 207.8 kB / 0.6958 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.105/4.079, allocations: 4 kB / 0.6959 GB, free: 15.56 MB / 0.4981 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/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)