Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_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.001085/0.001085, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00102/0.00102, allocations: 191.8 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.111/1.111, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.472/1.472, allocations: 292.3 MB / 0.5486 GB, free: 13.64 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 66.38 kB / 0.6711 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1629, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002723/0.1656, allocations: 1.679 MB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008975/0.1665, allocations: 0.6399 MB / 0.7852 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.741e-05/0.1666, allocations: 4 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.1668, allocations: 19.84 kB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001623/0.1669, allocations: 35.83 kB / 0.7853 GB, free: 11.41 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003568/0.1673, allocations: 103.8 kB / 0.7854 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.1675, allocations: 199.6 kB / 0.7856 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.187e-05/0.1676, allocations: 21.12 kB / 0.7856 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.1678, allocations: 87.8 kB / 0.7857 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.1679, allocations: 87.66 kB / 0.7858 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.1679, allocations: 12 kB / 0.7858 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.027e-05/0.168, allocations: 28 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.54e-05/0.1681, allocations: 35.84 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.49e-05/0.1682, allocations: 67.72 kB / 0.7859 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.1683, allocations: 167.7 kB / 0.7861 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1684, allocations: 4 kB / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.102e-06/0.1684, allocations: 0 / 0.7861 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.1684, allocations: 4 kB / 0.7861 GB, free: 10.61 MB / 0.6075 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.0005709/0.169, allocations: 0.5562 MB / 0.7866 GB, free: 9.98 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.169, allocations: 8.031 kB / 0.7866 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.575e-05/0.169, allocations: 42.75 kB / 0.7867 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.1691, allocations: 16.84 kB / 0.7867 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002423/0.1693, allocations: 228.2 kB / 0.7869 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1694, allocations: 12.31 kB / 0.7869 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.1694, allocations: 16.38 kB / 0.7869 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.1696, allocations: 113.5 kB / 0.787 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.1697, allocations: 0 / 0.787 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.1697, allocations: 8 kB / 0.787 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1697, allocations: 0 / 0.787 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.1699, allocations: 71.94 kB / 0.7871 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005562/0.1704, allocations: 420.5 kB / 0.7875 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.1706, allocations: 86.52 kB / 0.7876 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.1708, allocations: 76.81 kB / 0.7877 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.1708, allocations: 8.016 kB / 0.7877 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000235/0.171, allocations: 178.7 kB / 0.7878 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.1711, allocations: 0 / 0.7878 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006548/0.1717, allocations: 360.8 kB / 0.7882 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.75e-05/0.1718, allocations: 162.2 kB / 0.7883 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1719, allocations: 178.6 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.172, allocations: 29.7 kB / 0.7885 GB, free: 7.797 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.525e-05/0.172, allocations: 108.4 kB / 0.7886 GB, free: 7.688 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.1721, allocations: 27.64 kB / 0.7887 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/0.1721, allocations: 45.64 kB / 0.7887 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1722, allocations: 330.8 kB / 0.789 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.1724, allocations: 47.97 kB / 0.7891 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.1725, allocations: 102.8 kB / 0.7892 GB, free: 7.105 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.1728, allocations: 312.9 kB / 0.7895 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1728, allocations: 0 / 0.7895 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004842/0.1733, allocations: 352.2 kB / 0.7898 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.199e-05/0.1734, allocations: 118.8 kB / 0.7899 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1734, allocations: 0 / 0.7899 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1734, allocations: 4 kB / 0.7899 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.608e-05/0.1735, allocations: 15.98 kB / 0.7899 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.1735, allocations: 7.938 kB / 0.79 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.303e-05/0.1736, allocations: 12 kB / 0.79 GB, free: 6.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.55e-05/0.1737, allocations: 11.98 kB / 0.79 GB, free: 6.172 MB / 0.6075 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.0001306/0.1738, allocations: 200.8 kB / 0.7902 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.1739, allocations: 19.81 kB / 0.7902 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.1739, allocations: 17.39 kB / 0.7902 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1739, allocations: 0 / 0.7902 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.1739, allocations: 0 / 0.7902 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1739, allocations: 0 / 0.7902 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006393/0.1746, allocations: 0.5874 MB / 0.7908 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1746, allocations: 0 / 0.7908 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.203e-05/0.1746, allocations: 15.98 kB / 0.7908 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.1746, allocations: 288 / 0.7908 GB, free: 5.246 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.1747, allocations: 19.97 kB / 0.7908 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.1747, allocations: 7.938 kB / 0.7908 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1747, allocations: 7.875 kB / 0.7908 GB, free: 5.211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004852/0.1752, allocations: 390.8 kB / 0.7912 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.1752, allocations: 92.92 kB / 0.7913 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.1753, allocations: 4 kB / 0.7913 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1754, allocations: 4 kB / 0.7913 GB, free: 4.684 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.021e-05/0.1754, allocations: 15.92 kB / 0.7913 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.866e-05/0.1755, allocations: 15.92 kB / 0.7913 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.091e-05/0.1756, allocations: 133 kB / 0.7915 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1756, allocations: 0 / 0.7915 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002697/0.1758, allocations: 32 kB / 0.7915 GB, free: 4.492 MB / 0.6075 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.0008259/0.1767, allocations: 0.9603 MB / 0.7924 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004321/0.1771, allocations: 369.8 kB / 0.7928 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1771, allocations: 0 / 0.7928 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.1773, allocations: 206.7 kB / 0.793 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.1776, allocations: 34.45 kB / 0.793 GB, free: 2.828 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002157/0.1798, allocations: 2.133 MB / 0.7951 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002554/0.1801, allocations: 0.7119 MB / 0.7958 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 5.887e-05/0.1801, allocations: 20.53 kB / 0.7958 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.1802, allocations: 43.42 kB / 0.7958 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of SimCode: time 2.41e-07/0.1802, allocations: 0 / 0.7958 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.221/2.401, allocations: 3.497 MB / 0.7993 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002199/2.401, allocations: 199.5 kB / 0.7994 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/4.161, allocations: 0 / 0.7994 GB, free: 12.12 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)