Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001242/0.001242, allocations: 108.8 kB / 15.98 MB, free: 6.348 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.00138/0.00138, allocations: 193.4 kB / 16.91 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7665/0.7665, allocations: 122.9 MB / 413.6 MB, free: 16 kB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 0.4906 GB, free: 7.797 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3694, allocations: 77.92 MB / 0.5667 GB, free: 32.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002765/0.3722, allocations: 1.647 MB / 0.5683 GB, free: 31.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008294/0.3731, allocations: 0.6092 MB / 0.5689 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.775e-05/0.3732, allocations: 1.969 kB / 0.5689 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.3733, allocations: 19.58 kB / 0.5689 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001804/0.3735, allocations: 37.25 kB / 0.5689 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.3739, allocations: 102.1 kB / 0.569 GB, free: 31.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.3741, allocations: 197.8 kB / 0.5692 GB, free: 31 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.3743, allocations: 26.75 kB / 0.5693 GB, free: 31 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001344/0.3744, allocations: 81.77 kB / 0.5693 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.3745, allocations: 86.17 kB / 0.5694 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.3746, allocations: 17.69 kB / 0.5694 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.773e-05/0.3747, allocations: 29.91 kB / 0.5695 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.494e-05/0.3747, allocations: 28.5 kB / 0.5695 GB, free: 30.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.375e-05/0.3748, allocations: 77.09 kB / 0.5696 GB, free: 30.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002234/0.3751, allocations: 163.1 kB / 0.5697 GB, free: 30.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3751, allocations: 0.5938 kB / 0.5697 GB, free: 30.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3751, allocations: 0 / 0.5697 GB, free: 30.8 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3751, allocations: 1.812 kB / 0.5697 GB, free: 30.8 MB / 446.1 MB 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.0005859/0.3757, allocations: 0.5593 MB / 0.5703 GB, free: 30.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3757, allocations: 10.09 kB / 0.5703 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.3758, allocations: 16.7 kB / 0.5703 GB, free: 30.25 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.376, allocations: 237.4 kB / 0.5705 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.3761, allocations: 9.25 kB / 0.5705 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.3761, allocations: 18.95 kB / 0.5705 GB, free: 30.01 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.3764, allocations: 115.5 kB / 0.5707 GB, free: 29.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.3764, allocations: 0 / 0.5707 GB, free: 29.96 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.3764, allocations: 10.94 kB / 0.5707 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3764, allocations: 1.562 kB / 0.5707 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.3766, allocations: 71.23 kB / 0.5707 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.3772, allocations: 414.5 kB / 0.5711 GB, free: 29.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.3774, allocations: 86.94 kB / 0.5712 GB, free: 29.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.3776, allocations: 77.83 kB / 0.5713 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.3776, allocations: 1.812 kB / 0.5713 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.3779, allocations: 178.2 kB / 0.5715 GB, free: 29.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.3779, allocations: 1.219 kB / 0.5715 GB, free: 29.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008372/0.3787, allocations: 352.8 kB / 0.5718 GB, free: 29.24 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.3788, allocations: 166.9 kB / 0.572 GB, free: 29.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.3789, allocations: 185.1 kB / 0.5721 GB, free: 28.92 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.379, allocations: 34.55 kB / 0.5722 GB, free: 28.88 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.379, allocations: 106.7 kB / 0.5723 GB, free: 28.78 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.3791, allocations: 26.91 kB / 0.5723 GB, free: 28.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.72e-05/0.3791, allocations: 38.92 kB / 0.5723 GB, free: 28.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.3792, allocations: 336.1 kB / 0.5727 GB, free: 28.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.3793, allocations: 52.09 kB / 0.5727 GB, free: 28.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001566/0.3795, allocations: 104.7 kB / 0.5728 GB, free: 28.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.3798, allocations: 308.8 kB / 0.5731 GB, free: 28.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3798, allocations: 1.406 kB / 0.5731 GB, free: 28.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005012/0.3803, allocations: 353.5 kB / 0.5734 GB, free: 27.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.218e-05/0.3804, allocations: 117.2 kB / 0.5735 GB, free: 27.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.3804, allocations: 2.797 kB / 0.5736 GB, free: 27.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3804, allocations: 2.344 kB / 0.5736 GB, free: 27.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3805, allocations: 20.97 kB / 0.5736 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3806, allocations: 4.281 kB / 0.5736 GB, free: 27.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3807, allocations: 22.81 kB / 0.5736 GB, free: 27.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.3807, allocations: 8.625 kB / 0.5736 GB, free: 27.67 MB / 446.1 MB 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.0001271/0.3808, allocations: 199.9 kB / 0.5738 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.3809, allocations: 12.84 kB / 0.5738 GB, free: 27.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.547e-05/0.3809, allocations: 19.94 kB / 0.5738 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3809, allocations: 1.281 kB / 0.5738 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3809, allocations: 1.719 kB / 0.5738 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3809, allocations: 0.6562 kB / 0.5738 GB, free: 27.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.3816, allocations: 0.5865 MB / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.3816, allocations: 0 / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.741e-05/0.3817, allocations: 11.39 kB / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3817, allocations: 1.594 kB / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.691e-05/0.3817, allocations: 10.56 kB / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3817, allocations: 1.828 kB / 0.5744 GB, free: 27.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.3817, allocations: 7.922 kB / 0.5744 GB, free: 27.01 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005352/0.3823, allocations: 407.9 kB / 0.5748 GB, free: 26.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.647e-05/0.3823, allocations: 88.48 kB / 0.5749 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.3823, allocations: 5.312 kB / 0.5749 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.3825, allocations: 14.69 kB / 0.5749 GB, free: 26.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.3825, allocations: 13.98 kB / 0.5749 GB, free: 26.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-05/0.3826, allocations: 10.92 kB / 0.575 GB, free: 26.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.58e-05/0.3826, allocations: 128.7 kB / 0.5751 GB, free: 26.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3827, allocations: 0 / 0.5751 GB, free: 26.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000302/0.383, allocations: 39.56 kB / 0.5751 GB, free: 26.54 MB / 446.1 MB 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.0002078/0.3832, allocations: 122.2 kB / 0.5752 GB, free: 26.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004731/0.3837, allocations: 365.6 kB / 0.5756 GB, free: 26.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3837, allocations: 1.094 kB / 0.5756 GB, free: 26.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.3839, allocations: 209.1 kB / 0.5758 GB, free: 26 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.3842, allocations: 24.38 kB / 0.5758 GB, free: 25.99 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005739/0.3848, allocations: 327.7 kB / 0.5761 GB, free: 25.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.385, allocations: 0.7098 MB / 0.5768 GB, free: 25.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.056e-05/0.3851, allocations: 18.62 kB / 0.5768 GB, free: 25.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.523e-05/0.3851, allocations: 19.59 kB / 0.5768 GB, free: 25.06 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3851, allocations: 0 / 0.5768 GB, free: 25.06 MB / 446.1 MB Notification: Performance of Templates: time 0.005405/0.3905, allocations: 2.06 MB / 0.5789 GB, free: 24.83 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)