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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 107.8 kB / 16.4 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 222.9 MB / 245.1 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.814/2.814, allocations: 489 MB / 0.7678 GB, free: 16 kB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.91 kB / 1.101 GB, free: 6.156 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8504/0.8524, allocations: 163.8 MB / 1.261 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002958/0.8554, allocations: 1.619 MB / 1.263 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009682/0.8564, allocations: 0.6078 MB / 1.263 GB, free: 4.934 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.288e-05/0.8565, allocations: 8 kB / 1.263 GB, free: 4.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.8566, allocations: 19.78 kB / 1.263 GB, free: 4.906 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002087/0.8569, allocations: 50.64 kB / 1.263 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.8573, allocations: 115.7 kB / 1.263 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002486/0.8575, allocations: 183.6 kB / 1.264 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.8576, allocations: 33.09 kB / 1.264 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.8578, allocations: 87.69 kB / 1.264 GB, free: 4.449 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.8579, allocations: 83.72 kB / 1.264 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.802e-05/0.858, allocations: 16 kB / 1.264 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.313e-05/0.8581, allocations: 27.98 kB / 1.264 GB, free: 4.324 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.8581, allocations: 31.91 kB / 1.264 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.8582, allocations: 75.66 kB / 1.264 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002559/0.8585, allocations: 175.3 kB / 1.264 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.8585, allocations: 0 / 1.264 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8585, allocations: 0 / 1.264 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.8585, allocations: 0 / 1.264 GB, free: 4.047 MB / 0.9669 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.0007294/0.8593, allocations: 0.5562 MB / 1.265 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.8593, allocations: 8.031 kB / 1.265 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.8594, allocations: 38.75 kB / 1.265 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.8e-05/0.8594, allocations: 20.84 kB / 1.265 GB, free: 3.344 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003521/0.8598, allocations: 244.2 kB / 1.265 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.8598, allocations: 8.375 kB / 1.265 GB, free: 3.059 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.8598, allocations: 12.38 kB / 1.265 GB, free: 3.047 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.8601, allocations: 121.4 kB / 1.265 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.8601, allocations: 0 / 1.265 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.8602, allocations: 4 kB / 1.265 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.8602, allocations: 0 / 1.265 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002044/0.8604, allocations: 71.95 kB / 1.265 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.861, allocations: 420.5 kB / 1.266 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002134/0.8613, allocations: 86.53 kB / 1.266 GB, free: 2.293 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.8614, allocations: 76.81 kB / 1.266 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.077e-05/0.8615, allocations: 4 kB / 1.266 GB, free: 2.211 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.8617, allocations: 190.7 kB / 1.266 GB, free: 2 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.8618, allocations: 0 / 1.266 GB, free: 2 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007407/0.8625, allocations: 353 kB / 1.266 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.8626, allocations: 158.2 kB / 1.266 GB, free: 1.445 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.8628, allocations: 183.7 kB / 1.267 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.8628, allocations: 29.7 kB / 1.267 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.556e-05/0.8629, allocations: 104.4 kB / 1.267 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.46e-05/0.863, allocations: 31.73 kB / 1.267 GB, free: 1.078 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.632e-05/0.863, allocations: 45.7 kB / 1.267 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.8632, allocations: 326.8 kB / 1.267 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.8634, allocations: 47.97 kB / 1.267 GB, free: 0.6523 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.8635, allocations: 106.8 kB / 1.267 GB, free: 0.5234 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003811/0.8639, allocations: 312.9 kB / 1.267 GB, free: 160 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.8639, allocations: 0 / 1.267 GB, free: 160 kB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005784/0.8645, allocations: 348.1 kB / 1.268 GB, free: 15.79 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.336e-05/0.8646, allocations: 118.8 kB / 1.268 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.8646, allocations: 80 / 1.268 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.8647, allocations: 4 kB / 1.268 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001188/0.8648, allocations: 19.98 kB / 1.268 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.8648, allocations: 11.92 kB / 1.268 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.894e-05/0.8649, allocations: 16.17 kB / 1.268 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.128e-05/0.8649, allocations: 12.28 kB / 1.268 GB, free: 15.58 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.0001915/0.8651, allocations: 201.1 kB / 1.268 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.8652, allocations: 19.91 kB / 1.268 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.8652, allocations: 21.33 kB / 1.268 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.8652, allocations: 0 / 1.268 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.8652, allocations: 0 / 1.268 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.8653, allocations: 0 / 1.268 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007945/0.8661, allocations: 0.5876 MB / 1.269 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.8661, allocations: 0 / 1.269 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.508e-05/0.8661, allocations: 11.98 kB / 1.269 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.8661, allocations: 0 / 1.269 GB, free: 14.65 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.8662, allocations: 11.98 kB / 1.269 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.8662, allocations: 4 kB / 1.269 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.8662, allocations: 3.938 kB / 1.269 GB, free: 14.63 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006071/0.8668, allocations: 402.7 kB / 1.269 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.8669, allocations: 85.06 kB / 1.269 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.8669, allocations: 4 kB / 1.269 GB, free: 14.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.867, allocations: 7.984 kB / 1.269 GB, free: 14.09 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.8671, allocations: 11.94 kB / 1.269 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.8671, allocations: 11.98 kB / 1.269 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001162/0.8672, allocations: 132.8 kB / 1.269 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8672, allocations: 0 / 1.269 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002868/0.8675, allocations: 31.94 kB / 1.269 GB, free: 13.91 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.001058/0.8686, allocations: 0.9706 MB / 1.27 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005355/0.8691, allocations: 369.3 kB / 1.271 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8692, allocations: 0 / 1.271 GB, free: 12.5 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.8694, allocations: 202.8 kB / 1.271 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.8698, allocations: 25.95 kB / 1.271 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.8725, allocations: 2.113 MB / 1.273 GB, free: 9.988 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.8728, allocations: 0.708 MB / 1.274 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.723e-05/0.8729, allocations: 20.53 kB / 1.274 GB, free: 9.234 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.099e-05/0.873, allocations: 39.42 kB / 1.274 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.873, allocations: 0 / 1.274 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.8976, allocations: 3.653 MB / 1.277 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.111/9.009, allocations: 8.047 kB / 1.277 GB, free: 5.648 MB / 0.9825 GB " [Timeout remaining time 291] (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] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.998316869139671]