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.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.001843/0.001843, allocations: 110.2 kB / 18.93 MB, free: 2.945 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.002064/0.002064, allocations: 192 kB / 22.23 MB, free: 5.16 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.438/1.438, allocations: 225.6 MB / 251 MB, free: 13.01 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.923/2.923, allocations: 476.7 MB / 0.7646 GB, free: 9.891 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.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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter")
translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002087/0.002087, allocations: 71.89 kB / 1.11 GB, free: 6.332 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.818/0.8201, allocations: 168.8 MB / 1.274 GB, free: 4.203 MB / 0.9669 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003439/0.8236, allocations: 1.638 MB / 1.276 GB, free: 2.559 MB / 0.9669 GB
Notification: Performance of NFInst.instExpressions: time 0.001105/0.8247, allocations: 0.6288 MB / 1.277 GB, free: 1.926 MB / 0.9669 GB
Notification: Performance of NFInst.updateImplicitVariability: time 7.993e-05/0.8247, allocations: 0 / 1.277 GB, free: 1.926 MB / 0.9669 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.8249, allocations: 15.8 kB / 1.277 GB, free: 1.91 MB / 0.9669 GB
Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.8251, allocations: 51.75 kB / 1.277 GB, free: 1.859 MB / 0.9669 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.8255, allocations: 115.7 kB / 1.277 GB, free: 1.746 MB / 0.9669 GB
Notification: Performance of NFFlatten.flatten: time 0.0002847/0.8258, allocations: 179.6 kB / 1.277 GB, free: 1.57 MB / 0.9669 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.826, allocations: 25.28 kB / 1.277 GB, free: 1.547 MB / 0.9669 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.8261, allocations: 87.75 kB / 1.277 GB, free: 1.461 MB / 0.9669 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.8263, allocations: 83.72 kB / 1.277 GB, free: 1.379 MB / 0.9669 GB
Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.8263, allocations: 16 kB / 1.277 GB, free: 1.363 MB / 0.9669 GB
Notification: Performance of NFFlatten.collectFunctions: time 8.422e-05/0.8264, allocations: 35.98 kB / 1.277 GB, free: 1.328 MB / 0.9669 GB
Notification: Performance of NFScalarize.scalarize: time 9.087e-05/0.8265, allocations: 23.92 kB / 1.277 GB, free: 1.305 MB / 0.9669 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001076/0.8266, allocations: 79.64 kB / 1.277 GB, free: 1.227 MB / 0.9669 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002714/0.8269, allocations: 165.8 kB / 1.277 GB, free: 1.07 MB / 0.9669 GB
Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.8269, allocations: 0 / 1.277 GB, free: 1.07 MB / 0.9669 GB
Notification: Performance of FrontEnd: time 9.81e-07/0.8269, allocations: 0 / 1.277 GB, free: 1.07 MB / 0.9669 GB
Notification: Performance of Transformations before backend: time 6.211e-06/0.8269, allocations: 3.938 kB / 1.277 GB, free: 1.066 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.0007732/0.8276, allocations: 0.4964 MB / 1.278 GB, free: 0.5156 MB / 0.9669 GB
Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.8277, allocations: 8.031 kB / 1.278 GB, free: 0.5078 MB / 0.9669 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.8278, allocations: 20.84 kB / 1.278 GB, free: 500 kB / 0.9669 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003394/0.8281, allocations: 174.5 kB / 1.278 GB, free: 300 kB / 0.9669 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.8281, allocations: 8.375 kB / 1.278 GB, free: 292 kB / 0.9669 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.8282, allocations: 12.38 kB / 1.278 GB, free: 280 kB / 0.9669 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.8285, allocations: 125.7 kB / 1.278 GB, free: 148 kB / 0.9669 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.8285, allocations: 0 / 1.278 GB, free: 148 kB / 0.9669 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.8285, allocations: 4 kB / 1.278 GB, free: 144 kB / 0.9669 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.8285, allocations: 4 kB / 1.278 GB, free: 140 kB / 0.9669 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002085/0.8287, allocations: 63.95 kB / 1.278 GB, free: 76 kB / 0.9669 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.8295, allocations: 391.5 kB / 1.279 GB, free: 15.65 MB / 0.9825 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.8297, allocations: 82.53 kB / 1.279 GB, free: 15.56 MB / 0.9825 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.8299, allocations: 72.8 kB / 1.279 GB, free: 15.48 MB / 0.9825 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.8299, allocations: 0 / 1.279 GB, free: 15.48 MB / 0.9825 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003155/0.8302, allocations: 182.9 kB / 1.279 GB, free: 15.28 MB / 0.9825 GB
Notification: Performance of pre-optimization done (n=10): time 1.303e-06/0.8302, allocations: 3.938 kB / 1.279 GB, free: 15.28 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=10): time 0.000823/0.831, allocations: 352.9 kB / 1.279 GB, free: 14.91 MB / 0.9825 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.8312, allocations: 174.1 kB / 1.279 GB, free: 14.71 MB / 0.9825 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.8314, allocations: 179.8 kB / 1.28 GB, free: 14.52 MB / 0.9825 GB
Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.8314, allocations: 33.7 kB / 1.28 GB, free: 14.48 MB / 0.9825 GB
Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.8315, allocations: 104.4 kB / 1.28 GB, free: 14.37 MB / 0.9825 GB
Notification: Performance of collectInitialBindings (initialization): time 4.47e-05/0.8315, allocations: 35.72 kB / 1.28 GB, free: 14.34 MB / 0.9825 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.806e-05/0.8316, allocations: 41.7 kB / 1.28 GB, free: 14.29 MB / 0.9825 GB
Notification: Performance of setup shared object (initialization): time 0.0001651/0.8318, allocations: 330.8 kB / 1.28 GB, free: 13.96 MB / 0.9825 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.8319, allocations: 55.95 kB / 1.28 GB, free: 13.9 MB / 0.9825 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.8321, allocations: 94.83 kB / 1.28 GB, free: 13.79 MB / 0.9825 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003979/0.8325, allocations: 312.9 kB / 1.281 GB, free: 13.42 MB / 0.9825 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.8325, allocations: 8 kB / 1.281 GB, free: 13.41 MB / 0.9825 GB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006545/0.8332, allocations: 344.2 kB / 1.281 GB, free: 13.04 MB / 0.9825 GB
Notification: Performance of prepare postOptimizeDAE: time 9.934e-05/0.8333, allocations: 117.1 kB / 1.281 GB, free: 12.91 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.8333, allocations: 0 / 1.281 GB, free: 12.91 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.8333, allocations: 7.938 kB / 1.281 GB, free: 12.9 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.8334, allocations: 20.23 kB / 1.281 GB, free: 12.88 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.8334, allocations: 4 kB / 1.281 GB, free: 12.88 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.8336, allocations: 19.98 kB / 1.281 GB, free: 12.86 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.8336, allocations: 8 kB / 1.281 GB, free: 12.85 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.0001876/0.8338, allocations: 205 kB / 1.281 GB, free: 12.62 MB / 0.9825 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.8338, allocations: 15.91 kB / 1.281 GB, free: 12.61 MB / 0.9825 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.185e-05/0.8339, allocations: 17.39 kB / 1.281 GB, free: 12.58 MB / 0.9825 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.8339, allocations: 0 / 1.281 GB, free: 12.58 MB / 0.9825 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.8339, allocations: 4 kB / 1.281 GB, free: 12.58 MB / 0.9825 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.8339, allocations: 4 kB / 1.281 GB, free: 12.57 MB / 0.9825 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008285/0.8347, allocations: 0.5596 MB / 1.282 GB, free: 11.95 MB / 0.9825 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.8347, allocations: 0 / 1.282 GB, free: 11.95 MB / 0.9825 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.857e-05/0.8348, allocations: 12 kB / 1.282 GB, free: 11.94 MB / 0.9825 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.8348, allocations: 11.92 kB / 1.282 GB, free: 11.93 MB / 0.9825 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.138e-05/0.8348, allocations: 4 kB / 1.282 GB, free: 11.93 MB / 0.9825 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.8348, allocations: 3.938 kB / 1.282 GB, free: 11.92 MB / 0.9825 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8348, allocations: 3.938 kB / 1.282 GB, free: 11.92 MB / 0.9825 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006108/0.8354, allocations: 410.7 kB / 1.282 GB, free: 11.49 MB / 0.9825 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.8354, allocations: 7.953 kB / 1.282 GB, free: 11.48 MB / 0.9825 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.01e-05/0.8355, allocations: 11.98 kB / 1.282 GB, free: 11.47 MB / 0.9825 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.8356, allocations: 8 kB / 1.282 GB, free: 11.46 MB / 0.9825 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.736e-05/0.8356, allocations: 11.92 kB / 1.282 GB, free: 11.45 MB / 0.9825 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.8357, allocations: 8 kB / 1.282 GB, free: 11.44 MB / 0.9825 GB
Notification: Performance of sorting global known variables: time 0.0001165/0.8358, allocations: 131.2 kB / 1.282 GB, free: 11.31 MB / 0.9825 GB
Notification: Performance of sort global known variables: time 1e-07/0.8358, allocations: 0 / 1.282 GB, free: 11.31 MB / 0.9825 GB
Notification: Performance of remove unused functions: time 0.0003076/0.8361, allocations: 39.95 kB / 1.283 GB, free: 11.27 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.0002555/0.8363, allocations: 120.3 kB / 1.283 GB, free: 11.15 MB / 0.9825 GB
Notification: Performance of simCode: created initialization part: time 0.0005612/0.8369, allocations: 361.4 kB / 1.283 GB, free: 10.75 MB / 0.9825 GB
Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.8369, allocations: 0 / 1.283 GB, free: 10.75 MB / 0.9825 GB
Notification: Performance of simCode: created simulation system equations: time 0.00025/0.8372, allocations: 190.7 kB / 1.283 GB, free: 10.54 MB / 0.9825 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.8375, allocations: 16 kB / 1.283 GB, free: 10.52 MB / 0.9825 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006449/0.8381, allocations: 300.4 kB / 1.283 GB, free: 10.21 MB / 0.9825 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.8385, allocations: 0.7041 MB / 1.284 GB, free: 9.477 MB / 0.9825 GB
Notification: Performance of simCode: alias equations: time 7.535e-05/0.8385, allocations: 28.39 kB / 1.284 GB, free: 9.445 MB / 0.9825 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.719e-05/0.8386, allocations: 15.44 kB / 1.284 GB, free: 9.43 MB / 0.9825 GB
Notification: Performance of SimCode: time 3.21e-07/0.8386, allocations: 0 / 1.284 GB, free: 9.43 MB / 0.9825 GB
Notification: Performance of Templates: time 0.006114/0.8447, allocations: 2.149 MB / 1.286 GB, free: 7.305 MB / 0.9825 GB
"
[Timeout remaining time 299]
make -j1 -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300]
(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 & ./Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 8.87538474611938]