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.005257/0.005257, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001209/0.001209, allocations: 197.1 kB / 16.67 MB, free: 5.977 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.261/1.261, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 283 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8964/0.8964, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 100.2 kB / 0.681 GB, free: 8 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1605, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002743/0.1632, allocations: 1.607 MB / 0.7675 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000951/0.1642, allocations: 0.6122 MB / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.209e-05/0.1643, allocations: 0 / 0.7681 GB, free: 6.715 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001477/0.1645, allocations: 23.8 kB / 0.7681 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002101/0.1647, allocations: 47.77 kB / 0.7681 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003871/0.1651, allocations: 111.7 kB / 0.7682 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000244/0.1654, allocations: 191.6 kB / 0.7684 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1655, allocations: 48.75 kB / 0.7685 GB, free: 6.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.1657, allocations: 79.77 kB / 0.7685 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.1658, allocations: 79.72 kB / 0.7686 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.478e-05/0.1658, allocations: 16 kB / 0.7686 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.906e-05/0.1659, allocations: 35.97 kB / 0.7687 GB, free: 6.094 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.242e-05/0.166, allocations: 27.92 kB / 0.7687 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.1661, allocations: 75.64 kB / 0.7688 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.1663, allocations: 171.5 kB / 0.7689 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1664, allocations: 4 kB / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1664, allocations: 0 / 0.7689 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.072e-05/0.1664, allocations: 0 / 0.7689 GB, free: 5.82 MB / 0.5606 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.0006611/0.167, allocations: 0.5524 MB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.1671, allocations: 8.031 kB / 0.7695 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.94e-05/0.1671, allocations: 38.75 kB / 0.7695 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.854e-05/0.1672, allocations: 16.84 kB / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.1675, allocations: 240.1 kB / 0.7698 GB, free: 4.852 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.1676, allocations: 12.38 kB / 0.7698 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.594e-05/0.1676, allocations: 20.31 kB / 0.7698 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.1679, allocations: 113.5 kB / 0.7699 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.1679, allocations: 0 / 0.7699 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.1679, allocations: 4 kB / 0.7699 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1679, allocations: 0 / 0.7699 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.1681, allocations: 71.94 kB / 0.77 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006172/0.1687, allocations: 424.4 kB / 0.7704 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.1689, allocations: 86.53 kB / 0.7705 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.1691, allocations: 72.81 kB / 0.7705 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.062e-05/0.1691, allocations: 0 / 0.7705 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.1694, allocations: 190.7 kB / 0.7707 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.1694, allocations: 0 / 0.7707 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of matching and sorting (n=10): time 0.0006621/0.17, allocations: 356.9 kB / 0.7711 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.1701, allocations: 158.2 kB / 0.7712 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.1703, allocations: 179.7 kB / 0.7714 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.1703, allocations: 29.7 kB / 0.7714 GB, free: 3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.087e-05/0.1704, allocations: 112.4 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.1705, allocations: 27.64 kB / 0.7715 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-05/0.1705, allocations: 41.7 kB / 0.7716 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1707, allocations: 330.8 kB / 0.7719 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1708, allocations: 47.97 kB / 0.7719 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.171, allocations: 109.7 kB / 0.7721 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.1713, allocations: 308.9 kB / 0.7723 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1713, allocations: 0 / 0.7723 GB, free: 1.938 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005316/0.1718, allocations: 356.1 kB / 0.7727 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.769e-05/0.1719, allocations: 118.8 kB / 0.7728 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.1719, allocations: 0 / 0.7728 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.172, allocations: 7.938 kB / 0.7728 GB, free: 1.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.1721, allocations: 19.98 kB / 0.7728 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.1721, allocations: 7.938 kB / 0.7728 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.793e-05/0.1722, allocations: 11.91 kB / 0.7728 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.1722, allocations: 11.98 kB / 0.7729 GB, free: 1.359 MB / 0.5606 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.0001615/0.1724, allocations: 203.9 kB / 0.7731 GB, free: 1.141 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.685e-05/0.1724, allocations: 19.81 kB / 0.7731 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.1725, allocations: 13.41 kB / 0.7731 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1725, allocations: 3.984 kB / 0.7731 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1725, allocations: 0 / 0.7731 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1725, allocations: 0 / 0.7731 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006945/0.1732, allocations: 0.5801 MB / 0.7737 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1732, allocations: 3.938 kB / 0.7737 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.399e-05/0.1733, allocations: 15.98 kB / 0.7737 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1733, allocations: 3.984 kB / 0.7737 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.1733, allocations: 11.98 kB / 0.7737 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.1733, allocations: 4 kB / 0.7737 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.1733, allocations: 7.875 kB / 0.7737 GB, free: 416 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2859/0.4592, allocations: 389.4 kB / 0.7741 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.4593, allocations: 88.02 kB / 0.7742 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.016e-05/0.4594, allocations: 5.281 kB / 0.7742 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.4596, allocations: 8.375 kB / 0.7742 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.4596, allocations: 14.45 kB / 0.7742 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.4597, allocations: 9.859 kB / 0.7742 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001092/0.4598, allocations: 129.2 kB / 0.7743 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4598, allocations: 6 kB / 0.7743 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003895/0.4602, allocations: 35.3 kB / 0.7744 GB, free: 14.76 MB / 0.5606 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.0008502/0.461, allocations: 0.9519 MB / 0.7753 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000454/0.4615, allocations: 363.1 kB / 0.7756 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.4615, allocations: 0 / 0.7756 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.4617, allocations: 206.9 kB / 0.7758 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.462, allocations: 34.31 kB / 0.7759 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00197/0.464, allocations: 2.093 MB / 0.7779 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.4641, allocations: 0.7129 MB / 0.7786 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.671e-05/0.4642, allocations: 23.59 kB / 0.7786 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.4643, allocations: 34.44 kB / 0.7787 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.4643, allocations: 0 / 0.7787 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01847/0.4828, allocations: 3.64 MB / 0.7822 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.249/7.732, allocations: 7.219 kB / 0.7822 GB, free: 11.04 MB / 0.5606 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)