Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.585/1.585, allocations: 249.3 MB / 261.8 MB, free: 5.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001007/0.001007, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0008098/0.0008097, allocations: 97.2 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.411e-05/3.421e-05, allocations: 4 kB / 0.788 GB, free: 97.03 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.239, allocations: 106.3 MB / 0.8919 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7963/1.035, allocations: 133.8 MB / 1.023 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/1.036, allocations: 77.39 kB / 1.023 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01397/1.05, allocations: 4.992 MB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.144e-06/1.05, allocations: 0 / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.737e-05/1.05, allocations: 7.938 kB / 1.027 GB, free: 12.64 MB / 0.6511 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.0007026/1.051, allocations: 0.5107 MB / 1.028 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/1.051, allocations: 12.03 kB / 1.028 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.866e-05/1.051, allocations: 41 kB / 1.028 GB, free: 12.02 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.9e-05/1.051, allocations: 15.41 kB / 1.028 GB, free: 12.01 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/1.051, allocations: 237.4 kB / 1.028 GB, free: 11.75 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/1.051, allocations: 7.312 kB / 1.028 GB, free: 11.74 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/1.051, allocations: 12 kB / 1.028 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/1.051, allocations: 103.3 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/1.051, allocations: 0 / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/1.051, allocations: 0 / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/1.051, allocations: 4 kB / 1.028 GB, free: 11.64 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/1.052, allocations: 54.55 kB / 1.028 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007133/1.052, allocations: 419.7 kB / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/1.053, allocations: 81.66 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/1.053, allocations: 77.95 kB / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/1.053, allocations: 0 / 1.029 GB, free: 11.06 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/1.053, allocations: 167.1 kB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/1.053, allocations: 0 / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0005096/1.053, allocations: 280.7 kB / 1.029 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/1.054, allocations: 165.9 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/1.054, allocations: 160.2 kB / 1.03 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/1.054, allocations: 32.7 kB / 1.03 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.647e-05/1.054, allocations: 111 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.243e-05/1.054, allocations: 30.83 kB / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/1.054, allocations: 7.312 kB / 1.03 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000139/1.054, allocations: 327.2 kB / 1.03 GB, free: 9.809 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.435e-05/1.054, allocations: 38.67 kB / 1.03 GB, free: 9.781 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/1.054, allocations: 99.48 kB / 1.03 GB, free: 9.676 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001964/1.055, allocations: 162.6 kB / 1.031 GB, free: 9.508 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.055, allocations: 4 kB / 1.031 GB, free: 9.504 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005061/1.055, allocations: 325.4 kB / 1.031 GB, free: 9.188 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/1.055, allocations: 118.4 kB / 1.031 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/1.055, allocations: 4 kB / 1.031 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/1.055, allocations: 0 / 1.031 GB, free: 9.047 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/1.055, allocations: 19.98 kB / 1.031 GB, free: 9.027 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/1.055, allocations: 12.2 kB / 1.031 GB, free: 9.016 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/1.055, allocations: 10.31 kB / 1.031 GB, free: 9.008 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/1.056, allocations: 11.98 kB / 1.031 GB, free: 8.996 MB / 0.6511 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 () * 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.0001904/1.056, allocations: 184.6 kB / 1.031 GB, free: 8.805 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/1.056, allocations: 19.8 kB / 1.031 GB, free: 8.785 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.422e-05/1.056, allocations: 16.34 kB / 1.031 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/1.056, allocations: 0 / 1.031 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/1.056, allocations: 0 / 1.031 GB, free: 8.777 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/1.056, allocations: 7.953 kB / 1.031 GB, free: 8.77 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007676/1.057, allocations: 0.5658 MB / 1.032 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/1.057, allocations: 0 / 1.032 GB, free: 8.199 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.162e-05/1.057, allocations: 19.92 kB / 1.032 GB, free: 8.18 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/1.057, allocations: 0 / 1.032 GB, free: 8.18 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/1.057, allocations: 7.984 kB / 1.032 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/1.057, allocations: 0 / 1.032 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/1.057, allocations: 3.953 kB / 1.032 GB, free: 8.168 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/1.057, allocations: 387.9 kB / 1.032 GB, free: 7.809 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.745e-05/1.057, allocations: 85.02 kB / 1.032 GB, free: 7.707 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.326e-05/1.057, allocations: 7.938 kB / 1.032 GB, free: 7.699 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/1.058, allocations: 14.92 kB / 1.032 GB, free: 7.688 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.732e-05/1.058, allocations: 7.953 kB / 1.032 GB, free: 7.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/1.058, allocations: 15.3 kB / 1.032 GB, free: 7.668 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001033/1.058, allocations: 125.5 kB / 1.032 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.31e-07/1.058, allocations: 0 / 1.032 GB, free: 7.559 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002778/1.058, allocations: 35.91 kB / 1.032 GB, free: 7.523 MB / 0.6511 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) * 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.0009331/1.059, allocations: 0.9494 MB / 1.033 GB, free: 6.594 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0004071/1.059, allocations: 341.5 kB / 1.034 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/1.059, allocations: 0 / 1.034 GB, free: 6.242 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/1.06, allocations: 196.9 kB / 1.034 GB, free: 6.055 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/1.06, allocations: 11.88 kB / 1.034 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006697/1.061, allocations: 269.7 kB / 1.034 GB, free: 5.773 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/1.061, allocations: 0.7121 MB / 1.035 GB, free: 5.035 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.944e-05/1.061, allocations: 20.53 kB / 1.035 GB, free: 5.016 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.659e-05/1.061, allocations: 40.23 kB / 1.035 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/1.061, allocations: 0 / 1.035 GB, free: 4.996 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/1.077, allocations: 3.323 MB / 1.038 GB, free: 1.789 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002417/1.077, allocations: 170.1 kB / 1.038 GB, free: 1.559 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.836, allocations: 0 / 1.038 GB, free: 1.559 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)