Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.112/2.112, allocations: 251 MB / 265.9 MB, free: 11.67 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001475/0.001475, allocations: 178.4 kB / 325.5 MB, free: 2.898 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.382/2.382, allocations: 205.4 MB / 0.5764 GB, free: 20.79 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00121/0.001209, allocations: 106.6 kB / 0.6809 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006628/0.0006629, allocations: 11.91 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2184, allocations: 106.3 MB / 0.8988 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2361/0.4545, allocations: 133.7 MB / 1.029 GB, free: 11.61 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.4549, allocations: 83.94 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02601/0.4809, allocations: 5.019 MB / 1.034 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.006e-06/0.4809, allocations: 0 / 1.034 GB, free: 6.473 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.326e-05/0.481, allocations: 4 kB / 1.034 GB, free: 6.469 MB / 0.6823 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.001353/0.4824, allocations: 0.5405 MB / 1.035 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 8.249e-05/0.4825, allocations: 12.03 kB / 1.035 GB, free: 5.844 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.4826, allocations: 38.56 kB / 1.035 GB, free: 5.797 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001387/0.4828, allocations: 15.86 kB / 1.035 GB, free: 5.781 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006155/0.4834, allocations: 226.8 kB / 1.035 GB, free: 5.52 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.426e-05/0.4834, allocations: 12 kB / 1.035 GB, free: 5.508 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.373e-05/0.4835, allocations: 12 kB / 1.035 GB, free: 5.496 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006728/0.4842, allocations: 121.5 kB / 1.035 GB, free: 5.371 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.4843, allocations: 3.984 kB / 1.035 GB, free: 5.367 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.365e-05/0.4843, allocations: 4 kB / 1.035 GB, free: 5.363 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.4843, allocations: 0 / 1.035 GB, free: 5.363 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005035/0.4849, allocations: 79.94 kB / 1.035 GB, free: 5.285 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.4864, allocations: 424.5 kB / 1.036 GB, free: 4.82 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004574/0.4869, allocations: 94.53 kB / 1.036 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.637e-05/0.4869, allocations: 0 / 1.036 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005697/0.4875, allocations: 194.9 kB / 1.036 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 3.646e-06/0.4875, allocations: 0 / 1.036 GB, free: 4.504 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.001604/0.4891, allocations: 0.5148 MB / 1.037 GB, free: 3.934 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/0.4893, allocations: 166.2 kB / 1.037 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.4895, allocations: 154.3 kB / 1.037 GB, free: 3.574 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 4.237e-05/0.4896, allocations: 41.62 kB / 1.037 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.4897, allocations: 108.3 kB / 1.037 GB, free: 3.414 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.4898, allocations: 27.69 kB / 1.037 GB, free: 3.387 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.4898, allocations: 4 kB / 1.037 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.49, allocations: 326.8 kB / 1.037 GB, free: 3.055 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.4902, allocations: 55.95 kB / 1.037 GB, free: 3 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002893/0.4905, allocations: 108.2 kB / 1.037 GB, free: 2.871 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.4909, allocations: 182.7 kB / 1.038 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4909, allocations: 0 / 1.038 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0009404/0.4919, allocations: 348.1 kB / 1.038 GB, free: 2.297 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.492, allocations: 123 kB / 1.038 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.492, allocations: 0 / 1.038 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.475e-05/0.4921, allocations: 4 kB / 1.038 GB, free: 2.148 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.4923, allocations: 27.92 kB / 1.038 GB, free: 2.121 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.669e-05/0.4923, allocations: 3.953 kB / 1.038 GB, free: 2.117 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.4925, allocations: 15.94 kB / 1.038 GB, free: 2.102 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.4926, allocations: 8 kB / 1.038 GB, free: 2.094 MB / 0.6823 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.0002738/0.4929, allocations: 206.2 kB / 1.038 GB, free: 1.871 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.4929, allocations: 15.81 kB / 1.038 GB, free: 1.855 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.493, allocations: 13.41 kB / 1.038 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.493, allocations: 0 / 1.038 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.493, allocations: 0 / 1.038 GB, free: 1.844 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.493, allocations: 3.953 kB / 1.038 GB, free: 1.84 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.4943, allocations: 0.5955 MB / 1.039 GB, free: 1.176 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.4943, allocations: 3.938 kB / 1.039 GB, free: 1.172 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.4944, allocations: 8 kB / 1.039 GB, free: 1.164 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.978e-06/0.4944, allocations: 7.984 kB / 1.039 GB, free: 1.156 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.284e-05/0.4945, allocations: 8 kB / 1.039 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.533e-06/0.4945, allocations: 3.953 kB / 1.039 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.4945, allocations: 0 / 1.039 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000974/0.4955, allocations: 418.5 kB / 1.039 GB, free: 0.707 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.751e-05/0.4956, allocations: 85.02 kB / 1.039 GB, free: 0.6055 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.4957, allocations: 4 kB / 1.04 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.4959, allocations: 11.98 kB / 1.04 GB, free: 0.5898 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.816e-05/0.4959, allocations: 15.95 kB / 1.04 GB, free: 0.5742 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.496, allocations: 7.984 kB / 1.04 GB, free: 0.5664 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001694/0.4962, allocations: 131.2 kB / 1.04 GB, free: 448 kB / 0.6823 GB Notification: Performance of sort global known variables: time 4.1e-07/0.4962, allocations: 0 / 1.04 GB, free: 448 kB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004743/0.4967, allocations: 39.89 kB / 1.04 GB, free: 408 kB / 0.6823 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.001543/0.4982, allocations: 0.967 MB / 1.041 GB, free: 15.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00091/0.4992, allocations: 377.3 kB / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4992, allocations: 0 / 1.041 GB, free: 14.98 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004508/0.4997, allocations: 206.8 kB / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.5, allocations: 22.19 kB / 1.041 GB, free: 14.73 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.5018, allocations: 1.625 MB / 1.043 GB, free: 13.02 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.5023, allocations: 0.7121 MB / 1.044 GB, free: 12.29 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.000139/0.5024, allocations: 20.53 kB / 1.044 GB, free: 12.27 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.805e-05/0.5025, allocations: 31.42 kB / 1.044 GB, free: 12.23 MB / 0.698 GB Notification: Performance of SimCode: time 1.413e-06/0.5026, allocations: 0 / 1.044 GB, free: 12.23 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03035/0.5329, allocations: 3.291 MB / 1.047 GB, free: 9.086 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003172/0.5333, allocations: 186.3 kB / 1.047 GB, free: 8.84 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.508/3.041, allocations: 0 / 1.047 GB, free: 8.84 MB / 0.698 GB