Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001349/0.001349, allocations: 105.5 kB / 19.73 MB, free: 2.223 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.001611/0.001611, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.913/2.913, allocations: 476.7 MB / 0.7715 GB, free: 4.281 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_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.002034/0.002034, allocations: 65.09 kB / 1.118 GB, free: 39.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4588/0.4609, allocations: 170 MB / 1.284 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003334/0.4642, allocations: 1.662 MB / 1.286 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.4654, allocations: 0.6953 MB / 1.286 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.809e-05/0.4655, allocations: 3.938 kB / 1.286 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.4657, allocations: 19.8 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.4659, allocations: 47.75 kB / 1.286 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004434/0.4664, allocations: 123.7 kB / 1.287 GB, free: 9.023 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.000326/0.4667, allocations: 195.6 kB / 1.287 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.4668, allocations: 13.62 kB / 1.287 GB, free: 8.816 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.467, allocations: 95.75 kB / 1.287 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.4672, allocations: 87.66 kB / 1.287 GB, free: 8.637 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.414e-05/0.4672, allocations: 12 kB / 1.287 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.248e-05/0.4673, allocations: 35.98 kB / 1.287 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.104e-05/0.4674, allocations: 31.91 kB / 1.287 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000105/0.4675, allocations: 71.66 kB / 1.287 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.4678, allocations: 182.9 kB / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4678, allocations: 0 / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4678, allocations: 0 / 1.287 GB, free: 8.312 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.4678, allocations: 0 / 1.287 GB, free: 8.312 MB / 0.9825 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.0007847/0.4686, allocations: 498.4 kB / 1.288 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.4687, allocations: 8.031 kB / 1.288 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.412e-05/0.4687, allocations: 8.188 kB / 1.288 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.506e-05/0.4687, allocations: 38.75 kB / 1.288 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001881/0.4689, allocations: 32.83 kB / 1.288 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.4693, allocations: 186.9 kB / 1.288 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.4693, allocations: 8.375 kB / 1.288 GB, free: 7.465 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.4694, allocations: 16.12 kB / 1.288 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.4697, allocations: 109.6 kB / 1.288 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.4697, allocations: 0 / 1.288 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.4697, allocations: 7.938 kB / 1.288 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.4697, allocations: 4 kB / 1.288 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.4699, allocations: 75.88 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007484/0.4707, allocations: 383.7 kB / 1.289 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.4709, allocations: 78.56 kB / 1.289 GB, free: 6.746 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001672/0.4711, allocations: 72.8 kB / 1.289 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.4711, allocations: 4 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002922/0.4714, allocations: 174.7 kB / 1.289 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.4714, allocations: 0 / 1.289 GB, free: 6.473 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0008039/0.4722, allocations: 372.9 kB / 1.289 GB, free: 6.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.4723, allocations: 162.2 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.4725, allocations: 175.6 kB / 1.29 GB, free: 5.711 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.4725, allocations: 29.7 kB / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.793e-05/0.4726, allocations: 112.4 kB / 1.29 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.4727, allocations: 31.73 kB / 1.29 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.768e-05/0.4727, allocations: 37.7 kB / 1.29 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4729, allocations: 326.8 kB / 1.29 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.4731, allocations: 55.97 kB / 1.29 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.4732, allocations: 102.8 kB / 1.29 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004174/0.4736, allocations: 312.9 kB / 1.291 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4737, allocations: 0 / 1.291 GB, free: 4.609 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006283/0.4743, allocations: 348.2 kB / 1.291 GB, free: 4.238 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.87e-05/0.4744, allocations: 122.8 kB / 1.291 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.4744, allocations: 0 / 1.291 GB, free: 4.094 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.4744, allocations: 8 kB / 1.291 GB, free: 4.086 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.4745, allocations: 19.92 kB / 1.291 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.4745, allocations: 4.25 kB / 1.291 GB, free: 4.062 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.4746, allocations: 19.94 kB / 1.291 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.804e-05/0.4747, allocations: 15.92 kB / 1.291 GB, free: 4.027 MB / 0.9825 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.0002008/0.4749, allocations: 197.2 kB / 1.291 GB, free: 3.812 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.625e-05/0.4749, allocations: 16.19 kB / 1.291 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.443e-05/0.475, allocations: 21.39 kB / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.475, allocations: 0 / 1.291 GB, free: 3.766 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.475, allocations: 7.938 kB / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.475, allocations: 0 / 1.291 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008543/0.4758, allocations: 0.5593 MB / 1.292 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4758, allocations: 0 / 1.292 GB, free: 3.137 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.916e-05/0.4759, allocations: 15.98 kB / 1.292 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4759, allocations: 3.938 kB / 1.292 GB, free: 3.117 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.577e-05/0.4759, allocations: 11.98 kB / 1.292 GB, free: 3.105 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-05/0.476, allocations: 3.938 kB / 1.292 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.476, allocations: 0 / 1.292 GB, free: 3.102 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.4766, allocations: 406.7 kB / 1.292 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.943e-05/0.4766, allocations: 7.953 kB / 1.292 GB, free: 2.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.681e-05/0.4766, allocations: 4 kB / 1.292 GB, free: 2.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.4768, allocations: 19.92 kB / 1.292 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.276e-05/0.4768, allocations: 4 kB / 1.292 GB, free: 2.641 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.656e-05/0.4768, allocations: 7.984 kB / 1.292 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000122/0.477, allocations: 129.8 kB / 1.292 GB, free: 2.508 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9.1e-08/0.477, allocations: 4 kB / 1.292 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003096/0.4773, allocations: 47.88 kB / 1.293 GB, free: 2.457 MB / 0.9825 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.001135/0.4784, allocations: 0.9771 MB / 1.293 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005468/0.479, allocations: 353.4 kB / 1.294 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.479, allocations: 0 / 1.294 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.4792, allocations: 183.2 kB / 1.294 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.4795, allocations: 24.56 kB / 1.294 GB, free: 0.8242 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002951/0.4825, allocations: 2.126 MB / 1.296 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000395/0.4829, allocations: 0.7117 MB / 1.297 GB, free: 13.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 7.22e-05/0.483, allocations: 24.45 kB / 1.297 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.032e-05/0.483, allocations: 35.42 kB / 1.297 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.483, allocations: 0 / 1.297 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02601/0.5091, allocations: 3.877 MB / 1.301 GB, free: 10.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.44, allocations: 5.953 kB / 1.301 GB, free: 10.04 MB / 0.9981 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --stepSize=0.004484 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.260076203965582] Failed to read output from testmodel.py, exit status != 0: 13.142851203971077 12.636238999 12.164176794 Calling exit ...