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.001245/0.001245, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001424/0.001424, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.487/1.487, allocations: 230.6 MB / 256.8 MB, free: 8 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.316/3.316, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 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.001943/0.001943, allocations: 65.38 kB / 1.171 GB, free: 19.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4532/0.4552, allocations: 179 MB / 1.345 GB, free: 0.5117 MB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003303/0.4585, allocations: 1.646 MB / 1.347 GB, free: 14.85 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001289/0.4598, allocations: 0.7051 MB / 1.348 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.374e-05/0.4599, allocations: 0 / 1.348 GB, free: 14.14 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001738/0.46, allocations: 23.78 kB / 1.348 GB, free: 14.12 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002451/0.4603, allocations: 49.88 kB / 1.348 GB, free: 14.07 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005258/0.4608, allocations: 123.7 kB / 1.348 GB, free: 13.95 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003161/0.4611, allocations: 183.6 kB / 1.348 GB, free: 13.77 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.4612, allocations: 17.91 kB / 1.348 GB, free: 13.75 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.4615, allocations: 95.75 kB / 1.348 GB, free: 13.66 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.4616, allocations: 95.66 kB / 1.348 GB, free: 13.56 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.095e-05/0.4617, allocations: 12 kB / 1.348 GB, free: 13.55 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.4618, allocations: 35.97 kB / 1.348 GB, free: 13.52 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 8.836e-05/0.4619, allocations: 23.92 kB / 1.348 GB, free: 13.49 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.462, allocations: 79.64 kB / 1.348 GB, free: 13.41 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.4623, allocations: 175.3 kB / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.4623, allocations: 0 / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.502e-06/0.4623, allocations: 0 / 1.348 GB, free: 13.24 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.042e-06/0.4623, allocations: 0 / 1.348 GB, free: 13.24 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.0008206/0.4631, allocations: 0.4925 MB / 1.349 GB, free: 12.7 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.4632, allocations: 8.031 kB / 1.349 GB, free: 12.69 MB / 1.045 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.406e-05/0.4632, allocations: 192 / 1.349 GB, free: 12.69 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.4633, allocations: 42.69 kB / 1.349 GB, free: 12.64 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001911/0.4634, allocations: 32.83 kB / 1.349 GB, free: 12.61 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.4638, allocations: 182.5 kB / 1.349 GB, free: 12.4 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.4638, allocations: 8.375 kB / 1.349 GB, free: 12.39 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.278e-05/0.4638, allocations: 12.12 kB / 1.349 GB, free: 12.38 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/0.4641, allocations: 121.5 kB / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4641, allocations: 0 / 1.349 GB, free: 12.26 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.4642, allocations: 4 kB / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4642, allocations: 0 / 1.349 GB, free: 12.25 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.4644, allocations: 67.94 kB / 1.349 GB, free: 12.19 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007365/0.4651, allocations: 395.6 kB / 1.35 GB, free: 11.76 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.4653, allocations: 74.53 kB / 1.35 GB, free: 11.68 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001805/0.4655, allocations: 72.8 kB / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.4655, allocations: 160 / 1.35 GB, free: 11.6 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003286/0.4659, allocations: 182.7 kB / 1.35 GB, free: 11.4 MB / 1.045 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.4659, allocations: 96 / 1.35 GB, free: 11.4 MB / 1.045 GB Notification: Performance of matching and sorting (n=10): time 0.0008724/0.4667, allocations: 356.8 kB / 1.35 GB, free: 11.03 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.4669, allocations: 166.2 kB / 1.351 GB, free: 10.83 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.4671, allocations: 179.6 kB / 1.351 GB, free: 10.64 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.423e-05/0.4671, allocations: 37.64 kB / 1.351 GB, free: 10.6 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.603e-05/0.4672, allocations: 120.2 kB / 1.351 GB, free: 10.48 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.4672, allocations: 27.78 kB / 1.351 GB, free: 10.45 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.9e-05/0.4673, allocations: 37.7 kB / 1.351 GB, free: 10.41 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.000188/0.4675, allocations: 330.8 kB / 1.351 GB, free: 10.07 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.4677, allocations: 47.97 kB / 1.351 GB, free: 10.03 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.4678, allocations: 110.8 kB / 1.351 GB, free: 9.895 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003984/0.4682, allocations: 312.9 kB / 1.352 GB, free: 9.527 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.4682, allocations: 0 / 1.352 GB, free: 9.527 MB / 1.045 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005833/0.4688, allocations: 352.3 kB / 1.352 GB, free: 9.152 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.4689, allocations: 124.5 kB / 1.352 GB, free: 9.008 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4689, allocations: 368 / 1.352 GB, free: 9.008 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.469, allocations: 4 kB / 1.352 GB, free: 9.004 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.4691, allocations: 19.92 kB / 1.352 GB, free: 8.984 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.4691, allocations: 11.92 kB / 1.352 GB, free: 8.973 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.4692, allocations: 15.89 kB / 1.352 GB, free: 8.957 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.846e-05/0.4692, allocations: 19.92 kB / 1.352 GB, free: 8.938 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.0001967/0.4694, allocations: 197.3 kB / 1.352 GB, free: 8.723 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.782e-05/0.4695, allocations: 15.91 kB / 1.353 GB, free: 8.707 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.525e-05/0.4695, allocations: 17.41 kB / 1.353 GB, free: 8.684 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.4695, allocations: 0 / 1.353 GB, free: 8.684 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4695, allocations: 0 / 1.353 GB, free: 8.684 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.4695, allocations: 3.984 kB / 1.353 GB, free: 8.68 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008003/0.4703, allocations: 0.5555 MB / 1.353 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4703, allocations: 0 / 1.353 GB, free: 8.062 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.436e-05/0.4704, allocations: 15.98 kB / 1.353 GB, free: 8.047 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4704, allocations: 0 / 1.353 GB, free: 8.047 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.4704, allocations: 15.98 kB / 1.353 GB, free: 8.031 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.4704, allocations: 3.938 kB / 1.353 GB, free: 8.027 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4704, allocations: 0 / 1.353 GB, free: 8.027 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000632/0.471, allocations: 410.6 kB / 1.353 GB, free: 7.598 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 2.22e-05/0.4711, allocations: 15.91 kB / 1.354 GB, free: 7.582 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.4711, allocations: 4 kB / 1.354 GB, free: 7.578 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.4712, allocations: 11.94 kB / 1.354 GB, free: 7.566 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.4713, allocations: 7.984 kB / 1.354 GB, free: 7.559 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.4713, allocations: 11.98 kB / 1.354 GB, free: 7.547 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001246/0.4714, allocations: 128.1 kB / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4714, allocations: 0 / 1.354 GB, free: 7.422 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003121/0.4717, allocations: 39.94 kB / 1.354 GB, free: 7.383 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.001253/0.473, allocations: 0.959 MB / 1.355 GB, free: 6.391 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005744/0.4736, allocations: 361.4 kB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4736, allocations: 0 / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003051/0.4739, allocations: 186.7 kB / 1.355 GB, free: 5.781 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.4742, allocations: 23.69 kB / 1.355 GB, free: 5.758 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.4772, allocations: 2.13 MB / 1.357 GB, free: 3.48 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004017/0.4776, allocations: 0.7119 MB / 1.358 GB, free: 2.742 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 8.181e-05/0.4777, allocations: 20.47 kB / 1.358 GB, free: 2.723 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.716e-05/0.4778, allocations: 39.42 kB / 1.358 GB, free: 2.684 MB / 1.045 GB Notification: Performance of SimCode: time 5.81e-07/0.4778, allocations: 0 / 1.358 GB, free: 2.684 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.5059, allocations: 3.877 MB / 1.362 GB, free: 14.97 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.12, allocations: 11.17 kB / 1.362 GB, free: 14.96 MB / 1.061 GB " [Timeout remaining time 288] (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.11678254598519] Failed to read output from testmodel.py, exit status != 0: 12.314226555987261 12.34155224 11.874229082 Calling exit ...