Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.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 Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.8/4.8, allocations: 0.5623 GB / 0.5769 GB, free: 3.27 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002397/0.002396, allocations: 366.1 kB / 0.6441 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.217/4.217, allocations: 410.7 MB / 1.112 GB, free: 5.949 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0018/0.0018, allocations: 187.9 kB / 1.225 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005146/0.0005149, allocations: 12 kB / 1.348 GB, free: 8.188 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5831/0.5836, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001749/0.5854, allocations: 1.3 MB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.0009331/0.5864, allocations: 0.5914 MB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.911e-05/0.5865, allocations: 3.938 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.5867, allocations: 19.86 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.5869, allocations: 36.33 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000494/0.5874, allocations: 100.4 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.5876, allocations: 145.1 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.5877, allocations: 26.7 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.5878, allocations: 56.59 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001306/0.588, allocations: 80.22 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 4.74e-05/0.588, allocations: 8 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 7.27e-05/0.5881, allocations: 17.42 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 6.792e-05/0.5882, allocations: 27.86 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 5.706e-05/0.5883, allocations: 53.62 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.5884, allocations: 110.5 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.5885, allocations: 0 / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.053e-06/0.5885, allocations: 0.5 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.462e-06/0.5885, allocations: 1.469 kB / 1.463 GB, free: 281.8 MB / 0.8542 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.0005622/0.5891, allocations: 0.5222 MB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.5891, allocations: 11.62 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.94e-05/0.5892, allocations: 19.81 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002746/0.5895, allocations: 239.1 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.5895, allocations: 12.52 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.5896, allocations: 12.69 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003002/0.5899, allocations: 110.7 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.5899, allocations: 4.844 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.5899, allocations: 3.984 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.816e-06/0.5899, allocations: 5.625 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002436/0.5902, allocations: 78.72 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006718/0.5909, allocations: 426.5 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.5911, allocations: 92.89 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000193/0.5913, allocations: 78.06 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.5914, allocations: 9.953 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003109/0.5917, allocations: 176.6 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=10): time 3.098e-06/0.5917, allocations: 0.8438 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=10): time 0.0008686/0.5926, allocations: 376.1 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.919e-05/0.5927, allocations: 162.2 kB / 1.465 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001568/0.5929, allocations: 174.1 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.5929, allocations: 30.61 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.593, allocations: 108.4 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.593, allocations: 33.17 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.593, allocations: 8 kB / 1.466 GB, free: 278.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.5931, allocations: 322.8 kB / 1.466 GB, free: 278.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.5933, allocations: 58.44 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.5935, allocations: 106.5 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.5937, allocations: 177.6 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.573e-06/0.5937, allocations: 5 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0006316/0.5944, allocations: 351.4 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 5.828e-05/0.5945, allocations: 118.8 kB / 1.467 GB, free: 277.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.369e-06/0.5945, allocations: 0.9688 kB / 1.467 GB, free: 277.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.5945, allocations: 4 kB / 1.467 GB, free: 277.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.5947, allocations: 25.19 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.5947, allocations: 7.875 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.5948, allocations: 24.34 kB / 1.467 GB, free: 277.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.5949, allocations: 9.5 kB / 1.467 GB, free: 277.6 MB / 0.8542 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 ($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.0001494/0.595, allocations: 193.2 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.772e-05/0.5951, allocations: 16.56 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.969e-05/0.5951, allocations: 17.41 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.578e-06/0.5951, allocations: 0.5625 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.561e-06/0.5952, allocations: 8.984 kB / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.277e-06/0.5952, allocations: 0 / 1.467 GB, free: 277.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008034/0.596, allocations: 0.5887 MB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.8e-06/0.596, allocations: 0 / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.5961, allocations: 19.92 kB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5961, allocations: 0 / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.5962, allocations: 7.984 kB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.766e-06/0.5962, allocations: 7.953 kB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5962, allocations: 2.203 kB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.5968, allocations: 409.3 kB / 1.468 GB, free: 276.2 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 3.902e-05/0.5969, allocations: 92.91 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/0.597, allocations: 9.5 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/0.5971, allocations: 8 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.5972, allocations: 16.47 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.63e-05/0.5972, allocations: 15.98 kB / 1.468 GB, free: 276.1 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001008/0.5973, allocations: 123.9 kB / 1.468 GB, free: 276 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.65e-07/0.5974, allocations: 0 / 1.468 GB, free: 276 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004123/0.5978, allocations: 40.53 kB / 1.469 GB, free: 275.9 MB / 0.8542 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 (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.0002342/0.598, allocations: 124.7 kB / 1.469 GB, free: 275.8 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0005428/0.5986, allocations: 368.2 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.795e-06/0.5986, allocations: 0.875 kB / 1.469 GB, free: 275.4 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0002546/0.5989, allocations: 215.8 kB / 1.469 GB, free: 275.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.5993, allocations: 21.62 kB / 1.469 GB, free: 275.1 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000635/0.5999, allocations: 308.7 kB / 1.469 GB, free: 274.8 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001641/0.6001, allocations: 0.7113 MB / 1.47 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 8.268e-05/0.6002, allocations: 26.44 kB / 1.47 GB, free: 274.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.6003, allocations: 19.42 kB / 1.47 GB, free: 274 MB / 0.8542 GB Notification: Performance of SimCode: time 1.954e-06/0.6003, allocations: 0 / 1.47 GB, free: 274 MB / 0.8542 GB Notification: Performance of Templates: time 0.00608/0.6064, allocations: 1.932 MB / 1.472 GB, free: 272.3 MB / 0.8542 GB