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.001838/0.001838, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.002106/0.002106, allocations: 221.2 kB / 23 MB, free: 4.914 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.295/3.295, allocations: 0.4892 GB / 0.7951 GB, free: 35.72 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.002085/0.002085, allocations: 65.22 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.3937, allocations: 176.1 MB / 1.326 GB, free: 1.852 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003442/0.3971, allocations: 1.626 MB / 1.328 GB, free: 224 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.3984, allocations: 0.6508 MB / 1.329 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.191e-05/0.3985, allocations: 7.938 kB / 1.329 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001708/0.3987, allocations: 19.78 kB / 1.329 GB, free: 15.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002388/0.3989, allocations: 51.75 kB / 1.329 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004654/0.3994, allocations: 127.7 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002865/0.3997, allocations: 183.6 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000138/0.3998, allocations: 21.61 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002153/0.4, allocations: 87.81 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.4002, allocations: 79.72 kB / 1.329 GB, free: 14.99 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.994e-05/0.4002, allocations: 16 kB / 1.329 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 9.637e-05/0.4003, allocations: 35.98 kB / 1.329 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.4004, allocations: 35.8 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.391e-05/0.4005, allocations: 63.77 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002945/0.4008, allocations: 175.3 kB / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4008, allocations: 0 / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4008, allocations: 0 / 1.329 GB, free: 14.67 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.4008, allocations: 0 / 1.329 GB, free: 14.67 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.0007982/0.4016, allocations: 0.4925 MB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4017, allocations: 12.03 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.4019, allocations: 28.83 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.4022, allocations: 179 kB / 1.33 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.4023, allocations: 16.31 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.4023, allocations: 12.38 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003372/0.4026, allocations: 169.1 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.4026, allocations: 4 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.4027, allocations: 11.98 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4027, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002531/0.4029, allocations: 131.3 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006579/0.4036, allocations: 340.2 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002554/0.4038, allocations: 133.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002116/0.4041, allocations: 140.3 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.4041, allocations: 7.984 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003462/0.4044, allocations: 230.1 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.393e-06/0.4044, allocations: 0 / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0008828/0.4053, allocations: 479.6 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.4054, allocations: 166.2 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001917/0.4056, allocations: 179.6 kB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.523e-05/0.4057, allocations: 29.7 kB / 1.332 GB, free: 11.64 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.848e-05/0.4058, allocations: 112.6 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.824e-05/0.4058, allocations: 31.73 kB / 1.332 GB, free: 11.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.4059, allocations: 37.7 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.406, allocations: 334.7 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000216/0.4063, allocations: 158.8 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002561/0.4065, allocations: 224 kB / 1.333 GB, free: 10.67 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003833/0.4069, allocations: 316.9 kB / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.4069, allocations: 0 / 1.333 GB, free: 10.3 MB / 1.029 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006524/0.4075, allocations: 467 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.4077, allocations: 114.8 kB / 1.334 GB, free: 9.652 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.4077, allocations: 4 kB / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.4077, allocations: 0 / 1.334 GB, free: 9.648 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.4078, allocations: 19.98 kB / 1.334 GB, free: 9.629 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.4078, allocations: 11.92 kB / 1.334 GB, free: 9.617 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.766e-05/0.4079, allocations: 15.94 kB / 1.334 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.44e-05/0.408, allocations: 8 kB / 1.334 GB, free: 9.594 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.0001973/0.4082, allocations: 197.9 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.4082, allocations: 19.89 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.256e-05/0.4082, allocations: 17.41 kB / 1.334 GB, free: 9.336 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4082, allocations: 4 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/0.4082, allocations: 0 / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.4082, allocations: 0 / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007997/0.409, allocations: 0.5827 MB / 1.335 GB, free: 8.688 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.4091, allocations: 4 kB / 1.335 GB, free: 8.684 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.305e-05/0.4091, allocations: 11.98 kB / 1.335 GB, free: 8.672 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.4091, allocations: 7.938 kB / 1.335 GB, free: 8.664 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.4091, allocations: 4 kB / 1.335 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.4091, allocations: 0 / 1.335 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.4091, allocations: 0 / 1.335 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.4098, allocations: 470.1 kB / 1.335 GB, free: 8.16 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.038e-05/0.4098, allocations: 11.91 kB / 1.335 GB, free: 8.148 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.774e-05/0.4098, allocations: 8 kB / 1.335 GB, free: 8.141 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.41, allocations: 11.98 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.255e-05/0.41, allocations: 15.86 kB / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/0.41, allocations: 8 kB / 1.335 GB, free: 8.105 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001239/0.4101, allocations: 132.1 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4101, allocations: 0 / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00031/0.4105, allocations: 43.88 kB / 1.335 GB, free: 7.934 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.0002912/0.4107, allocations: 122.9 kB / 1.335 GB, free: 7.812 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0007324/0.4115, allocations: 0.5231 MB / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.4115, allocations: 0 / 1.336 GB, free: 7.203 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000306/0.4118, allocations: 246.1 kB / 1.336 GB, free: 6.926 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4121, allocations: 23.88 kB / 1.336 GB, free: 6.902 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007356/0.4128, allocations: 377.2 kB / 1.337 GB, free: 6.488 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.413, allocations: 101.5 kB / 1.337 GB, free: 6.363 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.51e-05/0.413, allocations: 19.42 kB / 1.337 GB, free: 6.348 MB / 1.029 GB Notification: Performance of SimCode: time 4.71e-07/0.413, allocations: 0 / 1.337 GB, free: 6.348 MB / 1.029 GB Notification: Performance of Templates: time 0.004752/0.4177, allocations: 2.213 MB / 1.339 GB, free: 4.145 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 -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: 12.314677662216127]