Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001348/0.001348, allocations: 104.3 kB / 19.7 MB, free: 2.156 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.001665/0.001665, allocations: 213.2 kB / 22.99 MB, free: 4.984 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.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.292/3.292, allocations: 0.49 GB / 0.7959 GB, free: 35.58 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_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_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [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.002101/0.002101, allocations: 64.88 kB / 1.155 GB, free: 25.25 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4302/0.4323, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003521/0.4359, allocations: 1.632 MB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.4372, allocations: 0.6546 MB / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.444e-05/0.4373, allocations: 0 / 1.329 GB, free: 14.72 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.4375, allocations: 19.8 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000255/0.4377, allocations: 47.77 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.4383, allocations: 127.7 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.4386, allocations: 195.5 kB / 1.33 GB, free: 14.34 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.4387, allocations: 17.62 kB / 1.33 GB, free: 14.32 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.4389, allocations: 95.73 kB / 1.33 GB, free: 14.22 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.4391, allocations: 83.72 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 5.58e-05/0.4391, allocations: 12 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.645e-05/0.4392, allocations: 32 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.4393, allocations: 35.84 kB / 1.33 GB, free: 14.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.32e-05/0.4394, allocations: 63.78 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003352/0.4397, allocations: 179.3 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4397, allocations: 0 / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.273e-06/0.4397, allocations: 4 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.4397, allocations: 0 / 1.33 GB, free: 13.82 MB / 1.029 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.0007634/0.4405, allocations: 496.3 kB / 1.331 GB, free: 13.28 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.4406, allocations: 8.031 kB / 1.331 GB, free: 13.27 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002054/0.4408, allocations: 32.83 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.4411, allocations: 183 kB / 1.331 GB, free: 13.04 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.4411, allocations: 16.38 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.299e-05/0.4412, allocations: 8.375 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003389/0.4415, allocations: 185.1 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.4415, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.4415, allocations: 0 / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.4415, allocations: 7.984 kB / 1.331 GB, free: 12.81 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002521/0.4418, allocations: 123.3 kB / 1.331 GB, free: 12.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006561/0.4425, allocations: 348.2 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.4427, allocations: 137.9 kB / 1.332 GB, free: 12.15 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.4429, allocations: 124.2 kB / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.774e-05/0.4429, allocations: 0 / 1.332 GB, free: 12.01 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00035/0.4433, allocations: 238.1 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.4433, allocations: 4.031 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008758/0.4442, allocations: 487.7 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.4443, allocations: 170.2 kB / 1.333 GB, free: 11.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.4445, allocations: 179.6 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.4445, allocations: 29.64 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.611e-05/0.4446, allocations: 108.4 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.4446, allocations: 31.73 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.866e-05/0.4447, allocations: 37.72 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.4449, allocations: 334.8 kB / 1.333 GB, free: 10.27 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002132/0.4451, allocations: 162.8 kB / 1.333 GB, free: 10.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.4453, allocations: 217.6 kB / 1.334 GB, free: 9.824 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.4457, allocations: 308.9 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4457, allocations: 4 kB / 1.334 GB, free: 9.457 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006649/0.4464, allocations: 467 kB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.091e-05/0.4465, allocations: 118.8 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.4465, allocations: 0 / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4465, allocations: 4 kB / 1.335 GB, free: 8.801 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.4466, allocations: 20.17 kB / 1.335 GB, free: 8.781 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.4466, allocations: 8 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.953e-05/0.4467, allocations: 15.94 kB / 1.335 GB, free: 8.758 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.4467, allocations: 8 kB / 1.335 GB, free: 8.75 MB / 1.029 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.0002218/0.447, allocations: 206.9 kB / 1.335 GB, free: 8.527 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/0.447, allocations: 15.91 kB / 1.335 GB, free: 8.512 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.608e-05/0.447, allocations: 13.41 kB / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.447, allocations: 0 / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4471, allocations: 0 / 1.335 GB, free: 8.492 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.4471, allocations: 3.984 kB / 1.335 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007823/0.4478, allocations: 0.5866 MB / 1.335 GB, free: 7.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4478, allocations: 0 / 1.335 GB, free: 7.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.365e-05/0.4479, allocations: 11.98 kB / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4479, allocations: 0 / 1.335 GB, free: 7.828 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.4479, allocations: 8 kB / 1.335 GB, free: 7.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.4479, allocations: 3.984 kB / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4479, allocations: 0 / 1.335 GB, free: 7.816 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006399/0.4486, allocations: 470.2 kB / 1.336 GB, free: 7.316 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.395e-05/0.4486, allocations: 19.94 kB / 1.336 GB, free: 7.297 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.67e-05/0.4486, allocations: 8 kB / 1.336 GB, free: 7.289 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.4487, allocations: 4 kB / 1.336 GB, free: 7.285 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.4488, allocations: 7.984 kB / 1.336 GB, free: 7.277 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.143e-05/0.4488, allocations: 15.98 kB / 1.336 GB, free: 7.262 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001156/0.4489, allocations: 128.1 kB / 1.336 GB, free: 7.137 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4489, allocations: 0 / 1.336 GB, free: 7.137 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003235/0.4493, allocations: 47.83 kB / 1.336 GB, free: 7.09 MB / 1.029 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.000274/0.4495, allocations: 126.5 kB / 1.336 GB, free: 6.965 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006459/0.4502, allocations: 0.5152 MB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4502, allocations: 0 / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.4505, allocations: 246.6 kB / 1.337 GB, free: 6.086 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.4508, allocations: 25.86 kB / 1.337 GB, free: 6.062 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007551/0.4516, allocations: 347.5 kB / 1.337 GB, free: 5.684 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.4517, allocations: 93.05 kB / 1.337 GB, free: 5.566 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.693e-05/0.4517, allocations: 24.41 kB / 1.337 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.718e-05/0.4518, allocations: 23.44 kB / 1.337 GB, free: 5.523 MB / 1.029 GB Notification: Performance of SimCode: time 3.3e-07/0.4518, allocations: 0 / 1.337 GB, free: 5.523 MB / 1.029 GB Notification: Performance of Templates: time 0.005994/0.4578, allocations: 2.277 MB / 1.34 GB, free: 3.289 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=400 -s cvode -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.268846418010071]