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.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.0007781/0.0007781, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.001779, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007174/0.0007174, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001249/0.001966, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9762/0.9762, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1091/1.085, allocations: 53.65 MB / 243.2 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.397/2.397, allocations: 446.7 MB / 0.6745 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2382/2.635, allocations: 145.9 MB / 0.817 GB, free: 4.203 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.8183 GB, free: 2.898 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.253e-05/2.393e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.895 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003439/0.003463, allocations: 1.733 MB / 0.82 GB, free: 1.145 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.004666, allocations: 0.6735 MB / 0.8206 GB, free: 476 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.419e-05/0.00475, allocations: 0 / 0.8206 GB, free: 476 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.004874, allocations: 27.73 kB / 0.8207 GB, free: 448 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001764/0.005051, allocations: 43.69 kB / 0.8207 GB, free: 404 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.005484, allocations: 119.7 kB / 0.8208 GB, free: 284 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.005798, allocations: 191.5 kB / 0.821 GB, free: 92 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.005914, allocations: 22.27 kB / 0.821 GB, free: 68 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003374/0.006251, allocations: 131.7 kB / 0.8212 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001394/0.006391, allocations: 71.84 kB / 0.8212 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.614e-05/0.006427, allocations: 12 kB / 0.8212 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.006535, allocations: 35.97 kB / 0.8213 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.399e-05/0.006619, allocations: 27.88 kB / 0.8213 GB, free: 15.79 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.707e-05/0.006696, allocations: 39.94 kB / 0.8213 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.006951, allocations: 131.5 kB / 0.8215 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.707e-05/0.006968, allocations: 0 / 0.8215 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.563e-06/0.006969, allocations: 0 / 0.8215 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.772e-05/0.006987, allocations: 4 kB / 0.8215 GB, free: 15.62 MB / 0.8073 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.000779/0.007766, allocations: 486.7 kB / 0.8219 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.007816, allocations: 16.62 kB / 0.8219 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002746/0.008091, allocations: 110 kB / 0.822 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003155/0.008407, allocations: 173.5 kB / 0.8222 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.308e-05/0.00843, allocations: 8.375 kB / 0.8222 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.986e-05/0.008459, allocations: 20.31 kB / 0.8222 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.008709, allocations: 154.3 kB / 0.8224 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.008724, allocations: 192 / 0.8224 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.008741, allocations: 4.375 kB / 0.8224 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.866e-06/0.00875, allocations: 7.938 kB / 0.8224 GB, free: 14.55 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.008855, allocations: 87.31 kB / 0.8225 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004903/0.009346, allocations: 235 kB / 0.8227 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.009487, allocations: 110 kB / 0.8228 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.708e-05/0.009574, allocations: 92.23 kB / 0.8229 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.009602, allocations: 4 kB / 0.8229 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002113/0.009813, allocations: 206.3 kB / 0.8231 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.973e-06/0.009815, allocations: 0 / 0.8231 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0003646/0.01018, allocations: 327.7 kB / 0.8234 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.01027, allocations: 166.2 kB / 0.8236 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.01042, allocations: 173.4 kB / 0.8237 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.01044, allocations: 29.7 kB / 0.8238 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.01051, allocations: 104.3 kB / 0.8239 GB, free: 12.84 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.01054, allocations: 27.73 kB / 0.8239 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.215e-05/0.01061, allocations: 41.69 kB / 0.8239 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001127/0.01072, allocations: 330.8 kB / 0.8242 GB, free: 12.43 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.01083, allocations: 137.6 kB / 0.8244 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.01096, allocations: 195.1 kB / 0.8246 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002022/0.01116, allocations: 273.5 kB / 0.8248 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.01117, allocations: 0 / 0.8248 GB, free: 11.7 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003185/0.01149, allocations: 356.9 kB / 0.8252 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.361e-05/0.01157, allocations: 122.8 kB / 0.8253 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.01158, allocations: 3.984 kB / 0.8253 GB, free: 11.15 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.923e-05/0.01162, allocations: 4 kB / 0.8253 GB, free: 11.14 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.01173, allocations: 15.94 kB / 0.8253 GB, free: 11.13 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.01174, allocations: 7.984 kB / 0.8253 GB, free: 11.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.902e-05/0.01181, allocations: 12 kB / 0.8253 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.975e-05/0.01183, allocations: 8 kB / 0.8253 GB, free: 11.1 MB / 0.8073 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.0001415/0.01198, allocations: 195.9 kB / 0.8255 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.693e-05/0.01201, allocations: 24.08 kB / 0.8255 GB, free: 10.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.132e-05/0.01205, allocations: 21.39 kB / 0.8256 GB, free: 10.84 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.01206, allocations: 3.984 kB / 0.8256 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.01206, allocations: 3.938 kB / 0.8256 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01206, allocations: 0 / 0.8256 GB, free: 10.83 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003916/0.01246, allocations: 405.5 kB / 0.826 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01246, allocations: 0 / 0.826 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.602e-05/0.01252, allocations: 15.98 kB / 0.826 GB, free: 10.37 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.909e-05/0.01255, allocations: 15.84 kB / 0.826 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.01256, allocations: 0 / 0.826 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.01257, allocations: 11.98 kB / 0.826 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.01258, allocations: 4 kB / 0.826 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.01258, allocations: 4 kB / 0.826 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003031/0.01288, allocations: 342.5 kB / 0.8263 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.01292, allocations: 7.938 kB / 0.8263 GB, free: 9.949 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.537e-05/0.01301, allocations: 7.984 kB / 0.8263 GB, free: 9.941 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.219e-05/0.01305, allocations: 8 kB / 0.8264 GB, free: 9.934 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.195e-05/0.01308, allocations: 7.984 kB / 0.8264 GB, free: 9.926 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 6.389e-05/0.01314, allocations: 45.88 kB / 0.8264 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1e-07/0.01314, allocations: 0 / 0.8264 GB, free: 9.879 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002844/0.01342, allocations: 35.94 kB / 0.8264 GB, free: 9.844 MB / 0.8073 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.0002615/0.01369, allocations: 114.4 kB / 0.8266 GB, free: 9.734 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003932/0.01408, allocations: 488.5 kB / 0.827 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.01409, allocations: 0 / 0.827 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.01425, allocations: 219.5 kB / 0.8272 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.01452, allocations: 35.98 kB / 0.8273 GB, free: 8.879 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.0158, allocations: 341.6 kB / 0.8276 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.111e-05/0.01586, allocations: 71.33 kB / 0.8277 GB, free: 8.418 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.736e-05/0.01591, allocations: 4.5 kB / 0.8277 GB, free: 8.414 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001755/0.01608, allocations: 99.33 kB / 0.8278 GB, free: 8.316 MB / 0.8073 GB Notification: Performance of SimCode: time 1.052e-06/0.01608, allocations: 7.938 kB / 0.8278 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of Templates: time 0.004645/0.02073, allocations: 2.353 MB / 0.8301 GB, free: 6 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.194207436405122]