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.0009604/0.0009604, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.0009896/0.0009896, allocations: 165 kB / 23.82 MB, free: 0.7461 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 0.974/0.974, allocations: 177.1 MB / 204.2 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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 1.845/1.845, allocations: 377.9 MB / 0.6236 GB, free: 8.527 MB / 0.5886 GB " [Timeout remaining time 178] 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.473e-06/1.473e-06, allocations: 0 / 0.8115 GB, free: 1.742 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.661e-05, allocations: 7.078 kB / 0.8115 GB, free: 1.734 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002469/0.002495, allocations: 1.698 MB / 0.8132 GB, free: 48 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0008577/0.003353, allocations: 0.6672 MB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.085e-05/0.003424, allocations: 0 / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.003581, allocations: 27.72 kB / 0.8139 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001905/0.003771, allocations: 45.34 kB / 0.8139 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.004082, allocations: 119.7 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002148/0.004296, allocations: 196.2 kB / 0.8142 GB, free: 15 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.004402, allocations: 17.56 kB / 0.8142 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.004596, allocations: 116.3 kB / 0.8143 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.822e-05/0.004695, allocations: 77.44 kB / 0.8144 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.953e-05/0.004724, allocations: 16 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.004794, allocations: 27.98 kB / 0.8145 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.22e-05/0.004866, allocations: 27.91 kB / 0.8145 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.055e-05/0.004927, allocations: 60.48 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002063/0.005133, allocations: 155.4 kB / 0.8147 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.943e-06/0.005135, allocations: 1.312 kB / 0.8147 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.51e-07/0.005136, allocations: 0 / 0.8147 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.00514, allocations: 0 / 0.8147 GB, free: 14.51 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.000535/0.005675, allocations: 0.5819 MB / 0.8153 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.005709, allocations: 8.031 kB / 0.8153 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.005852, allocations: 36.83 kB / 0.8153 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.006086, allocations: 181.9 kB / 0.8155 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.0061, allocations: 8.375 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.006123, allocations: 21.94 kB / 0.8155 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002004/0.006323, allocations: 162.2 kB / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.006334, allocations: 4.188 kB / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.006349, allocations: 8.125 kB / 0.8157 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.006356, allocations: 1.625 kB / 0.8157 GB, free: 13.4 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.648e-05/0.006433, allocations: 91.38 kB / 0.8158 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004239/0.006857, allocations: 387.5 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.006967, allocations: 123.3 kB / 0.8162 GB, free: 12.74 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.191e-05/0.007048, allocations: 103.1 kB / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.33e-05/0.007072, allocations: 10.17 kB / 0.8164 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001521/0.007224, allocations: 227.7 kB / 0.8166 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.007225, allocations: 0 / 0.8166 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0004288/0.007654, allocations: 419.8 kB / 0.817 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.007714, allocations: 162.2 kB / 0.8171 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.007845, allocations: 237.9 kB / 0.8173 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.007863, allocations: 33.7 kB / 0.8174 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.222e-05/0.007925, allocations: 159 kB / 0.8175 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.117e-05/0.007946, allocations: 23.8 kB / 0.8176 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.004e-05/0.008006, allocations: 43.36 kB / 0.8176 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.008118, allocations: 0.4962 MB / 0.8181 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.542e-05/0.008204, allocations: 139.3 kB / 0.8182 GB, free: 10.51 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.008311, allocations: 212.8 kB / 0.8184 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.008472, allocations: 299.8 kB / 0.8187 GB, free: 9.887 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.008475, allocations: 4 kB / 0.8187 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002975/0.008773, allocations: 428 kB / 0.8191 GB, free: 9.41 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.374e-05/0.008827, allocations: 118.8 kB / 0.8192 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.008832, allocations: 0.5938 kB / 0.8192 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.00885, allocations: 4.938 kB / 0.8192 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.176e-05/0.008932, allocations: 15.94 kB / 0.8192 GB, free: 9.25 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.00894, allocations: 12.05 kB / 0.8193 GB, free: 9.238 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.319e-05/0.008993, allocations: 20.73 kB / 0.8193 GB, free: 9.219 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.009008, allocations: 8 kB / 0.8193 GB, free: 9.211 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.0001076/0.009115, allocations: 235.3 kB / 0.8195 GB, free: 8.961 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.009147, allocations: 27.84 kB / 0.8195 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.009178, allocations: 17.45 kB / 0.8196 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.00918, allocations: 0 / 0.8196 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.009184, allocations: 0 / 0.8196 GB, free: 8.918 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.009187, allocations: 4 kB / 0.8196 GB, free: 8.914 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004139/0.009601, allocations: 0.586 MB / 0.8201 GB, free: 8.262 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.009603, allocations: 0 / 0.8201 GB, free: 8.262 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.252e-05/0.009636, allocations: 14.17 kB / 0.8201 GB, free: 8.25 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.009639, allocations: 4 kB / 0.8201 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.009651, allocations: 4 kB / 0.8202 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.009653, allocations: 0 / 0.8202 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.009654, allocations: 0 / 0.8202 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003192/0.009973, allocations: 490.4 kB / 0.8206 GB, free: 7.719 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.131e-05/0.009985, allocations: 12.88 kB / 0.8206 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.214e-05/0.01001, allocations: 7.984 kB / 0.8206 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.25e-05/0.01006, allocations: 5.094 kB / 0.8206 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.0101, allocations: 11.98 kB / 0.8207 GB, free: 7.684 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.01011, allocations: 8 kB / 0.8207 GB, free: 7.676 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.221e-05/0.01019, allocations: 170.2 kB / 0.8208 GB, free: 7.512 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01019, allocations: 0 / 0.8208 GB, free: 7.512 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001968/0.01038, allocations: 31.94 kB / 0.8209 GB, free: 7.48 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.0002051/0.01059, allocations: 125.4 kB / 0.821 GB, free: 7.355 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003179/0.01091, allocations: 491.3 kB / 0.8214 GB, free: 6.785 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.01091, allocations: 0.5 kB / 0.8214 GB, free: 6.785 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.01103, allocations: 235.2 kB / 0.8217 GB, free: 6.516 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.01125, allocations: 36.19 kB / 0.8217 GB, free: 6.48 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/0.01188, allocations: 345.6 kB / 0.822 GB, free: 6.105 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.05e-05/0.01192, allocations: 64 kB / 0.8221 GB, free: 6.023 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.652e-05/0.01196, allocations: 21.09 kB / 0.8221 GB, free: 6 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.246e-05/0.012, allocations: 22.61 kB / 0.8221 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of SimCode: time 7.62e-07/0.012, allocations: 0 / 0.8221 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of Templates: time 0.003938/0.01593, allocations: 2.217 MB / 0.8243 GB, free: 3.82 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] 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","",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.073062757961452]