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.001907/0.001907, allocations: 113 kB / 17.6 MB, free: 4.684 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.002255/0.002255, allocations: 186.8 kB / 20.78 MB, free: 1.52 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.484/1.484, allocations: 225.6 MB / 249.4 MB, free: 3.297 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.756/2.756, allocations: 476.7 MB / 0.7628 GB, free: 15.3 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.002008/0.002008, allocations: 75.88 kB / 1.107 GB, free: 4.582 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.988/0.99, allocations: 168.7 MB / 1.272 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00302/0.993, allocations: 1.637 MB / 1.274 GB, free: 6.805 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001/0.994, allocations: 0.6202 MB / 1.274 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.269e-05/0.9941, allocations: 2.094 kB / 1.274 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.9943, allocations: 18.16 kB / 1.274 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.9945, allocations: 48.81 kB / 1.274 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003865/0.9949, allocations: 113.6 kB / 1.274 GB, free: 6.273 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002584/0.9951, allocations: 188.4 kB / 1.275 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.9952, allocations: 16.06 kB / 1.275 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.9954, allocations: 86.17 kB / 1.275 GB, free: 6.148 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.9955, allocations: 85.98 kB / 1.275 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.179e-05/0.9956, allocations: 14.5 kB / 1.275 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.882e-05/0.9957, allocations: 24.09 kB / 1.275 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.865e-05/0.9958, allocations: 28.69 kB / 1.275 GB, free: 6.098 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.384e-05/0.9958, allocations: 81.19 kB / 1.275 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.9961, allocations: 172.2 kB / 1.275 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.9961, allocations: 0.6875 kB / 1.275 GB, free: 5.984 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.9961, allocations: 4 kB / 1.275 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.652e-06/0.9961, allocations: 2.688 kB / 1.275 GB, free: 5.98 MB / 0.9981 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.0006576/0.9968, allocations: 0.5521 MB / 1.276 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.9968, allocations: 9.375 kB / 1.276 GB, free: 5.438 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.605e-05/0.9969, allocations: 19.84 kB / 1.276 GB, free: 5.43 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.9972, allocations: 247.7 kB / 1.276 GB, free: 5.191 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.9972, allocations: 11.34 kB / 1.276 GB, free: 5.188 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.962e-05/0.9973, allocations: 19.09 kB / 1.276 GB, free: 5.18 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.9975, allocations: 114.8 kB / 1.276 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.9975, allocations: 0 / 1.276 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.9976, allocations: 6.5 kB / 1.276 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.9976, allocations: 1.844 kB / 1.276 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.9978, allocations: 64.84 kB / 1.276 GB, free: 5.109 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006078/0.9984, allocations: 426 kB / 1.276 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.9986, allocations: 73.47 kB / 1.276 GB, free: 4.738 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.9987, allocations: 68.05 kB / 1.277 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.9987, allocations: 4.953 kB / 1.277 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.999, allocations: 191.7 kB / 1.277 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.999, allocations: 0.6562 kB / 1.277 GB, free: 4.566 MB / 0.9981 GB Notification: Performance of matching and sorting (n=10): time 0.0007282/0.9997, allocations: 357.7 kB / 1.277 GB, free: 4.398 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.9998, allocations: 162.3 kB / 1.277 GB, free: 4.211 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.9999, allocations: 181.1 kB / 1.277 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.9999, allocations: 28.92 kB / 1.277 GB, free: 4.047 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/1, allocations: 113.7 kB / 1.278 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/1, allocations: 32.84 kB / 1.278 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.261e-05/1, allocations: 42.52 kB / 1.278 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.613e-05/1, allocations: 330.6 kB / 1.278 GB, free: 3.562 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/1, allocations: 53.2 kB / 1.278 GB, free: 3.551 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/1, allocations: 106.8 kB / 1.278 GB, free: 3.469 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/1.001, allocations: 311.3 kB / 1.278 GB, free: 3.176 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/1.001, allocations: 3.938 kB / 1.278 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005019/1.001, allocations: 348.7 kB / 1.279 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.916e-05/1.001, allocations: 124.2 kB / 1.279 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/1.001, allocations: 1.844 kB / 1.279 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/1.001, allocations: 2.516 kB / 1.279 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/1.001, allocations: 17.98 kB / 1.279 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/1.001, allocations: 2.188 kB / 1.279 GB, free: 2.824 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/1.002, allocations: 18.55 kB / 1.279 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/1.002, allocations: 12.06 kB / 1.279 GB, free: 2.812 MB / 0.9981 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.0001322/1.002, allocations: 198.6 kB / 1.279 GB, free: 2.621 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/1.002, allocations: 17.08 kB / 1.279 GB, free: 2.613 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.213e-05/1.002, allocations: 19.39 kB / 1.279 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/1.002, allocations: 1.688 kB / 1.279 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.002, allocations: 0 / 1.279 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/1.002, allocations: 0 / 1.279 GB, free: 2.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006994/1.002, allocations: 0.5883 MB / 1.28 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/1.002, allocations: 0.8438 kB / 1.28 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.66e-05/1.003, allocations: 11.53 kB / 1.28 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/1.003, allocations: 5.062 kB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/1.003, allocations: 6.984 kB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/1.003, allocations: 0.9375 kB / 1.28 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/1.003, allocations: 3.938 kB / 1.28 GB, free: 2.141 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005553/1.003, allocations: 410.9 kB / 1.28 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/1.003, allocations: 89.62 kB / 1.28 GB, free: 1.777 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.126e-05/1.003, allocations: 9.719 kB / 1.28 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/1.003, allocations: 11.3 kB / 1.28 GB, free: 1.77 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.01e-05/1.003, allocations: 18.3 kB / 1.28 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/1.003, allocations: 8.188 kB / 1.28 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.902e-05/1.004, allocations: 124.9 kB / 1.28 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of sort global known variables: time 8e-08/1.004, allocations: 0 / 1.28 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003208/1.004, allocations: 38.77 kB / 1.28 GB, free: 1.664 MB / 0.9981 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.0002689/1.004, allocations: 139.1 kB / 1.281 GB, free: 1.555 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0004927/1.005, allocations: 353.2 kB / 1.281 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/1.005, allocations: 1.219 kB / 1.281 GB, free: 1.27 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002064/1.005, allocations: 181.5 kB / 1.281 GB, free: 1.125 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/1.005, allocations: 23.08 kB / 1.281 GB, free: 1.117 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007754/1.006, allocations: 301.8 kB / 1.281 GB, free: 0.9219 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/1.006, allocations: 0.7045 MB / 1.282 GB, free: 16.23 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 9.655e-05/1.006, allocations: 23.12 kB / 1.282 GB, free: 16.22 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.458e-05/1.006, allocations: 23.36 kB / 1.282 GB, free: 16.2 MB / 1.014 GB Notification: Performance of SimCode: time 6.81e-07/1.006, allocations: 0 / 1.282 GB, free: 16.2 MB / 1.014 GB Notification: Performance of Templates: time 0.007268/1.014, allocations: 2.12 MB / 1.284 GB, free: 15.91 MB / 1.014 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.892637962475419]