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.001501/0.001501, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.001433/0.001433, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.517/1.517, allocations: 230.6 MB / 256.8 MB, free: 8.027 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.002601/0.002601, allocations: 288.1 kB / 313.5 MB, free: 2.836 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.319/1.319, allocations: 180.6 MB / 0.5377 GB, free: 13 MB / 382.1 MB " [Timeout remaining time 178] 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.002777/0.002777, allocations: 103.1 kB / 0.7403 GB, free: 28.32 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1858, allocations: 95.39 MB / 0.8335 GB, free: 8.691 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003398/0.1892, allocations: 1.655 MB / 0.8351 GB, free: 7.023 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.1905, allocations: 0.6857 MB / 0.8358 GB, free: 6.332 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1906, allocations: 7.938 kB / 0.8358 GB, free: 6.324 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.1908, allocations: 23.73 kB / 0.8358 GB, free: 6.301 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 0.0002644/0.1911, allocations: 51.75 kB / 0.8359 GB, free: 6.25 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005311/0.1916, allocations: 123.7 kB / 0.836 GB, free: 6.129 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.1919, allocations: 191.6 kB / 0.8362 GB, free: 5.941 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.192, allocations: 17.91 kB / 0.8362 GB, free: 5.918 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002342/0.1923, allocations: 87.81 kB / 0.8363 GB, free: 5.832 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.1924, allocations: 87.66 kB / 0.8364 GB, free: 5.746 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 4.308e-05/0.1925, allocations: 16 kB / 0.8364 GB, free: 5.73 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 9.429e-05/0.1926, allocations: 31.98 kB / 0.8364 GB, free: 5.699 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.1926, allocations: 35.84 kB / 0.8364 GB, free: 5.664 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 0.0001194/0.1928, allocations: 79.66 kB / 0.8365 GB, free: 5.586 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.1931, allocations: 175.3 kB / 0.8367 GB, free: 5.414 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1931, allocations: 0 / 0.8367 GB, free: 5.414 MB / 0.5763 GB Notification: Performance of FrontEnd: time 6.752e-06/0.1931, allocations: 4 kB / 0.8367 GB, free: 5.41 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.1931, allocations: 0 / 0.8367 GB, free: 5.41 MB / 0.5763 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.0007562/0.1938, allocations: 488.4 kB / 0.8371 GB, free: 4.879 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.1939, allocations: 13.34 kB / 0.8372 GB, free: 4.867 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.375e-05/0.1939, allocations: 8.188 kB / 0.8372 GB, free: 4.859 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.191e-05/0.1939, allocations: 34.75 kB / 0.8372 GB, free: 4.816 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1941, allocations: 28.88 kB / 0.8372 GB, free: 4.789 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.1945, allocations: 190.3 kB / 0.8374 GB, free: 4.578 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.1945, allocations: 4.375 kB / 0.8374 GB, free: 4.574 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.1945, allocations: 24.11 kB / 0.8374 GB, free: 4.551 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002846/0.1948, allocations: 109.5 kB / 0.8375 GB, free: 4.438 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1948, allocations: 4 kB / 0.8375 GB, free: 4.434 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.1948, allocations: 8 kB / 0.8376 GB, free: 4.426 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1949, allocations: 0 / 0.8376 GB, free: 4.426 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000206/0.1951, allocations: 71.88 kB / 0.8376 GB, free: 4.355 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007058/0.1958, allocations: 391.6 kB / 0.838 GB, free: 3.93 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.196, allocations: 82.56 kB / 0.8381 GB, free: 3.84 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.1961, allocations: 68.81 kB / 0.8381 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1962, allocations: 0 / 0.8381 GB, free: 3.77 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00031/0.1965, allocations: 174.7 kB / 0.8383 GB, free: 3.574 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.1965, allocations: 0 / 0.8383 GB, free: 3.574 MB / 0.5763 GB Notification: Performance of matching and sorting (n=10): time 0.0008027/0.1973, allocations: 364.9 kB / 0.8387 GB, free: 3.199 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001354/0.1974, allocations: 166.2 kB / 0.8388 GB, free: 3 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002099/0.1976, allocations: 179.6 kB / 0.839 GB, free: 2.812 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.1977, allocations: 29.7 kB / 0.839 GB, free: 2.777 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 9.314e-05/0.1978, allocations: 112.3 kB / 0.8391 GB, free: 2.66 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.1978, allocations: 27.78 kB / 0.8391 GB, free: 2.633 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.079e-05/0.1979, allocations: 41.7 kB / 0.8392 GB, free: 2.586 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.198, allocations: 326.8 kB / 0.8395 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.1982, allocations: 55.91 kB / 0.8395 GB, free: 2.203 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.1984, allocations: 102.8 kB / 0.8396 GB, free: 2.078 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.1988, allocations: 312.9 kB / 0.8399 GB, free: 1.711 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1988, allocations: 4 kB / 0.8399 GB, free: 1.707 MB / 0.5763 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00063/0.1994, allocations: 348.2 kB / 0.8403 GB, free: 1.336 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/0.1995, allocations: 118.8 kB / 0.8404 GB, free: 1.195 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.1995, allocations: 4 kB / 0.8404 GB, free: 1.191 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.1995, allocations: 3.938 kB / 0.8404 GB, free: 1.188 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.1996, allocations: 24.17 kB / 0.8404 GB, free: 1.164 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1997, allocations: 4 kB / 0.8404 GB, free: 1.16 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.1998, allocations: 20.23 kB / 0.8404 GB, free: 1.141 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.1998, allocations: 15.92 kB / 0.8405 GB, free: 1.125 MB / 0.5763 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.0001979/0.2, allocations: 193.8 kB / 0.8406 GB, free: 0.9141 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-05/0.2001, allocations: 27.84 kB / 0.8407 GB, free: 0.8867 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.503e-05/0.2001, allocations: 17.39 kB / 0.8407 GB, free: 0.8672 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2001, allocations: 0 / 0.8407 GB, free: 0.8672 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2001, allocations: 0 / 0.8407 GB, free: 0.8672 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.2001, allocations: 4 kB / 0.8407 GB, free: 0.8633 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008596/0.201, allocations: 0.5555 MB / 0.8412 GB, free: 252 kB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.201, allocations: 0 / 0.8412 GB, free: 252 kB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.872e-05/0.201, allocations: 11.98 kB / 0.8412 GB, free: 240 kB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.201, allocations: 0 / 0.8412 GB, free: 240 kB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.2011, allocations: 15.98 kB / 0.8413 GB, free: 224 kB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.2011, allocations: 7.938 kB / 0.8413 GB, free: 216 kB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2011, allocations: 0 / 0.8413 GB, free: 216 kB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006227/0.2017, allocations: 406.7 kB / 0.8417 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 2.084e-05/0.2017, allocations: 11.91 kB / 0.8417 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.2018, allocations: 4 kB / 0.8417 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.2019, allocations: 15.92 kB / 0.8417 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/0.2019, allocations: 7.984 kB / 0.8417 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.202, allocations: 15.97 kB / 0.8417 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001252/0.2021, allocations: 137.2 kB / 0.8418 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.2021, allocations: 0 / 0.8418 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003227/0.2024, allocations: 39.92 kB / 0.8419 GB, free: 15.56 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.001111/0.2035, allocations: 0.9596 MB / 0.8428 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005801/0.2041, allocations: 357.4 kB / 0.8432 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2041, allocations: 0.5 kB / 0.8432 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002609/0.2044, allocations: 182.8 kB / 0.8433 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.2047, allocations: 22.83 kB / 0.8434 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.2075, allocations: 2.124 MB / 0.8454 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.2079, allocations: 0.708 MB / 0.8461 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.396e-05/0.2079, allocations: 24.41 kB / 0.8461 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.415e-05/0.208, allocations: 39.42 kB / 0.8462 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of SimCode: time 6.92e-07/0.208, allocations: 4 kB / 0.8462 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.235, allocations: 3.886 MB / 0.85 GB, free: 7.168 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.52, allocations: 13.91 kB / 0.85 GB, free: 7.16 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.928649477951694] Failed to read output from testmodel.py, exit status != 0: 11.681914479995612 11.709165561 11.511845128 Calling exit ...