Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002383/0.002387, allocations: 355.1 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.431/1.431, allocations: 165.8 MB / 182.5 MB, free: 5.402 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.769/3.769, allocations: 410.8 MB / 0.5995 GB, free: 15.2 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0017/0.001699, allocations: 203 kB / 0.6662 GB, free: 6.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001137, allocations: 15.94 kB / 0.7423 GB, free: 8.957 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3753/0.3765, allocations: 67.43 MB / 0.8082 GB, free: 28.78 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.001604/0.3781, allocations: 1.293 MB / 0.8094 GB, free: 27.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009061/0.3791, allocations: 0.5946 MB / 0.81 GB, free: 26.88 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.385e-05/0.3792, allocations: 0 / 0.81 GB, free: 26.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000124/0.3793, allocations: 19.86 kB / 0.81 GB, free: 26.86 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.3795, allocations: 35.83 kB / 0.81 GB, free: 26.82 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004559/0.38, allocations: 95.77 kB / 0.8101 GB, free: 26.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.3802, allocations: 147.6 kB / 0.8103 GB, free: 26.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3803, allocations: 21.12 kB / 0.8103 GB, free: 26.56 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.3804, allocations: 63.81 kB / 0.8104 GB, free: 26.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001245/0.3806, allocations: 79.72 kB / 0.8104 GB, free: 26.42 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.613e-05/0.3806, allocations: 4 kB / 0.8104 GB, free: 26.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.263e-05/0.3807, allocations: 19.94 kB / 0.8105 GB, free: 26.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.234e-05/0.3808, allocations: 23.91 kB / 0.8105 GB, free: 26.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.186e-05/0.3808, allocations: 49.64 kB / 0.8105 GB, free: 26.32 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.381, allocations: 113.9 kB / 0.8106 GB, free: 26.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.381, allocations: 4 kB / 0.8106 GB, free: 26.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.553e-06/0.381, allocations: 4 kB / 0.8106 GB, free: 26.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.089e-06/0.381, allocations: 0 / 0.8106 GB, free: 26.2 MB / 378.7 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.000533/0.3816, allocations: 0.5211 MB / 0.8112 GB, free: 25.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.3816, allocations: 15.97 kB / 0.8112 GB, free: 25.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.695e-05/0.3817, allocations: 15.81 kB / 0.8112 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.382, allocations: 230.8 kB / 0.8114 GB, free: 25.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.382, allocations: 12 kB / 0.8114 GB, free: 25.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.3821, allocations: 12 kB / 0.8114 GB, free: 25.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.3824, allocations: 121.5 kB / 0.8115 GB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.3824, allocations: 3.938 kB / 0.8115 GB, free: 25.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.3825, allocations: 4 kB / 0.8116 GB, free: 25.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.695e-06/0.3825, allocations: 0 / 0.8116 GB, free: 25.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002742/0.3828, allocations: 79.94 kB / 0.8116 GB, free: 25.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008424/0.3836, allocations: 428.5 kB / 0.812 GB, free: 24.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.3839, allocations: 90.53 kB / 0.8121 GB, free: 24.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001976/0.3841, allocations: 80.81 kB / 0.8122 GB, free: 24.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.3842, allocations: 0 / 0.8122 GB, free: 24.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003087/0.3845, allocations: 182.9 kB / 0.8124 GB, free: 24.22 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 3.25e-06/0.3845, allocations: 96 / 0.8124 GB, free: 24.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0008505/0.3854, allocations: 368.7 kB / 0.8127 GB, free: 23.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.728e-05/0.3854, allocations: 166.2 kB / 0.8129 GB, free: 23.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.3856, allocations: 174.7 kB / 0.8131 GB, free: 23.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.446e-05/0.3856, allocations: 37.64 kB / 0.8131 GB, free: 23.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.3857, allocations: 112.3 kB / 0.8132 GB, free: 23.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.97e-05/0.3857, allocations: 23.66 kB / 0.8132 GB, free: 23.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.421e-05/0.3858, allocations: 0 / 0.8132 GB, free: 23.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.3858, allocations: 330.8 kB / 0.8135 GB, free: 22.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.386, allocations: 51.95 kB / 0.8136 GB, free: 22.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.3862, allocations: 108.5 kB / 0.8137 GB, free: 22.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002165/0.3865, allocations: 174.8 kB / 0.8139 GB, free: 22.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.184e-06/0.3865, allocations: 3.953 kB / 0.8139 GB, free: 22.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006201/0.3871, allocations: 364 kB / 0.8142 GB, free: 22.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.719e-05/0.3872, allocations: 118.8 kB / 0.8143 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.113e-06/0.3872, allocations: 4 kB / 0.8143 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3872, allocations: 8.234 kB / 0.8143 GB, free: 22.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001377/0.3874, allocations: 23.92 kB / 0.8144 GB, free: 22.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.489e-06/0.3874, allocations: 4 kB / 0.8144 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.3875, allocations: 23.92 kB / 0.8144 GB, free: 21.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.645e-05/0.3876, allocations: 8 kB / 0.8144 GB, free: 21.97 MB / 378.7 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001398/0.3877, allocations: 186.3 kB / 0.8146 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.839e-05/0.3878, allocations: 23.77 kB / 0.8146 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.3878, allocations: 25.39 kB / 0.8146 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.3879, allocations: 3.938 kB / 0.8146 GB, free: 21.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.65e-06/0.3879, allocations: 3.938 kB / 0.8146 GB, free: 21.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.781e-06/0.3879, allocations: 0 / 0.8146 GB, free: 21.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007944/0.3887, allocations: 0.5799 MB / 0.8152 GB, free: 21.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.763e-06/0.3887, allocations: 8 kB / 0.8152 GB, free: 21.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.7e-05/0.3888, allocations: 15.92 kB / 0.8152 GB, free: 21.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.89e-06/0.3888, allocations: 0 / 0.8152 GB, free: 21.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.657e-05/0.3889, allocations: 11.98 kB / 0.8152 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.3889, allocations: 4 kB / 0.8152 GB, free: 21.03 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.689e-06/0.3889, allocations: 0 / 0.8152 GB, free: 21.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006323/0.3895, allocations: 414.5 kB / 0.8156 GB, free: 20.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.807e-05/0.3896, allocations: 92.92 kB / 0.8157 GB, free: 20.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.3896, allocations: 4 kB / 0.8157 GB, free: 20.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.3898, allocations: 11.98 kB / 0.8157 GB, free: 20.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.3899, allocations: 11.97 kB / 0.8157 GB, free: 20.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.3899, allocations: 8 kB / 0.8157 GB, free: 20.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.9e-05/0.39, allocations: 131.2 kB / 0.8159 GB, free: 20.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.39, allocations: 0 / 0.8159 GB, free: 20.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003946/0.3904, allocations: 35.94 kB / 0.8159 GB, free: 20.29 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002323/0.3907, allocations: 137.4 kB / 0.816 GB, free: 20.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.3912, allocations: 369.4 kB / 0.8164 GB, free: 19.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.548e-06/0.3912, allocations: 4 kB / 0.8164 GB, free: 19.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.3915, allocations: 207.2 kB / 0.8166 GB, free: 19.51 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.3919, allocations: 28.12 kB / 0.8166 GB, free: 19.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006392/0.3926, allocations: 313.9 kB / 0.8169 GB, free: 19.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.3927, allocations: 0.7082 MB / 0.8176 GB, free: 18.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.885e-05/0.3928, allocations: 20.53 kB / 0.8176 GB, free: 18.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.774e-05/0.3929, allocations: 15.44 kB / 0.8176 GB, free: 18.38 MB / 378.7 MB Notification: Performance of SimCode: time 2.158e-06/0.3929, allocations: 0 / 0.8176 GB, free: 18.38 MB / 378.7 MB Notification: Performance of Templates: time 0.005951/0.3989, allocations: 1.928 MB / 0.8195 GB, free: 16.48 MB / 378.7 MB