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.001548/0.001548, allocations: 107.6 kB / 18.95 MB, free: 2.828 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.00157/0.00157, allocations: 219.1 kB / 22.25 MB, free: 5.105 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.351/1.351, allocations: 230.6 MB / 256 MB, free: 7.801 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.002542/0.002542, allocations: 293 kB / 312.7 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.147/1.147, allocations: 180.6 MB / 0.5369 GB, free: 14.5 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="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.002884/0.002884, allocations: 93.83 kB / 0.7395 GB, free: 28.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1681, allocations: 95.38 MB / 0.8326 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003043/0.1712, allocations: 1.636 MB / 0.8342 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1723, allocations: 0.6508 MB / 0.8349 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.866e-05/0.1723, allocations: 3.938 kB / 0.8349 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1725, allocations: 19.78 kB / 0.8349 GB, free: 5.969 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.1727, allocations: 43.77 kB / 0.8349 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004819/0.1732, allocations: 127.7 kB / 0.8351 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002881/0.1735, allocations: 183.6 kB / 0.8352 GB, free: 5.621 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.1736, allocations: 25.91 kB / 0.8353 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.1738, allocations: 91.73 kB / 0.8353 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.174, allocations: 79.72 kB / 0.8354 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.65e-05/0.174, allocations: 12 kB / 0.8354 GB, free: 5.41 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 8.732e-05/0.1741, allocations: 39.94 kB / 0.8355 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.383e-05/0.1742, allocations: 27.91 kB / 0.8355 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.145e-05/0.1743, allocations: 71.64 kB / 0.8356 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.1745, allocations: 175.3 kB / 0.8357 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1745, allocations: 0 / 0.8357 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.402e-06/0.1745, allocations: 0 / 0.8357 GB, free: 5.102 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.1745, allocations: 4 kB / 0.8357 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.0007068/0.1752, allocations: 0.4891 MB / 0.8362 GB, free: 4.555 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1753, allocations: 13.28 kB / 0.8362 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.244e-05/0.1753, allocations: 38.75 kB / 0.8363 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001594/0.1755, allocations: 24.88 kB / 0.8363 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.1758, allocations: 182.4 kB / 0.8365 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.1758, allocations: 8.375 kB / 0.8365 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.1759, allocations: 16.38 kB / 0.8365 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002995/0.1761, allocations: 173 kB / 0.8366 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1762, allocations: 0 / 0.8366 GB, free: 4.059 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.907e-05/0.1762, allocations: 7.984 kB / 0.8367 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1762, allocations: 0 / 0.8367 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.1764, allocations: 131.3 kB / 0.8368 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006576/0.1771, allocations: 359.7 kB / 0.8371 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.1773, allocations: 149.9 kB / 0.8373 GB, free: 3.348 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000196/0.1775, allocations: 128.2 kB / 0.8374 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.1775, allocations: 0 / 0.8374 GB, free: 3.207 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003143/0.1779, allocations: 238.1 kB / 0.8376 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1779, allocations: 0 / 0.8376 GB, free: 2.938 MB / 0.5762 GB Notification: Performance of matching and sorting (n=10): time 0.0008306/0.1787, allocations: 475.6 kB / 0.8381 GB, free: 2.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/0.1788, allocations: 170.2 kB / 0.8382 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.179, allocations: 179.8 kB / 0.8384 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.851e-05/0.179, allocations: 29.7 kB / 0.8384 GB, free: 2.004 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.018e-05/0.1791, allocations: 112.5 kB / 0.8385 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.1791, allocations: 35.7 kB / 0.8386 GB, free: 1.852 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.1792, allocations: 37.72 kB / 0.8386 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.1793, allocations: 338.7 kB / 0.8389 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.1795, allocations: 158.8 kB / 0.8391 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.1798, allocations: 219.3 kB / 0.8393 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.1801, allocations: 309 kB / 0.8396 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1801, allocations: 0 / 0.8396 GB, free: 0.6641 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006277/0.1807, allocations: 466.9 kB / 0.84 GB, free: 156 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/0.1808, allocations: 122.8 kB / 0.8401 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.1808, allocations: 0 / 0.8401 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.1809, allocations: 4 kB / 0.8402 GB, free: 4 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001255/0.181, allocations: 19.92 kB / 0.8402 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.181, allocations: 4 kB / 0.8402 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.1811, allocations: 11.95 kB / 0.8402 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.1811, allocations: 16.25 kB / 0.8402 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.0001813/0.1813, allocations: 203.4 kB / 0.8404 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.1813, allocations: 15.91 kB / 0.8404 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.1814, allocations: 17.41 kB / 0.8404 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1814, allocations: 0 / 0.8404 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.1814, allocations: 0 / 0.8404 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1814, allocations: 3.984 kB / 0.8404 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007798/0.1822, allocations: 0.6018 MB / 0.841 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1822, allocations: 4 kB / 0.841 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.511e-05/0.1822, allocations: 15.94 kB / 0.841 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1822, allocations: 0 / 0.841 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.1823, allocations: 7.984 kB / 0.841 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1823, allocations: 0 / 0.841 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.1823, allocations: 7.938 kB / 0.8411 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006393/0.1829, allocations: 466.1 kB / 0.8415 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.1829, allocations: 15.84 kB / 0.8415 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.183, allocations: 11.94 kB / 0.8415 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.1831, allocations: 12 kB / 0.8415 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.1831, allocations: 11.92 kB / 0.8415 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.975e-05/0.1832, allocations: 11.98 kB / 0.8416 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001084/0.1833, allocations: 125.2 kB / 0.8417 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.1833, allocations: 0 / 0.8417 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003092/0.1836, allocations: 39.94 kB / 0.8417 GB, free: 14.27 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.001068/0.1847, allocations: 1.019 MB / 0.8427 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006235/0.1853, allocations: 0.5153 MB / 0.8432 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1853, allocations: 3.938 kB / 0.8432 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.1856, allocations: 242.6 kB / 0.8434 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.1859, allocations: 31.92 kB / 0.8435 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/0.189, allocations: 2.605 MB / 0.846 GB, free: 9.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001004/0.1891, allocations: 105.2 kB / 0.8461 GB, free: 9.309 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.198e-05/0.1892, allocations: 28.31 kB / 0.8462 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.339e-05/0.1892, allocations: 39.36 kB / 0.8462 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of SimCode: time 2.6e-07/0.1892, allocations: 0 / 0.8462 GB, free: 9.238 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03113/0.2204, allocations: 4.347 MB / 0.8504 GB, free: 5.074 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.94, allocations: 14.56 kB / 0.8504 GB, free: 5.062 MB / 0.5919 GB " [Timeout remaining time 649] (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 sys.exit(0), Time elapsed: 14.823824701830745] Failed to read output from testmodel.py, exit status != 0: 11.038363813888282 11.053164627 10.875786381 Calling exit ...