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.001358/0.001358, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001595/0.001595, allocations: 169.3 kB / 24.28 MB, free: 280 kB / 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.944/0.944, allocations: 177.1 MB / 204.6 MB, free: 5.586 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.914/1.914, allocations: 377.8 MB / 0.6239 GB, free: 8.535 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.893e-06/1.893e-06, allocations: 0 / 0.8115 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.353e-05/3.543e-05, allocations: 3.906 kB / 0.8115 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003413/0.003449, allocations: 1.695 MB / 0.8132 GB, free: 408 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.004686, allocations: 0.6635 MB / 0.8138 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.809e-05/0.004774, allocations: 4 kB / 0.8138 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.004932, allocations: 28.33 kB / 0.8138 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.005174, allocations: 44.36 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004478/0.005622, allocations: 124.7 kB / 0.814 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002973/0.005919, allocations: 191.5 kB / 0.8142 GB, free: 15.35 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.006046, allocations: 21.58 kB / 0.8142 GB, free: 15.32 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.006309, allocations: 112.3 kB / 0.8143 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.006447, allocations: 81.2 kB / 0.8144 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.006488, allocations: 12 kB / 0.8144 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.041e-05/0.006568, allocations: 28 kB / 0.8144 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 8.818e-05/0.006657, allocations: 29.06 kB / 0.8145 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 8.812e-05/0.006745, allocations: 59.83 kB / 0.8145 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002735/0.007018, allocations: 151.5 kB / 0.8147 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.007021, allocations: 1.031 kB / 0.8147 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.42e-07/0.007022, allocations: 4 kB / 0.8147 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.007027, allocations: 0 / 0.8147 GB, free: 14.86 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.0006344/0.007662, allocations: 0.5817 MB / 0.8152 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 8.55e-05/0.007747, allocations: 12.03 kB / 0.8152 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.007934, allocations: 29.81 kB / 0.8153 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.008224, allocations: 189.8 kB / 0.8154 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.008242, allocations: 8.375 kB / 0.8155 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.992e-05/0.008272, allocations: 12.38 kB / 0.8155 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.008536, allocations: 164.2 kB / 0.8156 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.008544, allocations: 192 / 0.8156 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.032e-05/0.008564, allocations: 12.12 kB / 0.8156 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.008572, allocations: 0 / 0.8156 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.008696, allocations: 95.3 kB / 0.8157 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005915/0.009288, allocations: 393.3 kB / 0.8161 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001606/0.009448, allocations: 118.5 kB / 0.8162 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001226/0.009571, allocations: 103.1 kB / 0.8163 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.009594, allocations: 8.844 kB / 0.8163 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002085/0.009802, allocations: 219.8 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.009804, allocations: 4.469 kB / 0.8165 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0006043/0.01041, allocations: 420.4 kB / 0.8169 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/0.01049, allocations: 166.2 kB / 0.8171 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001895/0.01068, allocations: 232.3 kB / 0.8173 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.01071, allocations: 34.92 kB / 0.8174 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.822e-05/0.01079, allocations: 155.1 kB / 0.8175 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.01083, allocations: 27.78 kB / 0.8175 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.0109, allocations: 44.22 kB / 0.8176 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.01105, allocations: 0.5001 MB / 0.8181 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.01117, allocations: 134.8 kB / 0.8182 GB, free: 10.87 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.01133, allocations: 213.1 kB / 0.8184 GB, free: 10.6 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003278/0.01166, allocations: 298.9 kB / 0.8187 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.01166, allocations: 0 / 0.8187 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004511/0.01211, allocations: 424.3 kB / 0.8191 GB, free: 9.773 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.01218, allocations: 120.3 kB / 0.8192 GB, free: 9.633 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.01219, allocations: 4 kB / 0.8192 GB, free: 9.629 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.01221, allocations: 4 kB / 0.8192 GB, free: 9.625 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.01231, allocations: 18.8 kB / 0.8192 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.01232, allocations: 8.062 kB / 0.8192 GB, free: 9.602 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.841e-05/0.0124, allocations: 19.89 kB / 0.8192 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.01242, allocations: 8 kB / 0.8193 GB, free: 9.574 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.000135/0.01255, allocations: 235.9 kB / 0.8195 GB, free: 9.32 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.954e-05/0.0126, allocations: 27.84 kB / 0.8195 GB, free: 9.293 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.35e-05/0.01265, allocations: 17.45 kB / 0.8195 GB, free: 9.277 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.01265, allocations: 0.5 kB / 0.8195 GB, free: 9.277 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.01265, allocations: 5.094 kB / 0.8195 GB, free: 9.273 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01266, allocations: 0 / 0.8195 GB, free: 9.273 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006282/0.01329, allocations: 0.5937 MB / 0.8201 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.01329, allocations: 1.094 kB / 0.8201 GB, free: 8.613 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.104e-05/0.01335, allocations: 8 kB / 0.8201 GB, free: 8.605 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.01335, allocations: 0 / 0.8201 GB, free: 8.605 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.01337, allocations: 12.47 kB / 0.8201 GB, free: 8.594 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01338, allocations: 1.312 kB / 0.8201 GB, free: 8.594 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.01338, allocations: 4 kB / 0.8201 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005019/0.01388, allocations: 486.4 kB / 0.8206 GB, free: 8.07 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.804e-05/0.0139, allocations: 11.91 kB / 0.8206 GB, free: 8.059 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.489e-05/0.01393, allocations: 4.875 kB / 0.8206 GB, free: 8.055 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.01404, allocations: 4 kB / 0.8206 GB, free: 8.051 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.099e-05/0.01409, allocations: 13.33 kB / 0.8206 GB, free: 8.039 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.01411, allocations: 4 kB / 0.8206 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001087/0.01422, allocations: 165.1 kB / 0.8208 GB, free: 7.875 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.2e-07/0.01422, allocations: 0 / 0.8208 GB, free: 7.875 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003571/0.01457, allocations: 40.88 kB / 0.8208 GB, free: 7.836 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.0002905/0.01486, allocations: 131.4 kB / 0.821 GB, free: 7.707 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0004469/0.01531, allocations: 495.3 kB / 0.8214 GB, free: 7.133 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.01531, allocations: 0 / 0.8214 GB, free: 7.133 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002001/0.01551, allocations: 232.9 kB / 0.8216 GB, free: 6.867 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003448/0.01586, allocations: 38.8 kB / 0.8217 GB, free: 6.832 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009129/0.01677, allocations: 340.7 kB / 0.822 GB, free: 6.461 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.444e-05/0.01683, allocations: 71.33 kB / 0.8221 GB, free: 6.371 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.801e-05/0.01689, allocations: 25.34 kB / 0.8221 GB, free: 6.344 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.177e-05/0.01694, allocations: 13.59 kB / 0.8221 GB, free: 6.332 MB / 0.7761 GB Notification: Performance of SimCode: time 9.42e-07/0.01694, allocations: 0 / 0.8221 GB, free: 6.332 MB / 0.7761 GB Notification: Performance of Templates: time 0.006014/0.02295, allocations: 2.216 MB / 0.8243 GB, free: 4.176 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.067448499146849]