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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 105.7 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 212 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 252.8 MB, free: 8.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002619/0.002619, allocations: 284.7 kB / 309.1 MB, free: 3.953 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.222/1.222, allocations: 180.9 MB / 0.5333 GB, free: 13.74 MB / 382.1 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002876/0.002876, allocations: 106.8 kB / 0.7342 GB, free: 28.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1723, allocations: 95.33 MB / 0.8273 GB, free: 9.848 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003353/0.1756, allocations: 1.646 MB / 0.829 GB, free: 8.191 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.1769, allocations: 0.6896 MB / 0.8296 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.43e-05/0.1769, allocations: 0 / 0.8296 GB, free: 7.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.1771, allocations: 31.8 kB / 0.8297 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.1774, allocations: 35.77 kB / 0.8297 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.1778, allocations: 127.7 kB / 0.8298 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1781, allocations: 183.6 kB / 0.83 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.1782, allocations: 29.66 kB / 0.83 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.1784, allocations: 87.75 kB / 0.8301 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.1785, allocations: 83.72 kB / 0.8302 GB, free: 6.926 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.1785, allocations: 16 kB / 0.8302 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.995e-05/0.1786, allocations: 31.98 kB / 0.8302 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.418e-05/0.1787, allocations: 35.84 kB / 0.8303 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.167e-05/0.1788, allocations: 71.72 kB / 0.8303 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.1791, allocations: 179.3 kB / 0.8305 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1791, allocations: 0 / 0.8305 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.452e-06/0.1791, allocations: 0 / 0.8305 GB, free: 6.598 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.1791, allocations: 3.938 kB / 0.8305 GB, free: 6.594 MB / 0.5762 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.0008607/0.1799, allocations: 0.5562 MB / 0.831 GB, free: 5.965 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.18, allocations: 8.031 kB / 0.8311 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.167e-05/0.18, allocations: 46.73 kB / 0.8311 GB, free: 5.902 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.1802, allocations: 24.84 kB / 0.8311 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003463/0.1806, allocations: 236.8 kB / 0.8313 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.883e-05/0.1806, allocations: 12.38 kB / 0.8314 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.458e-05/0.1806, allocations: 12.38 kB / 0.8314 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1809, allocations: 113.5 kB / 0.8315 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.1809, allocations: 7.938 kB / 0.8315 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1809, allocations: 4 kB / 0.8315 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1809, allocations: 0 / 0.8315 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002412/0.1812, allocations: 75.88 kB / 0.8316 GB, free: 5.383 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007146/0.1819, allocations: 420.5 kB / 0.832 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002175/0.1821, allocations: 86.56 kB / 0.832 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.1823, allocations: 76.78 kB / 0.8321 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1823, allocations: 0 / 0.8321 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003069/0.1826, allocations: 174.7 kB / 0.8323 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1826, allocations: 0 / 0.8323 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10): time 0.0008283/0.1834, allocations: 360.9 kB / 0.8326 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.1836, allocations: 166.2 kB / 0.8328 GB, free: 3.984 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.1837, allocations: 183.4 kB / 0.833 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.1838, allocations: 29.7 kB / 0.833 GB, free: 3.758 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 9.416e-05/0.1839, allocations: 108.4 kB / 0.8331 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.1839, allocations: 23.8 kB / 0.8331 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.018e-05/0.184, allocations: 41.7 kB / 0.8332 GB, free: 3.574 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1842, allocations: 338.8 kB / 0.8335 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.1843, allocations: 47.97 kB / 0.8335 GB, free: 3.188 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.1845, allocations: 106 kB / 0.8336 GB, free: 3.062 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.1849, allocations: 313 kB / 0.8339 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.1849, allocations: 3.938 kB / 0.8339 GB, free: 2.691 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000605/0.1855, allocations: 352.2 kB / 0.8343 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.1856, allocations: 118.8 kB / 0.8344 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1856, allocations: 4 kB / 0.8344 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.1856, allocations: 0 / 0.8344 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.1858, allocations: 32.17 kB / 0.8344 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.1858, allocations: 0 / 0.8344 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.931e-05/0.1859, allocations: 11.95 kB / 0.8344 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.6e-05/0.1859, allocations: 15.98 kB / 0.8344 GB, free: 2.113 MB / 0.5762 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.0001984/0.1861, allocations: 204 kB / 0.8346 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.1861, allocations: 19.91 kB / 0.8347 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.1862, allocations: 9.406 kB / 0.8347 GB, free: 1.863 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1862, allocations: 7.938 kB / 0.8347 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1862, allocations: 7.938 kB / 0.8347 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1862, allocations: 3.984 kB / 0.8347 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008167/0.187, allocations: 0.5876 MB / 0.8353 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.187, allocations: 0 / 0.8353 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.534e-05/0.1871, allocations: 11.98 kB / 0.8353 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1871, allocations: 0 / 0.8353 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.1871, allocations: 7.984 kB / 0.8353 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1871, allocations: 0 / 0.8353 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.1871, allocations: 3.938 kB / 0.8353 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006076/0.1877, allocations: 414.7 kB / 0.8357 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.222e-05/0.1878, allocations: 85.02 kB / 0.8358 GB, free: 0.6289 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.1878, allocations: 4 kB / 0.8358 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1879, allocations: 11.98 kB / 0.8358 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.188, allocations: 11.94 kB / 0.8358 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.188, allocations: 11.97 kB / 0.8358 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001097/0.1881, allocations: 132.1 kB / 0.8359 GB, free: 472 kB / 0.5762 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1881, allocations: 0 / 0.8359 GB, free: 472 kB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003649/0.1885, allocations: 35.94 kB / 0.836 GB, free: 436 kB / 0.5762 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.001118/0.1896, allocations: 0.9722 MB / 0.8369 GB, free: 15.42 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006125/0.1902, allocations: 361.8 kB / 0.8373 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1902, allocations: 4.125 kB / 0.8373 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002408/0.1904, allocations: 174.8 kB / 0.8374 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000323/0.1908, allocations: 27.92 kB / 0.8374 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.1936, allocations: 2.118 MB / 0.8395 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.194, allocations: 0.7086 MB / 0.8402 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.298e-05/0.194, allocations: 24.52 kB / 0.8402 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/0.1941, allocations: 39.42 kB / 0.8403 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of SimCode: time 3.61e-07/0.1941, allocations: 0 / 0.8403 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02955/0.2237, allocations: 3.701 MB / 0.8439 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.234/8.458, allocations: 4.531 kB / 0.8439 GB, free: 8.156 MB / 0.5919 GB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.632850668858737] Failed to read output from testmodel.py, exit status != 0: 8.524183853995055 8.538161653 8.356337295 Calling exit ...