Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009584/0.0009584, allocations: 100.8 kB / 16.29 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009084/0.0009084, allocations: 181.8 kB / 17.22 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.605/1.605, allocations: 292.3 MB / 0.5495 GB, free: 17.51 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 71.89 kB / 0.6722 GB, free: 6.477 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.216, allocations: 114.6 MB / 0.7841 GB, free: 3.801 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002952/0.219, allocations: 1.596 MB / 0.7856 GB, free: 2.188 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009226/0.22, allocations: 0.6555 MB / 0.7863 GB, free: 1.523 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.315e-05/0.2201, allocations: 7.938 kB / 0.7863 GB, free: 1.516 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.2202, allocations: 15.86 kB / 0.7863 GB, free: 1.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002054/0.2205, allocations: 43.77 kB / 0.7863 GB, free: 1.457 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.2208, allocations: 115.7 kB / 0.7865 GB, free: 1.344 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.2211, allocations: 199.6 kB / 0.7866 GB, free: 1.148 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.2212, allocations: 33.08 kB / 0.7867 GB, free: 1.113 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.2214, allocations: 79.83 kB / 0.7868 GB, free: 1.035 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000134/0.2215, allocations: 91.59 kB / 0.7868 GB, free: 0.9453 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.073e-05/0.2216, allocations: 12 kB / 0.7869 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.962e-05/0.2216, allocations: 31.97 kB / 0.7869 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.088e-05/0.2217, allocations: 27.92 kB / 0.7869 GB, free: 0.875 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.669e-05/0.2218, allocations: 75.64 kB / 0.787 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.2221, allocations: 167.7 kB / 0.7871 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2221, allocations: 0 / 0.7871 GB, free: 0.6367 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2221, allocations: 3.938 kB / 0.7871 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.2221, allocations: 4 kB / 0.7871 GB, free: 0.6289 MB / 0.6544 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.0007011/0.2228, allocations: 0.5564 MB / 0.7877 GB, free: 0 / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 0.322/0.5448, allocations: 7.109 kB / 0.7877 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001229/0.5449, allocations: 19.75 kB / 0.7877 GB, free: 48.88 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.5452, allocations: 223.2 kB / 0.7879 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.5452, allocations: 11.41 kB / 0.7879 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.5453, allocations: 11.84 kB / 0.788 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.5455, allocations: 111.5 kB / 0.7881 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.5455, allocations: 3.938 kB / 0.7881 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.5456, allocations: 9 kB / 0.7881 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.5456, allocations: 0 / 0.7881 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.5457, allocations: 74.08 kB / 0.7881 GB, free: 48.65 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004687/0.5462, allocations: 414.2 kB / 0.7885 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.5464, allocations: 94.25 kB / 0.7886 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001174/0.5465, allocations: 72.09 kB / 0.7887 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.5465, allocations: 10.08 kB / 0.7887 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.5468, allocations: 180.6 kB / 0.7889 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.5468, allocations: 0 / 0.7889 GB, free: 48.24 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0005537/0.5473, allocations: 346.6 kB / 0.7892 GB, free: 48.14 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.5474, allocations: 169 kB / 0.7894 GB, free: 47.96 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.5475, allocations: 174.6 kB / 0.7895 GB, free: 47.85 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.5475, allocations: 35.36 kB / 0.7896 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/0.5476, allocations: 109 kB / 0.7897 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.5476, allocations: 23.5 kB / 0.7897 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.5477, allocations: 40.39 kB / 0.7897 GB, free: 47.71 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 3.928e-05/0.5477, allocations: 330.2 kB / 0.79 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.5478, allocations: 50.44 kB / 0.7901 GB, free: 47.39 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.5479, allocations: 106 kB / 0.7902 GB, free: 47.33 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.5482, allocations: 310.6 kB / 0.7905 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5482, allocations: 2.625 kB / 0.7905 GB, free: 47.08 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003982/0.5486, allocations: 350.9 kB / 0.7908 GB, free: 46.91 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.5486, allocations: 118 kB / 0.7909 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.5486, allocations: 2.625 kB / 0.7909 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.5487, allocations: 5.922 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.165e-05/0.5488, allocations: 15.52 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.5488, allocations: 4.438 kB / 0.791 GB, free: 46.79 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.43e-05/0.5489, allocations: 21.53 kB / 0.791 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.5489, allocations: 7.875 kB / 0.791 GB, free: 46.78 MB / 0.6544 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 9.323e-05/0.549, allocations: 204.7 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.549, allocations: 14.41 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.888e-05/0.549, allocations: 13.27 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.549, allocations: 5.812 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.5491, allocations: 1.125 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.5491, allocations: 1.844 kB / 0.7912 GB, free: 46.6 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004998/0.5496, allocations: 0.592 MB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5496, allocations: 1.062 kB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/0.5496, allocations: 10.42 kB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.5496, allocations: 4.688 kB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.5497, allocations: 9.188 kB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5497, allocations: 3.625 kB / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5497, allocations: 0 / 0.7918 GB, free: 46.23 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000389/0.5501, allocations: 399.8 kB / 0.7922 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.071e-05/0.5501, allocations: 90.73 kB / 0.7923 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.5501, allocations: 10.06 kB / 0.7923 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.838e-05/0.5502, allocations: 7.219 kB / 0.7923 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.5503, allocations: 9.406 kB / 0.7923 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.5503, allocations: 16.39 kB / 0.7923 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 6.185e-05/0.5504, allocations: 128.6 kB / 0.7925 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5504, allocations: 2.438 kB / 0.7925 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002579/0.5506, allocations: 39.69 kB / 0.7925 GB, free: 45.85 MB / 0.6544 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.0001772/0.5508, allocations: 135.4 kB / 0.7926 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003451/0.5512, allocations: 359.2 kB / 0.793 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.5512, allocations: 0 / 0.793 GB, free: 45.51 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001731/0.5514, allocations: 207.3 kB / 0.7932 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.5516, allocations: 22.81 kB / 0.7932 GB, free: 45.39 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000426/0.5521, allocations: 287 kB / 0.7935 GB, free: 45.24 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001082/0.5522, allocations: 0.7076 MB / 0.7942 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.632e-05/0.5523, allocations: 28.52 kB / 0.7942 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.671e-05/0.5523, allocations: 12.38 kB / 0.7942 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.5523, allocations: 0 / 0.7942 GB, free: 44.54 MB / 0.6544 GB Notification: Performance of Templates: time 0.003933/0.5562, allocations: 2.068 MB / 0.7962 GB, free: 44.37 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)