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.001256/0.001256, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 192 kB / 16.53 MB, free: 6.391 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 294.6 kB / 290.7 MB, free: 1.973 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.011/1.011, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002637/0.002637, allocations: 94.41 kB / 0.6065 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1441, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003006/0.1471, allocations: 1.621 MB / 0.6952 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009627/0.1481, allocations: 0.6117 MB / 0.6958 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.729e-05/0.1482, allocations: 4 kB / 0.6958 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.1483, allocations: 16.88 kB / 0.6958 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.1485, allocations: 43.75 kB / 0.6958 GB, free: 1.922 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00038/0.1489, allocations: 112.5 kB / 0.6959 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.1491, allocations: 195.6 kB / 0.6961 GB, free: 1.621 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.1493, allocations: 29.03 kB / 0.6962 GB, free: 1.594 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.1494, allocations: 87.75 kB / 0.6962 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.1495, allocations: 87.72 kB / 0.6963 GB, free: 1.422 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.695e-05/0.1496, allocations: 12 kB / 0.6963 GB, free: 1.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.08e-05/0.1497, allocations: 28 kB / 0.6964 GB, free: 1.383 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.817e-05/0.1497, allocations: 23.91 kB / 0.6964 GB, free: 1.359 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.1498, allocations: 83.64 kB / 0.6965 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.1501, allocations: 163.7 kB / 0.6966 GB, free: 1.117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1501, allocations: 0 / 0.6966 GB, free: 1.117 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1501, allocations: 0 / 0.6966 GB, free: 1.117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.1501, allocations: 0 / 0.6966 GB, free: 1.117 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.000707/0.1508, allocations: 0.5563 MB / 0.6972 GB, free: 500 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1508, allocations: 12.02 kB / 0.6972 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.475e-05/0.1509, allocations: 38.75 kB / 0.6972 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.728e-05/0.151, allocations: 16.84 kB / 0.6972 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002891/0.1513, allocations: 234 kB / 0.6975 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.1513, allocations: 12.38 kB / 0.6975 GB, free: 140 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.731e-05/0.1513, allocations: 12.38 kB / 0.6975 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.1516, allocations: 121.5 kB / 0.6976 GB, free: 0 / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1516, allocations: 4.047 kB / 0.6976 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.1516, allocations: 4 kB / 0.6976 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1517, allocations: 0 / 0.6976 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.1519, allocations: 75.88 kB / 0.6977 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006217/0.1525, allocations: 416.6 kB / 0.6981 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000196/0.1527, allocations: 98.5 kB / 0.6982 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1529, allocations: 76.81 kB / 0.6982 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.1529, allocations: 0 / 0.6982 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.1532, allocations: 182.8 kB / 0.6984 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.1532, allocations: 4 kB / 0.6984 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007204/0.1539, allocations: 348.8 kB / 0.6987 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.154, allocations: 166.2 kB / 0.6989 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.1542, allocations: 179.6 kB / 0.6991 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.1542, allocations: 29.7 kB / 0.6991 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.1543, allocations: 108.4 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.1544, allocations: 23.66 kB / 0.6992 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.881e-05/0.1544, allocations: 49.69 kB / 0.6993 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1546, allocations: 326.8 kB / 0.6996 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.1547, allocations: 55.89 kB / 0.6996 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1549, allocations: 102.8 kB / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003544/0.1553, allocations: 316.9 kB / 0.7 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1553, allocations: 0 / 0.7 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005336/0.1558, allocations: 340.1 kB / 0.7004 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.314e-05/0.1559, allocations: 114.8 kB / 0.7005 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1559, allocations: 8.25 kB / 0.7005 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.156, allocations: 8.266 kB / 0.7005 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1561, allocations: 15.94 kB / 0.7005 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1561, allocations: 3.984 kB / 0.7005 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.597e-05/0.1562, allocations: 19.84 kB / 0.7005 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.374e-05/0.1562, allocations: 12 kB / 0.7005 GB, free: 12.65 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.0001628/0.1564, allocations: 201.6 kB / 0.7007 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.7e-05/0.1564, allocations: 19.89 kB / 0.7008 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.377e-05/0.1565, allocations: 21.41 kB / 0.7008 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.1565, allocations: 0 / 0.7008 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1565, allocations: 0 / 0.7008 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1565, allocations: 0 / 0.7008 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007536/0.1573, allocations: 0.5875 MB / 0.7014 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1573, allocations: 0 / 0.7014 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.48e-05/0.1573, allocations: 11.98 kB / 0.7014 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1574, allocations: 0 / 0.7014 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.1574, allocations: 8 kB / 0.7014 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1574, allocations: 4 kB / 0.7014 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1574, allocations: 3.938 kB / 0.7014 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.158, allocations: 398.7 kB / 0.7018 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.063e-05/0.158, allocations: 88.92 kB / 0.7018 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.902e-05/0.1581, allocations: 11.98 kB / 0.7019 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1582, allocations: 12 kB / 0.7019 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.1582, allocations: 11.92 kB / 0.7019 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1583, allocations: 8 kB / 0.7019 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001128/0.1584, allocations: 131.2 kB / 0.702 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1584, allocations: 0 / 0.702 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002848/0.1587, allocations: 32 kB / 0.702 GB, free: 10.98 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.00099/0.1597, allocations: 0.9696 MB / 0.703 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005091/0.1602, allocations: 369.4 kB / 0.7033 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1602, allocations: 0 / 0.7033 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.1605, allocations: 206.7 kB / 0.7035 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.1608, allocations: 30.45 kB / 0.7036 GB, free: 9.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002611/0.1634, allocations: 2.102 MB / 0.7056 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003377/0.1637, allocations: 0.7041 MB / 0.7063 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.802e-05/0.1638, allocations: 20.53 kB / 0.7063 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.548e-05/0.1639, allocations: 35.42 kB / 0.7064 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1639, allocations: 4 kB / 0.7064 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.1882, allocations: 3.614 MB / 0.7099 GB, free: 2.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.53/7.718, allocations: 10.48 kB / 0.7099 GB, free: 2.766 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)