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.001078/0.001078, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001565/0.002644, allocations: 440 kB / 10.41 MB, free: 284 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.000882/0.000882, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009095/0.001792, allocations: 475.6 kB / 11.79 MB, free: 2.375 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 1.013/1.013, allocations: 177.2 MB / 189.7 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08428/1.097, allocations: 53.66 MB / 243.4 MB, free: 15.49 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.404/2.404, allocations: 447.1 MB / 0.675 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2424/2.646, allocations: 146 MB / 0.8176 GB, free: 3.828 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.663e-06/1.663e-06, allocations: 0 / 0.8189 GB, free: 2.52 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.208e-05/2.374e-05, allocations: 4.984 kB / 0.8189 GB, free: 2.516 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003418/0.003442, allocations: 1.747 MB / 0.8206 GB, free: 0.75 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001117/0.00456, allocations: 0.6619 MB / 0.8213 GB, free: 84 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.558e-05/0.004645, allocations: 3.938 kB / 0.8213 GB, free: 80 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.004786, allocations: 31.72 kB / 0.8213 GB, free: 48 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.0001959/0.004982, allocations: 43.69 kB / 0.8214 GB, free: 4 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005148/0.005497, allocations: 123.6 kB / 0.8215 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.005815, allocations: 191.5 kB / 0.8217 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.005921, allocations: 14.3 kB / 0.8217 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.006227, allocations: 135.7 kB / 0.8218 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.006373, allocations: 79.77 kB / 0.8219 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.006409, allocations: 12 kB / 0.8219 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.006517, allocations: 28 kB / 0.8219 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 8.366e-05/0.006601, allocations: 27.92 kB / 0.8219 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 7.275e-05/0.006674, allocations: 39.94 kB / 0.822 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.006938, allocations: 131.5 kB / 0.8221 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.401e-05/0.006952, allocations: 0 / 0.8221 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.253e-06/0.006953, allocations: 0 / 0.8221 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.704e-05/0.00697, allocations: 4 kB / 0.8221 GB, free: 15.23 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.0007421/0.007712, allocations: 490.6 kB / 0.8226 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.007755, allocations: 16.03 kB / 0.8226 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.007998, allocations: 110 kB / 0.8227 GB, free: 14.56 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.008288, allocations: 169.5 kB / 0.8229 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.008308, allocations: 8.375 kB / 0.8229 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.146e-05/0.00834, allocations: 16.38 kB / 0.8229 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.00856, allocations: 158.2 kB / 0.823 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.00857, allocations: 192 / 0.823 GB, free: 14.17 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.008586, allocations: 8.375 kB / 0.823 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.008594, allocations: 3.938 kB / 0.823 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.382e-05/0.008688, allocations: 83.38 kB / 0.8231 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004567/0.009144, allocations: 246.9 kB / 0.8234 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.009279, allocations: 102 kB / 0.8235 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.333e-05/0.009362, allocations: 92.23 kB / 0.8235 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.009385, allocations: 4 kB / 0.8235 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/0.009585, allocations: 210.3 kB / 0.8237 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 2.204e-06/0.009587, allocations: 0 / 0.8237 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0003639/0.009951, allocations: 327.7 kB / 0.8241 GB, free: 12.97 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/0.01008, allocations: 273 kB / 0.8243 GB, free: 12.64 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.01023, allocations: 176.5 kB / 0.8245 GB, free: 12.46 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.01025, allocations: 29.7 kB / 0.8245 GB, free: 12.42 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.01031, allocations: 112.3 kB / 0.8246 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.01034, allocations: 27.73 kB / 0.8246 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.857e-05/0.01041, allocations: 41.69 kB / 0.8247 GB, free: 12.23 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0002481/0.01066, allocations: 330.8 kB / 0.825 GB, free: 11.9 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.687e-05/0.01076, allocations: 137.6 kB / 0.8251 GB, free: 11.74 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.01088, allocations: 185.6 kB / 0.8253 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.01107, allocations: 281.4 kB / 0.8256 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.01108, allocations: 0 / 0.8256 GB, free: 11.17 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002909/0.01137, allocations: 360.9 kB / 0.8259 GB, free: 10.76 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.377e-05/0.01144, allocations: 122.7 kB / 0.826 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.01145, allocations: 4 kB / 0.826 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.01146, allocations: 0 / 0.826 GB, free: 10.61 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.01157, allocations: 16 kB / 0.8261 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.01158, allocations: 3.984 kB / 0.8261 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.804e-05/0.01165, allocations: 15.94 kB / 0.8261 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.01167, allocations: 8 kB / 0.8261 GB, free: 10.57 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.0001306/0.0118, allocations: 192 kB / 0.8263 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.42e-05/0.01184, allocations: 15.98 kB / 0.8263 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.831e-05/0.01188, allocations: 29.41 kB / 0.8263 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01188, allocations: 4 kB / 0.8263 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.01188, allocations: 0 / 0.8263 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.01188, allocations: 0 / 0.8263 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.01225, allocations: 409.4 kB / 0.8267 GB, free: 9.852 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.01226, allocations: 0 / 0.8267 GB, free: 9.852 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.629e-05/0.01231, allocations: 12 kB / 0.8267 GB, free: 9.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.722e-05/0.01233, allocations: 15.84 kB / 0.8267 GB, free: 9.824 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.01233, allocations: 0 / 0.8267 GB, free: 9.824 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.941e-05/0.01235, allocations: 11.98 kB / 0.8267 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.01235, allocations: 0 / 0.8267 GB, free: 9.812 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.01235, allocations: 7.938 kB / 0.8268 GB, free: 9.805 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002692/0.01262, allocations: 330.6 kB / 0.8271 GB, free: 9.441 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.01265, allocations: 7.938 kB / 0.8271 GB, free: 9.434 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.143e-05/0.01275, allocations: 11.92 kB / 0.8271 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.01278, allocations: 8 kB / 0.8271 GB, free: 9.414 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.0128, allocations: 11.97 kB / 0.8271 GB, free: 9.402 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.26e-05/0.01286, allocations: 46.78 kB / 0.8271 GB, free: 9.355 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01286, allocations: 0 / 0.8271 GB, free: 9.355 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002833/0.01314, allocations: 31.94 kB / 0.8272 GB, free: 9.324 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.0002559/0.01339, allocations: 121 kB / 0.8273 GB, free: 9.207 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003495/0.01374, allocations: 480.5 kB / 0.8278 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.01375, allocations: 0 / 0.8278 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.01391, allocations: 219.8 kB / 0.828 GB, free: 8.395 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.0142, allocations: 107.4 kB / 0.8281 GB, free: 8.277 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.01543, allocations: 341.7 kB / 0.8284 GB, free: 7.906 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.982e-05/0.01548, allocations: 63.34 kB / 0.8285 GB, free: 7.824 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.293e-05/0.01553, allocations: 12.48 kB / 0.8285 GB, free: 7.812 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.0157, allocations: 95.33 kB / 0.8286 GB, free: 7.719 MB / 0.8073 GB Notification: Performance of SimCode: time 8.32e-07/0.0157, allocations: 0 / 0.8286 GB, free: 7.719 MB / 0.8073 GB Notification: Performance of Templates: time 0.005809/0.02151, allocations: 2.363 MB / 0.8309 GB, free: 5.398 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.239030168391764]