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.001569/0.001569, allocations: 77.78 kB / 19.76 MB, free: 2.035 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.001689/0.001689, allocations: 156.7 kB / 23.01 MB, free: 4.945 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.433/1.433, allocations: 177.2 MB / 203.4 MB, free: 8.969 MB / 190.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 2.764/2.764, allocations: 377.9 MB / 0.6228 GB, free: 12.58 MB / 0.5919 GB " [Timeout remaining time 177] 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.002191/0.002191, allocations: 63.89 kB / 0.9819 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7801/0.7823, allocations: 176.1 MB / 1.154 GB, free: 33.29 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00269/0.785, allocations: 1.633 MB / 1.156 GB, free: 32.18 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0009199/0.7859, allocations: 0.6451 MB / 1.156 GB, free: 31.76 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.889e-05/0.786, allocations: 6.969 kB / 1.156 GB, free: 31.75 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.7861, allocations: 26.02 kB / 1.156 GB, free: 31.73 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.7863, allocations: 46.92 kB / 1.156 GB, free: 31.71 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.000381/0.7867, allocations: 125.9 kB / 1.156 GB, free: 31.64 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001954/0.7869, allocations: 183.6 kB / 1.157 GB, free: 31.56 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 8.672e-05/0.787, allocations: 14.81 kB / 1.157 GB, free: 31.55 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.7871, allocations: 92.16 kB / 1.157 GB, free: 31.52 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.7872, allocations: 78.61 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.281e-05/0.7873, allocations: 13.19 kB / 1.157 GB, free: 31.48 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.102e-05/0.7873, allocations: 38.8 kB / 1.157 GB, free: 31.47 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.066e-05/0.7874, allocations: 34.17 kB / 1.157 GB, free: 31.45 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.7875, allocations: 72.64 kB / 1.157 GB, free: 31.42 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001807/0.7877, allocations: 170.1 kB / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.7877, allocations: 0 / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.182e-06/0.7877, allocations: 0 / 1.157 GB, free: 31.36 MB / 1.076 GB Notification: Performance of Transformations before backend: time 4.688e-06/0.7877, allocations: 0 / 1.157 GB, free: 31.36 MB / 1.076 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.0005064/0.7882, allocations: 498.3 kB / 1.157 GB, free: 30.9 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 2.789e-05/0.7882, allocations: 8.188 kB / 1.157 GB, free: 30.9 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.7884, allocations: 30.64 kB / 1.158 GB, free: 30.89 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002397/0.7886, allocations: 189.8 kB / 1.158 GB, free: 30.72 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.7886, allocations: 15.84 kB / 1.158 GB, free: 30.71 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.7887, allocations: 15.38 kB / 1.158 GB, free: 30.71 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.7889, allocations: 170.1 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.7889, allocations: 0 / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.7889, allocations: 2.875 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.7889, allocations: 6.703 kB / 1.158 GB, free: 30.59 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.7891, allocations: 133.6 kB / 1.158 GB, free: 30.5 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.7896, allocations: 337.9 kB / 1.158 GB, free: 30.25 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.7897, allocations: 138.9 kB / 1.158 GB, free: 30.14 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.7899, allocations: 125.3 kB / 1.159 GB, free: 30.06 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.7899, allocations: 6.5 kB / 1.159 GB, free: 30.05 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.7901, allocations: 245 kB / 1.159 GB, free: 29.85 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.7901, allocations: 4 kB / 1.159 GB, free: 29.84 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0006371/0.7907, allocations: 481 kB / 1.159 GB, free: 29.55 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.7908, allocations: 163.4 kB / 1.159 GB, free: 29.36 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001119/0.7909, allocations: 176.5 kB / 1.16 GB, free: 29.23 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.7909, allocations: 32.58 kB / 1.16 GB, free: 29.2 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.791, allocations: 114.6 kB / 1.16 GB, free: 29.09 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.791, allocations: 29.52 kB / 1.16 GB, free: 29.07 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.584e-05/0.791, allocations: 37.98 kB / 1.16 GB, free: 29.04 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.997e-05/0.7911, allocations: 328 kB / 1.16 GB, free: 28.72 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.7912, allocations: 166.7 kB / 1.16 GB, free: 28.58 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.7914, allocations: 212 kB / 1.16 GB, free: 28.38 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.7916, allocations: 312.4 kB / 1.161 GB, free: 28.08 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.7916, allocations: 2.969 kB / 1.161 GB, free: 28.08 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004517/0.7921, allocations: 462.1 kB / 1.161 GB, free: 27.73 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.873e-05/0.7921, allocations: 122.1 kB / 1.161 GB, free: 27.61 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.7921, allocations: 3.156 kB / 1.161 GB, free: 27.61 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.7921, allocations: 7.25 kB / 1.161 GB, free: 27.6 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.703e-05/0.7922, allocations: 15.39 kB / 1.161 GB, free: 27.6 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.7922, allocations: 10.69 kB / 1.161 GB, free: 27.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.7923, allocations: 13.16 kB / 1.161 GB, free: 27.59 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.877e-05/0.7923, allocations: 16.03 kB / 1.161 GB, free: 27.59 MB / 1.076 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 9.183e-05/0.7924, allocations: 191.9 kB / 1.162 GB, free: 27.4 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/0.7924, allocations: 19.91 kB / 1.162 GB, free: 27.39 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.7925, allocations: 15.78 kB / 1.162 GB, free: 27.38 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.7925, allocations: 0 / 1.162 GB, free: 27.38 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.7925, allocations: 4 kB / 1.162 GB, free: 27.38 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7925, allocations: 0 / 1.162 GB, free: 27.38 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005341/0.793, allocations: 0.5818 MB / 1.162 GB, free: 26.94 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.793, allocations: 0 / 1.162 GB, free: 26.94 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.7931, allocations: 15.27 kB / 1.162 GB, free: 26.93 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.7931, allocations: 0 / 1.162 GB, free: 26.93 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.7931, allocations: 16.48 kB / 1.162 GB, free: 26.93 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.7931, allocations: 3.094 kB / 1.162 GB, free: 26.93 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.7931, allocations: 0 / 1.162 GB, free: 26.93 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004427/0.7935, allocations: 469.5 kB / 1.163 GB, free: 26.6 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.626e-05/0.7936, allocations: 17.45 kB / 1.163 GB, free: 26.59 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.7936, allocations: 2.75 kB / 1.163 GB, free: 26.59 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.7937, allocations: 5.562 kB / 1.163 GB, free: 26.59 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.434e-05/0.7937, allocations: 10.34 kB / 1.163 GB, free: 26.59 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.7938, allocations: 16.81 kB / 1.163 GB, free: 26.58 MB / 1.076 GB Notification: Performance of sorting global known variables: time 6.788e-05/0.7938, allocations: 130.5 kB / 1.163 GB, free: 26.49 MB / 1.076 GB Notification: Performance of sort global known variables: time 8e-08/0.7938, allocations: 0 / 1.163 GB, free: 26.49 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.000284/0.7941, allocations: 46.77 kB / 1.163 GB, free: 26.47 MB / 1.076 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.0001777/0.7943, allocations: 134.5 kB / 1.163 GB, free: 26.37 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0004087/0.7947, allocations: 0.5115 MB / 1.164 GB, free: 25.89 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.7947, allocations: 0 / 1.164 GB, free: 25.89 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.7949, allocations: 251 kB / 1.164 GB, free: 25.68 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002885/0.7952, allocations: 19.78 kB / 1.164 GB, free: 25.67 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004738/0.7956, allocations: 350.3 kB / 1.164 GB, free: 25.41 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.88e-05/0.7957, allocations: 96.78 kB / 1.164 GB, free: 25.34 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.784e-05/0.7958, allocations: 26.83 kB / 1.164 GB, free: 25.33 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.848e-05/0.7958, allocations: 14.09 kB / 1.164 GB, free: 25.32 MB / 1.076 GB Notification: Performance of SimCode: time 3.11e-07/0.7958, allocations: 0 / 1.164 GB, free: 25.32 MB / 1.076 GB Notification: Performance of Templates: time 0.004716/0.8005, allocations: 2.179 MB / 1.166 GB, free: 24.97 MB / 1.076 GB " [Timeout remaining time 299] 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 ida -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: 8.191283785970882]