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.00175/0.00175, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.002111/0.002111, allocations: 216.4 kB / 23.03 MB, free: 4.91 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002707/0.002707, allocations: 293.8 kB / 313.5 MB, free: 2.605 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.278/1.278, allocations: 180.6 MB / 0.5377 GB, free: 14.43 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",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.002844/0.002844, allocations: 96.59 kB / 0.7402 GB, free: 28.5 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1741, allocations: 95.39 MB / 0.8334 GB, free: 8.293 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003254/0.1774, allocations: 1.622 MB / 0.835 GB, free: 6.66 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1786, allocations: 0.6545 MB / 0.8356 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1787, allocations: 7.938 kB / 0.8356 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.1789, allocations: 15.8 kB / 0.8357 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.1791, allocations: 43.77 kB / 0.8357 GB, free: 5.934 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005187/0.1797, allocations: 131.7 kB / 0.8358 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003504/0.18, allocations: 187.6 kB / 0.836 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1801, allocations: 17.92 kB / 0.836 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002368/0.1804, allocations: 91.8 kB / 0.8361 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001642/0.1805, allocations: 91.59 kB / 0.8362 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.541e-05/0.1806, allocations: 16 kB / 0.8362 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001032/0.1807, allocations: 32 kB / 0.8362 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/0.1808, allocations: 35.89 kB / 0.8363 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.1809, allocations: 59.73 kB / 0.8363 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003386/0.1812, allocations: 183.3 kB / 0.8365 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1812, allocations: 0 / 0.8365 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.153e-06/0.1812, allocations: 0 / 0.8365 GB, free: 5.098 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.223e-06/0.1812, allocations: 0 / 0.8365 GB, free: 5.098 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.0007391/0.182, allocations: 0.4886 MB / 0.837 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.182, allocations: 9.938 kB / 0.837 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.961e-05/0.182, allocations: 192 / 0.837 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.1821, allocations: 38.75 kB / 0.837 GB, free: 4.5 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.1823, allocations: 32.81 kB / 0.8371 GB, free: 4.469 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.1826, allocations: 178.4 kB / 0.8372 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.1827, allocations: 12.38 kB / 0.8372 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.1827, allocations: 16.12 kB / 0.8373 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.183, allocations: 169 kB / 0.8374 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.183, allocations: 0 / 0.8374 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.183, allocations: 4 kB / 0.8374 GB, free: 4.055 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.183, allocations: 4 kB / 0.8374 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002338/0.1833, allocations: 131.2 kB / 0.8375 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000652/0.1839, allocations: 367.7 kB / 0.8379 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.1842, allocations: 146 kB / 0.838 GB, free: 3.344 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.1844, allocations: 124.2 kB / 0.8382 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.348e-05/0.1844, allocations: 4 kB / 0.8382 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003233/0.1847, allocations: 234.1 kB / 0.8384 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1847, allocations: 0 / 0.8384 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10): time 0.00087/0.1856, allocations: 483.7 kB / 0.8388 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.1857, allocations: 166.2 kB / 0.839 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.1859, allocations: 179.6 kB / 0.8392 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.1859, allocations: 29.7 kB / 0.8392 GB, free: 2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.846e-05/0.186, allocations: 116.3 kB / 0.8393 GB, free: 1.879 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.1861, allocations: 23.8 kB / 0.8393 GB, free: 1.855 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.576e-05/0.1861, allocations: 37.7 kB / 0.8394 GB, free: 1.812 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.1863, allocations: 330.8 kB / 0.8397 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.1865, allocations: 166.8 kB / 0.8398 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.1867, allocations: 213.5 kB / 0.84 GB, free: 1.035 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.1871, allocations: 313 kB / 0.8403 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1871, allocations: 0 / 0.8403 GB, free: 0.668 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006865/0.1878, allocations: 470.9 kB / 0.8408 GB, free: 156 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.1879, allocations: 114.8 kB / 0.8409 GB, free: 16 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1879, allocations: 4 kB / 0.8409 GB, free: 12 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.945e-05/0.1879, allocations: 3.984 kB / 0.8409 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.188, allocations: 27.92 kB / 0.8409 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.276e-06/0.1881, allocations: 80 / 0.8409 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.1882, allocations: 16.2 kB / 0.841 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.1882, allocations: 15.92 kB / 0.841 GB, free: 15.95 MB / 0.5919 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.0002059/0.1884, allocations: 201.8 kB / 0.8412 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.1884, allocations: 23.84 kB / 0.8412 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.161e-05/0.1885, allocations: 13.41 kB / 0.8412 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1885, allocations: 0 / 0.8412 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1885, allocations: 4.281 kB / 0.8412 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1885, allocations: 0 / 0.8412 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008373/0.1893, allocations: 0.6056 MB / 0.8418 GB, free: 15.01 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1893, allocations: 4 kB / 0.8418 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.504e-05/0.1894, allocations: 11.98 kB / 0.8418 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1894, allocations: 4 kB / 0.8418 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.1894, allocations: 11.98 kB / 0.8418 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.313e-06/0.1894, allocations: 3.938 kB / 0.8418 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1894, allocations: 0 / 0.8418 GB, free: 14.97 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006662/0.1901, allocations: 470 kB / 0.8423 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 2.001e-05/0.1901, allocations: 11.91 kB / 0.8423 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.222e-05/0.1902, allocations: 4 kB / 0.8423 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.1903, allocations: 19.94 kB / 0.8423 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.1903, allocations: 3.984 kB / 0.8423 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.1903, allocations: 11.98 kB / 0.8423 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001135/0.1905, allocations: 129.2 kB / 0.8424 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1905, allocations: 0 / 0.8424 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003085/0.1908, allocations: 39.94 kB / 0.8425 GB, free: 14.26 MB / 0.5919 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.001279/0.192, allocations: 1.018 MB / 0.8435 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006314/0.1927, allocations: 0.5192 MB / 0.844 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1927, allocations: 0 / 0.844 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002843/0.193, allocations: 246.6 kB / 0.8442 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.1933, allocations: 23.92 kB / 0.8442 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003085/0.1964, allocations: 2.621 MB / 0.8468 GB, free: 9.414 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.76e-05/0.1965, allocations: 97.17 kB / 0.8469 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.507e-05/0.1965, allocations: 20.34 kB / 0.8469 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.588e-05/0.1966, allocations: 39.42 kB / 0.847 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of SimCode: time 3.5e-07/0.1966, allocations: 0 / 0.847 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03505/0.2317, allocations: 4.028 MB / 0.8509 GB, free: 5.41 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.53, allocations: 9.5 kB / 0.8509 GB, free: 5.406 MB / 0.5919 GB " [Timeout remaining time 648] (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 --stepSize=0.004484 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.888846765970811] Failed to read output from testmodel.py, exit status != 0: 11.699868084047921 11.728051653 11.541476688 Calling exit ...