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.001992/0.001992, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 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.002608/0.002608, allocations: 161.7 kB / 23.55 MB, free: 0.8906 MB / 18.57 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.452/1.452, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.961/2.961, allocations: 377.8 MB / 0.6232 GB, free: 8.547 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.8108 GB, free: 2.117 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.807e-05, allocations: 3.062 kB / 0.8108 GB, free: 2.113 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00347/0.003498, allocations: 1.638 MB / 0.8124 GB, free: 492 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001424/0.004923, allocations: 0.6525 MB / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.604e-05/0.005009, allocations: 5.688 kB / 0.813 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.00519, allocations: 19.8 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002432/0.005434, allocations: 51.69 kB / 0.8131 GB, free: 15.75 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006034/0.006037, allocations: 121.1 kB / 0.8132 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000346/0.006383, allocations: 187.6 kB / 0.8134 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.006509, allocations: 21.62 kB / 0.8134 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.006823, allocations: 116.3 kB / 0.8135 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.006972, allocations: 71.84 kB / 0.8136 GB, free: 15.24 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.578e-05/0.007028, allocations: 12.91 kB / 0.8136 GB, free: 15.23 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001131/0.007141, allocations: 39.91 kB / 0.8137 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 9.194e-05/0.007233, allocations: 28.48 kB / 0.8137 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.007338, allocations: 57.48 kB / 0.8137 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003467/0.007685, allocations: 199.4 kB / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.007688, allocations: 0 / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.31e-07/0.007689, allocations: 0 / 0.8139 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.007695, allocations: 0 / 0.8139 GB, free: 14.91 MB / 0.7761 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.0008272/0.008522, allocations: 498.9 kB / 0.8144 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.00856, allocations: 8.031 kB / 0.8144 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.008783, allocations: 32.84 kB / 0.8144 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.009179, allocations: 190.9 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.009203, allocations: 8.906 kB / 0.8146 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.009241, allocations: 13.09 kB / 0.8146 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000369/0.00961, allocations: 170.1 kB / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.009619, allocations: 192 / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.009638, allocations: 5.75 kB / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.026e-06/0.009646, allocations: 4 kB / 0.8148 GB, free: 13.91 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.009937, allocations: 131.3 kB / 0.8149 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.01067, allocations: 333.7 kB / 0.8153 GB, free: 13.42 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.01096, allocations: 134.7 kB / 0.8154 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002249/0.01118, allocations: 129.2 kB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.339e-05/0.01122, allocations: 7.922 kB / 0.8155 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/0.01158, allocations: 239.7 kB / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.01159, allocations: 0 / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.001033/0.01262, allocations: 489.3 kB / 0.8162 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.01275, allocations: 162.2 kB / 0.8164 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.01298, allocations: 184.6 kB / 0.8165 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.654e-05/0.01302, allocations: 33.7 kB / 0.8166 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.916e-05/0.01312, allocations: 109.6 kB / 0.8167 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.01316, allocations: 31.77 kB / 0.8167 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.777e-05/0.01324, allocations: 37.7 kB / 0.8167 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001789/0.01342, allocations: 323.7 kB / 0.8171 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.01367, allocations: 169 kB / 0.8172 GB, free: 11.2 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.01396, allocations: 213.6 kB / 0.8174 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004379/0.0144, allocations: 311.9 kB / 0.8177 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.0144, allocations: 0 / 0.8177 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007921/0.0152, allocations: 476.9 kB / 0.8182 GB, free: 10.06 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.0153, allocations: 118.8 kB / 0.8183 GB, free: 9.918 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.01531, allocations: 4.547 kB / 0.8183 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.01534, allocations: 12.5 kB / 0.8183 GB, free: 9.902 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.01547, allocations: 20.58 kB / 0.8183 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.01548, allocations: 8.062 kB / 0.8183 GB, free: 9.875 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.0156, allocations: 17.23 kB / 0.8183 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.01562, allocations: 11.98 kB / 0.8184 GB, free: 9.848 MB / 0.7761 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.0002233/0.01585, allocations: 194 kB / 0.8185 GB, free: 9.637 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.381e-05/0.01591, allocations: 31.84 kB / 0.8186 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.536e-05/0.01594, allocations: 14.41 kB / 0.8186 GB, free: 9.598 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.01595, allocations: 3.984 kB / 0.8186 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.01595, allocations: 0 / 0.8186 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.01596, allocations: 0.6562 kB / 0.8186 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009988/0.01696, allocations: 0.5795 MB / 0.8192 GB, free: 8.953 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.01696, allocations: 3.875 kB / 0.8192 GB, free: 8.953 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.63e-05/0.01703, allocations: 11.98 kB / 0.8192 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.01704, allocations: 0 / 0.8192 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.01706, allocations: 11.98 kB / 0.8192 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.01707, allocations: 0 / 0.8192 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.01707, allocations: 0 / 0.8192 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007724/0.01784, allocations: 482.2 kB / 0.8196 GB, free: 8.418 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.582e-05/0.01787, allocations: 15.91 kB / 0.8197 GB, free: 8.402 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.637e-05/0.0179, allocations: 4 kB / 0.8197 GB, free: 8.398 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.01803, allocations: 9.312 kB / 0.8197 GB, free: 8.391 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.521e-05/0.01809, allocations: 11.98 kB / 0.8197 GB, free: 8.379 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.01811, allocations: 7.984 kB / 0.8197 GB, free: 8.371 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001347/0.01824, allocations: 129.1 kB / 0.8198 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01824, allocations: 0 / 0.8198 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003223/0.01856, allocations: 36 kB / 0.8198 GB, free: 8.211 MB / 0.7761 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.0003128/0.01888, allocations: 132.3 kB / 0.82 GB, free: 8.082 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000752/0.01963, allocations: 0.5208 MB / 0.8205 GB, free: 7.477 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01963, allocations: 0 / 0.8205 GB, free: 7.477 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0003341/0.01996, allocations: 242.7 kB / 0.8207 GB, free: 7.203 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.02032, allocations: 35.27 kB / 0.8207 GB, free: 7.172 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007721/0.02109, allocations: 343.1 kB / 0.8211 GB, free: 6.801 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.02121, allocations: 102.4 kB / 0.8212 GB, free: 6.68 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.715e-05/0.02129, allocations: 21.56 kB / 0.8212 GB, free: 6.66 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.071e-05/0.02133, allocations: 16.5 kB / 0.8212 GB, free: 6.645 MB / 0.7761 GB Notification: Performance of SimCode: time 5.11e-07/0.02133, allocations: 3 kB / 0.8212 GB, free: 6.645 MB / 0.7761 GB Notification: Performance of Templates: time 0.006511/0.02784, allocations: 2.218 MB / 0.8234 GB, free: 4.492 MB / 0.7761 GB " [Timeout remaining time 300] 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 -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/jenkins/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: 7.889063100912608]