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.001633/0.001633, allocations: 108 kB / 15.61 MB, free: 128 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.001125/0.001125, allocations: 195.5 kB / 16.53 MB, free: 6.668 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.254/1.254, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002068/0.002068, allocations: 282.1 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9177/0.9177, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 96.33 kB / 0.5953 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1472, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.004072/0.1514, allocations: 1.596 MB / 0.6819 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.1527, allocations: 0.6105 MB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.029e-05/0.1528, allocations: 3.938 kB / 0.6825 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001555/0.1529, allocations: 16.48 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.1531, allocations: 47.44 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004367/0.1536, allocations: 111.7 kB / 0.6826 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1538, allocations: 204.3 kB / 0.6828 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.154, allocations: 33.25 kB / 0.6828 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.1541, allocations: 83.81 kB / 0.6829 GB, free: 13.88 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.1543, allocations: 87.66 kB / 0.683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.1543, allocations: 12 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.156e-05/0.1544, allocations: 28 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.327e-05/0.1545, allocations: 39.83 kB / 0.6831 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.379e-05/0.1546, allocations: 71.66 kB / 0.6832 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002365/0.1548, allocations: 171.5 kB / 0.6833 GB, free: 13.47 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1549, allocations: 0 / 0.6833 GB, free: 13.47 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1549, allocations: 0 / 0.6833 GB, free: 13.47 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1549, allocations: 0 / 0.6833 GB, free: 13.47 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.0006514/0.1555, allocations: 0.5408 MB / 0.6838 GB, free: 12.86 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.1556, allocations: 16.02 kB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1556, allocations: 42.75 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.174e-05/0.1557, allocations: 16.75 kB / 0.6839 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.156, allocations: 232.2 kB / 0.6841 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.753e-05/0.156, allocations: 8.375 kB / 0.6841 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.625e-05/0.156, allocations: 12.38 kB / 0.6842 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000255/0.1563, allocations: 117.5 kB / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1563, allocations: 0 / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.809e-05/0.1563, allocations: 8 kB / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1563, allocations: 0 / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1565, allocations: 75.94 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006103/0.1571, allocations: 420.4 kB / 0.6848 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001929/0.1574, allocations: 94.52 kB / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1575, allocations: 76.81 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1575, allocations: 0 / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002633/0.1578, allocations: 178.8 kB / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.1578, allocations: 0 / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007071/0.1585, allocations: 357.1 kB / 0.6854 GB, free: 11.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.1587, allocations: 174.1 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.1588, allocations: 171.8 kB / 0.6858 GB, free: 10.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.1589, allocations: 29.7 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.455e-05/0.159, allocations: 112.3 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.159, allocations: 23.66 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/0.1591, allocations: 41.7 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.1592, allocations: 330.8 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.1593, allocations: 55.95 kB / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.1595, allocations: 94.83 kB / 0.6864 GB, free: 9.973 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003321/0.1598, allocations: 312.9 kB / 0.6867 GB, free: 9.605 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1598, allocations: 8 kB / 0.6867 GB, free: 9.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004972/0.1603, allocations: 348 kB / 0.687 GB, free: 9.227 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.877e-05/0.1604, allocations: 110.8 kB / 0.6872 GB, free: 9.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1604, allocations: 4 kB / 0.6872 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1605, allocations: 3.984 kB / 0.6872 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.1606, allocations: 20.25 kB / 0.6872 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1606, allocations: 3.984 kB / 0.6872 GB, free: 9.062 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.459e-05/0.1607, allocations: 12 kB / 0.6872 GB, free: 9.051 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.21e-05/0.1607, allocations: 15.94 kB / 0.6872 GB, free: 9.035 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.0001621/0.1609, allocations: 209.7 kB / 0.6874 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.1609, allocations: 19.8 kB / 0.6874 GB, free: 8.789 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.021e-05/0.161, allocations: 13.41 kB / 0.6874 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.161, allocations: 4 kB / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.161, allocations: 0 / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.161, allocations: 4 kB / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007074/0.1617, allocations: 0.5837 MB / 0.688 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1617, allocations: 0 / 0.688 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.359e-05/0.1618, allocations: 11.98 kB / 0.688 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1618, allocations: 0 / 0.688 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.1618, allocations: 8 kB / 0.688 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1618, allocations: 0 / 0.688 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.1618, allocations: 8.094 kB / 0.688 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005328/0.1624, allocations: 406.5 kB / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.1624, allocations: 84.92 kB / 0.6885 GB, free: 7.562 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.731e-05/0.1625, allocations: 11.98 kB / 0.6885 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.1626, allocations: 4 kB / 0.6885 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.1627, allocations: 15.92 kB / 0.6885 GB, free: 7.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.1627, allocations: 8 kB / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.911e-05/0.1628, allocations: 132.3 kB / 0.6887 GB, free: 7.395 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1628, allocations: 0 / 0.6887 GB, free: 7.395 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002742/0.1631, allocations: 36 kB / 0.6887 GB, free: 7.359 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.0009/0.164, allocations: 0.9722 MB / 0.6897 GB, free: 6.355 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004649/0.1645, allocations: 361.8 kB / 0.69 GB, free: 5.953 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1645, allocations: 4.062 kB / 0.69 GB, free: 5.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002511/0.1647, allocations: 210.7 kB / 0.6902 GB, free: 5.719 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.165, allocations: 23.88 kB / 0.6902 GB, free: 5.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.1675, allocations: 2.109 MB / 0.6923 GB, free: 3.438 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002986/0.1678, allocations: 0.7041 MB / 0.693 GB, free: 2.707 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.393e-05/0.1679, allocations: 20.53 kB / 0.693 GB, free: 2.688 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.1679, allocations: 35.42 kB / 0.693 GB, free: 2.652 MB / 494.1 MB Notification: Performance of SimCode: time 1.664e-06/0.168, allocations: 0 / 0.693 GB, free: 2.652 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02042/0.1884, allocations: 3.609 MB / 0.6966 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.979/7.167, allocations: 13.94 kB / 0.6966 GB, free: 15.14 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)