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.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.001223/0.001223, allocations: 108.8 kB / 18.93 MB, free: 2.945 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.00131/0.00131, allocations: 191.5 kB / 22.23 MB, free: 5.16 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.298/1.298, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 2.861/2.861, allocations: 495.7 MB / 0.7831 GB, free: 33.5 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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_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 0.001853/0.001853, allocations: 64.16 kB / 1.137 GB, free: 33.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2888, allocations: 173.6 MB / 1.307 GB, free: 1.918 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002851/0.2917, allocations: 1.643 MB / 1.309 GB, free: 272 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0009652/0.2926, allocations: 0.6273 MB / 1.309 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.875e-05/0.2927, allocations: 3.938 kB / 1.309 GB, free: 15.63 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.2928, allocations: 19.86 kB / 1.309 GB, free: 15.61 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001931/0.293, allocations: 43.7 kB / 1.309 GB, free: 15.57 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.2934, allocations: 115.8 kB / 1.309 GB, free: 15.45 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002509/0.2936, allocations: 187.6 kB / 1.31 GB, free: 15.27 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 9.181e-05/0.2937, allocations: 17.05 kB / 1.31 GB, free: 15.25 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.2939, allocations: 95.67 kB / 1.31 GB, free: 15.16 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2941, allocations: 87.72 kB / 1.31 GB, free: 15.07 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 4.155e-05/0.2941, allocations: 16 kB / 1.31 GB, free: 15.05 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.44e-05/0.2942, allocations: 24 kB / 1.31 GB, free: 15.03 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 7.846e-05/0.2942, allocations: 27.92 kB / 1.31 GB, free: 15 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 9.779e-05/0.2943, allocations: 75.64 kB / 1.31 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000237/0.2946, allocations: 171.3 kB / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2946, allocations: 4 kB / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2946, allocations: 0 / 1.31 GB, free: 14.76 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.2946, allocations: 0 / 1.31 GB, free: 14.76 MB / 1.014 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.000677/0.2953, allocations: 498.9 kB / 1.31 GB, free: 14.22 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.2953, allocations: 8.031 kB / 1.311 GB, free: 14.21 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.164e-05/0.2953, allocations: 20.84 kB / 1.311 GB, free: 14.19 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002895/0.2956, allocations: 182.3 kB / 1.311 GB, free: 13.99 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.2957, allocations: 8.375 kB / 1.311 GB, free: 13.98 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.218e-05/0.2957, allocations: 16.38 kB / 1.311 GB, free: 13.96 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002829/0.296, allocations: 121.7 kB / 1.311 GB, free: 13.84 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.296, allocations: 0 / 1.311 GB, free: 13.84 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.474e-05/0.296, allocations: 3.938 kB / 1.311 GB, free: 13.84 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.296, allocations: 4 kB / 1.311 GB, free: 13.83 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.2962, allocations: 71.88 kB / 1.311 GB, free: 13.76 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006407/0.2968, allocations: 383.7 kB / 1.311 GB, free: 13.34 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.297, allocations: 82.56 kB / 1.311 GB, free: 13.25 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.2972, allocations: 64.81 kB / 1.311 GB, free: 13.19 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.2972, allocations: 4 kB / 1.311 GB, free: 13.18 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/0.2975, allocations: 186.9 kB / 1.312 GB, free: 12.98 MB / 1.014 GB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.2975, allocations: 0 / 1.312 GB, free: 12.98 MB / 1.014 GB Notification: Performance of matching and sorting (n=10): time 0.000734/0.2982, allocations: 352.8 kB / 1.312 GB, free: 12.61 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2983, allocations: 170.2 kB / 1.312 GB, free: 12.41 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.2985, allocations: 176 kB / 1.312 GB, free: 12.23 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.747e-05/0.2985, allocations: 33.7 kB / 1.312 GB, free: 12.19 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 7.739e-05/0.2986, allocations: 116.4 kB / 1.312 GB, free: 12.07 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.175e-05/0.2986, allocations: 27.8 kB / 1.312 GB, free: 12.04 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.167e-05/0.2987, allocations: 41.7 kB / 1.312 GB, free: 11.99 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.2989, allocations: 330.8 kB / 1.313 GB, free: 11.66 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.299, allocations: 47.97 kB / 1.313 GB, free: 11.61 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.2992, allocations: 106.8 kB / 1.313 GB, free: 11.48 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003417/0.2995, allocations: 309 kB / 1.313 GB, free: 11.12 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.2995, allocations: 4 kB / 1.313 GB, free: 11.12 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000543/0.3, allocations: 360.2 kB / 1.314 GB, free: 10.73 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.806e-05/0.3001, allocations: 118.8 kB / 1.314 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3001, allocations: 4 kB / 1.314 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.3001, allocations: 0 / 1.314 GB, free: 10.59 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.3003, allocations: 23.92 kB / 1.314 GB, free: 10.57 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3003, allocations: 4 kB / 1.314 GB, free: 10.56 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.944e-05/0.3004, allocations: 19.89 kB / 1.314 GB, free: 10.54 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.3004, allocations: 8 kB / 1.314 GB, free: 10.54 MB / 1.014 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.0002075/0.3006, allocations: 208.5 kB / 1.314 GB, free: 10.31 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.3006, allocations: 12.23 kB / 1.314 GB, free: 10.3 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.3007, allocations: 21.34 kB / 1.314 GB, free: 10.28 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.3007, allocations: 4 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.3007, allocations: 3.938 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3007, allocations: 3.984 kB / 1.314 GB, free: 10.27 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00078/0.3015, allocations: 0.5592 MB / 1.315 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.3015, allocations: 0 / 1.315 GB, free: 9.645 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-05/0.3015, allocations: 19.98 kB / 1.315 GB, free: 9.625 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3015, allocations: 0 / 1.315 GB, free: 9.625 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.3016, allocations: 8 kB / 1.315 GB, free: 9.617 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3016, allocations: 0 / 1.315 GB, free: 9.617 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.3016, allocations: 3.938 kB / 1.315 GB, free: 9.613 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005636/0.3021, allocations: 410.7 kB / 1.315 GB, free: 9.184 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 1.685e-05/0.3021, allocations: 7.953 kB / 1.315 GB, free: 9.176 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.3022, allocations: 8 kB / 1.315 GB, free: 9.168 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.3023, allocations: 15.94 kB / 1.315 GB, free: 9.152 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.114e-05/0.3023, allocations: 11.92 kB / 1.315 GB, free: 9.141 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.3023, allocations: 7.984 kB / 1.315 GB, free: 9.133 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0001045/0.3024, allocations: 127.2 kB / 1.315 GB, free: 9.008 MB / 1.014 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3024, allocations: 0 / 1.315 GB, free: 9.008 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002772/0.3027, allocations: 39.95 kB / 1.315 GB, free: 8.969 MB / 1.014 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.0002341/0.303, allocations: 132.9 kB / 1.315 GB, free: 8.836 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0005019/0.3035, allocations: 357.4 kB / 1.316 GB, free: 8.438 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3035, allocations: 4.5 kB / 1.316 GB, free: 8.434 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.3037, allocations: 182.8 kB / 1.316 GB, free: 8.23 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.304, allocations: 23.98 kB / 1.316 GB, free: 8.207 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005794/0.3046, allocations: 291.9 kB / 1.316 GB, free: 7.895 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.3049, allocations: 0.708 MB / 1.317 GB, free: 7.16 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 6.237e-05/0.305, allocations: 20.48 kB / 1.317 GB, free: 7.141 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.12e-05/0.305, allocations: 19.42 kB / 1.317 GB, free: 7.121 MB / 1.014 GB Notification: Performance of SimCode: time 4e-07/0.305, allocations: 0 / 1.317 GB, free: 7.121 MB / 1.014 GB Notification: Performance of Templates: time 0.005521/0.3105, allocations: 2.138 MB / 1.319 GB, free: 5 MB / 1.014 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 7.7643172880634665]