Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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.00168/0.00168, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.0021/0.0021, allocations: 213 kB / 23.03 MB, free: 4.926 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.446/3.446, allocations: 0.5003 GB / 0.8062 GB, free: 28.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings 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.002229/0.002229, allocations: 70.5 kB / 1.17 GB, free: 19.59 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4374/0.4397, allocations: 179 MB / 1.345 GB, free: 15.95 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00487/0.4445, allocations: 1.63 MB / 1.347 GB, free: 14.3 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.4462, allocations: 0.6429 MB / 1.347 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.4464, allocations: 0 / 1.347 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.4466, allocations: 31.78 kB / 1.348 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.4469, allocations: 43.77 kB / 1.348 GB, free: 13.58 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.4475, allocations: 127.7 kB / 1.348 GB, free: 13.46 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.000359/0.4478, allocations: 187.5 kB / 1.348 GB, free: 13.27 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.448, allocations: 21.91 kB / 1.348 GB, free: 13.25 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003754/0.4484, allocations: 95.73 kB / 1.348 GB, free: 13.16 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.4486, allocations: 83.72 kB / 1.348 GB, free: 13.07 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 5.136e-05/0.4486, allocations: 16 kB / 1.348 GB, free: 13.06 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.4487, allocations: 24 kB / 1.348 GB, free: 13.04 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.4488, allocations: 35.86 kB / 1.348 GB, free: 13 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.449, allocations: 67.77 kB / 1.348 GB, free: 12.93 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004056/0.4494, allocations: 171.3 kB / 1.348 GB, free: 12.77 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.4494, allocations: 4 kB / 1.348 GB, free: 12.76 MB / 1.045 GB Notification: Performance of FrontEnd: time 4.639e-06/0.4494, allocations: 3.984 kB / 1.348 GB, free: 12.76 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.4494, allocations: 3.938 kB / 1.348 GB, free: 12.75 MB / 1.045 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.001199/0.4506, allocations: 492.4 kB / 1.349 GB, free: 12.22 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 7.784e-05/0.4507, allocations: 16.02 kB / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.458e-05/0.4507, allocations: 192 / 1.349 GB, free: 12.2 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.66e-05/0.4508, allocations: 38.75 kB / 1.349 GB, free: 12.16 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.4511, allocations: 32.83 kB / 1.349 GB, free: 12.12 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005863/0.4517, allocations: 182.5 kB / 1.349 GB, free: 11.92 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.4517, allocations: 4.375 kB / 1.349 GB, free: 11.92 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.013e-05/0.4517, allocations: 24.12 kB / 1.349 GB, free: 11.89 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.4521, allocations: 172.9 kB / 1.349 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.4522, allocations: 0 / 1.349 GB, free: 11.71 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.4522, allocations: 4 kB / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.4522, allocations: 0 / 1.349 GB, free: 11.7 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002909/0.4525, allocations: 131.3 kB / 1.349 GB, free: 11.56 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008462/0.4533, allocations: 371.6 kB / 1.35 GB, free: 11.16 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.4536, allocations: 145.9 kB / 1.35 GB, free: 10.99 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.4539, allocations: 120.2 kB / 1.35 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.4539, allocations: 0 / 1.35 GB, free: 10.86 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.4543, allocations: 250.1 kB / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.813e-06/0.4543, allocations: 0 / 1.35 GB, free: 10.58 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.001133/0.4555, allocations: 475.6 kB / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002012/0.4557, allocations: 170.2 kB / 1.351 GB, free: 9.867 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.456, allocations: 175.6 kB / 1.351 GB, free: 9.684 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.456, allocations: 33.7 kB / 1.351 GB, free: 9.645 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.4561, allocations: 112.3 kB / 1.351 GB, free: 9.527 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.527e-05/0.4562, allocations: 27.94 kB / 1.351 GB, free: 9.5 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.4563, allocations: 41.7 kB / 1.351 GB, free: 9.453 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0002381/0.4566, allocations: 330.8 kB / 1.352 GB, free: 9.121 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.4568, allocations: 166.8 kB / 1.352 GB, free: 8.934 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.4571, allocations: 216.3 kB / 1.352 GB, free: 8.676 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.4577, allocations: 312.9 kB / 1.352 GB, free: 8.309 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4577, allocations: 4 kB / 1.352 GB, free: 8.305 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000835/0.4585, allocations: 462.9 kB / 1.353 GB, free: 7.797 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.4586, allocations: 115.1 kB / 1.353 GB, free: 7.66 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4586, allocations: 4 kB / 1.353 GB, free: 7.656 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.426e-05/0.4587, allocations: 7.984 kB / 1.353 GB, free: 7.648 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.4588, allocations: 12 kB / 1.353 GB, free: 7.637 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.766e-05/0.4588, allocations: 7.984 kB / 1.353 GB, free: 7.629 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.459, allocations: 16.17 kB / 1.353 GB, free: 7.613 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/0.459, allocations: 15.94 kB / 1.353 GB, free: 7.598 MB / 1.045 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.0002498/0.4593, allocations: 194.2 kB / 1.353 GB, free: 7.387 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.4593, allocations: 23.83 kB / 1.353 GB, free: 7.363 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.751e-05/0.4594, allocations: 13.41 kB / 1.353 GB, free: 7.344 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.4594, allocations: 4 kB / 1.353 GB, free: 7.34 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4594, allocations: 4 kB / 1.353 GB, free: 7.336 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.4594, allocations: 0 / 1.353 GB, free: 7.336 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.4604, allocations: 0.6056 MB / 1.354 GB, free: 6.656 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4604, allocations: 0 / 1.354 GB, free: 6.656 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.195e-05/0.4605, allocations: 11.98 kB / 1.354 GB, free: 6.645 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.4605, allocations: 0 / 1.354 GB, free: 6.645 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.4606, allocations: 11.98 kB / 1.354 GB, free: 6.633 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.4606, allocations: 3.938 kB / 1.354 GB, free: 6.629 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.4606, allocations: 4 kB / 1.354 GB, free: 6.625 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008075/0.4614, allocations: 470.1 kB / 1.354 GB, free: 6.125 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.938e-05/0.4614, allocations: 11.91 kB / 1.354 GB, free: 6.113 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.4615, allocations: 12 kB / 1.354 GB, free: 6.102 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.4616, allocations: 7.938 kB / 1.354 GB, free: 6.094 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/0.4617, allocations: 7.984 kB / 1.354 GB, free: 6.086 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/0.4617, allocations: 12 kB / 1.354 GB, free: 6.074 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001746/0.4619, allocations: 128.1 kB / 1.354 GB, free: 5.949 MB / 1.045 GB Notification: Performance of sort global known variables: time 9.1e-08/0.4619, allocations: 0 / 1.354 GB, free: 5.949 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003737/0.4622, allocations: 39.94 kB / 1.354 GB, free: 5.91 MB / 1.045 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.00174/0.464, allocations: 1.024 MB / 1.355 GB, free: 4.84 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009813/0.465, allocations: 0.5191 MB / 1.356 GB, free: 4.234 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.465, allocations: 0 / 1.356 GB, free: 4.234 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.000409/0.4654, allocations: 242.1 kB / 1.356 GB, free: 3.961 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.4658, allocations: 27.67 kB / 1.356 GB, free: 3.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00488/0.4707, allocations: 2.629 MB / 1.359 GB, free: 1.047 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000172/0.4709, allocations: 89.19 kB / 1.359 GB, free: 0.9414 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001129/0.471, allocations: 24.41 kB / 1.359 GB, free: 0.918 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.4711, allocations: 43.42 kB / 1.359 GB, free: 0.875 MB / 1.045 GB Notification: Performance of SimCode: time 2.535e-06/0.4711, allocations: 0 / 1.359 GB, free: 0.875 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04064/0.5118, allocations: 3.994 MB / 1.363 GB, free: 13.05 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.48, allocations: 10.09 kB / 1.363 GB, free: 13.05 MB / 1.061 GB " [Timeout remaining time 287] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 19.599809058010578] Failed to read output from testmodel.py, exit status != 0: 12.64538158196956 12.667346707 12.213091972 Calling exit ...