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.001414/0.001414, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.0009535/0.0009535, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9653/0.9653, allocations: 177.2 MB / 204.2 MB, free: 5.645 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.806/1.806, 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.432e-06/1.432e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.28e-05/2.424e-05, allocations: 3.516 kB / 0.8115 GB, free: 1.723 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00216/0.002184, allocations: 1.684 MB / 0.8132 GB, free: 52 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0008403/0.003025, allocations: 0.6691 MB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.807e-05/0.003093, allocations: 3.938 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.003245, allocations: 19.8 kB / 0.8139 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0004431/0.003688, allocations: 49.27 kB / 0.8139 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.004003, allocations: 119.6 kB / 0.814 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000206/0.004209, allocations: 203.5 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.00431, allocations: 18.92 kB / 0.8142 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002032/0.004513, allocations: 123.7 kB / 0.8144 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.658e-05/0.00461, allocations: 71.83 kB / 0.8144 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.004636, allocations: 13.94 kB / 0.8144 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.912e-05/0.004705, allocations: 28 kB / 0.8145 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.817e-05/0.004774, allocations: 27.91 kB / 0.8145 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.075e-05/0.004834, allocations: 59.83 kB / 0.8145 GB, free: 14.66 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001956/0.00503, allocations: 147.6 kB / 0.8147 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.005032, allocations: 2.188 kB / 0.8147 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.82e-07/0.005033, allocations: 7.938 kB / 0.8147 GB, free: 14.5 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.005037, allocations: 0 / 0.8147 GB, free: 14.5 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.0005179/0.005555, allocations: 0.5768 MB / 0.8153 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.00559, allocations: 12.03 kB / 0.8153 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001452/0.005736, allocations: 33.36 kB / 0.8153 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002042/0.00594, allocations: 181.1 kB / 0.8155 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.005956, allocations: 12.91 kB / 0.8155 GB, free: 13.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.005973, allocations: 10 kB / 0.8155 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002002/0.006174, allocations: 170.2 kB / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.557e-06/0.006182, allocations: 192 / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/0.006196, allocations: 4.375 kB / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.006204, allocations: 4.469 kB / 0.8157 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.662e-05/0.00628, allocations: 91.38 kB / 0.8158 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004097/0.00669, allocations: 388.8 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.006804, allocations: 118.4 kB / 0.8162 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.597e-05/0.00688, allocations: 108.2 kB / 0.8163 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.006899, allocations: 4 kB / 0.8163 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.007044, allocations: 221.1 kB / 0.8166 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.007045, allocations: 96 / 0.8166 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0004201/0.007466, allocations: 423.7 kB / 0.817 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.409e-05/0.00753, allocations: 170.2 kB / 0.8171 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.007667, allocations: 236.8 kB / 0.8173 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.007684, allocations: 29.7 kB / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.339e-05/0.007748, allocations: 155.1 kB / 0.8175 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.394e-05/0.007771, allocations: 28.41 kB / 0.8176 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.043e-05/0.007822, allocations: 44.36 kB / 0.8176 GB, free: 11.19 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.007923, allocations: 0.4962 MB / 0.8181 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.286e-05/0.008006, allocations: 142.8 kB / 0.8182 GB, free: 10.52 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.008118, allocations: 213.1 kB / 0.8184 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.008273, allocations: 298.1 kB / 0.8187 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.008276, allocations: 2.094 kB / 0.8187 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002945/0.00857, allocations: 422.9 kB / 0.8191 GB, free: 9.422 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.008618, allocations: 117.1 kB / 0.8192 GB, free: 9.285 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.008624, allocations: 7.984 kB / 0.8192 GB, free: 9.277 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.008637, allocations: 0 / 0.8192 GB, free: 9.277 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.577e-05/0.008713, allocations: 12 kB / 0.8192 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.008719, allocations: 4 kB / 0.8192 GB, free: 9.262 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.863e-05/0.008768, allocations: 15.94 kB / 0.8193 GB, free: 9.246 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.008782, allocations: 12.58 kB / 0.8193 GB, free: 9.234 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.0001058/0.008888, allocations: 233.7 kB / 0.8195 GB, free: 8.984 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.948e-05/0.008917, allocations: 31.84 kB / 0.8195 GB, free: 8.953 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.608e-05/0.008943, allocations: 17.45 kB / 0.8195 GB, free: 8.938 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.008946, allocations: 4 kB / 0.8195 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.00895, allocations: 0.5 kB / 0.8195 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.008953, allocations: 0.5938 kB / 0.8195 GB, free: 8.934 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.009354, allocations: 0.5937 MB / 0.8201 GB, free: 8.273 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.009357, allocations: 4.641 kB / 0.8201 GB, free: 8.27 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.361e-05/0.009391, allocations: 12.64 kB / 0.8201 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.009393, allocations: 0 / 0.8201 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.009409, allocations: 15.36 kB / 0.8202 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.00941, allocations: 0 / 0.8202 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.009411, allocations: 3.938 kB / 0.8202 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.009953, allocations: 478.5 kB / 0.8206 GB, free: 7.73 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.147e-05/0.009965, allocations: 11.91 kB / 0.8206 GB, free: 7.719 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.009987, allocations: 8 kB / 0.8206 GB, free: 7.711 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.242e-05/0.01004, allocations: 11.98 kB / 0.8206 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.01008, allocations: 3.984 kB / 0.8206 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.184e-05/0.01009, allocations: 12 kB / 0.8207 GB, free: 7.684 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 6.758e-05/0.01015, allocations: 167.3 kB / 0.8208 GB, free: 7.523 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.7e-07/0.01015, allocations: 0 / 0.8208 GB, free: 7.523 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001912/0.01035, allocations: 39.92 kB / 0.8209 GB, free: 7.484 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.0001962/0.01054, allocations: 126.5 kB / 0.821 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002985/0.01084, allocations: 492.5 kB / 0.8214 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.01084, allocations: 0 / 0.8214 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.01096, allocations: 239.1 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.0002103/0.01117, allocations: 31.86 kB / 0.8217 GB, free: 6.484 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005913/0.01176, allocations: 351.7 kB / 0.822 GB, free: 6.105 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.909e-05/0.0118, allocations: 63.34 kB / 0.8221 GB, free: 6.023 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.527e-05/0.01184, allocations: 20.47 kB / 0.8221 GB, free: 6 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.191e-05/0.01188, allocations: 20.48 kB / 0.8221 GB, free: 5.98 MB / 0.7761 GB Notification: Performance of SimCode: time 6.41e-07/0.01188, allocations: 5.5 kB / 0.8221 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of Templates: time 0.004169/0.01605, allocations: 2.375 MB / 0.8245 GB, free: 3.66 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: 4.979885334614664]