Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.016/2.016, allocations: 390.5 MB / 398 MB, free: 10.95 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009181/0.0009181, allocations: 179.1 kB / 491.2 MB, free: 1.555 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 0.7868 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008084/0.0008085, allocations: 95.52 kB / 0.9269 GB, free: 13.84 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.802e-05/1.805e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.231, allocations: 143 MB / 1.212 GB, free: 39.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7876/1.019, allocations: 151.4 MB / 1.36 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/1.019, allocations: 82.09 kB / 1.36 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01278/1.032, allocations: 5.028 MB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.623e-06/1.032, allocations: 3.938 kB / 1.365 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.836e-05/1.032, allocations: 7.594 kB / 1.365 GB, free: 32.57 MB / 0.8386 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.0005373/1.032, allocations: 0.5199 MB / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/1.032, allocations: 11.53 kB / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/1.032, allocations: 15.41 kB / 1.366 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/1.033, allocations: 226.2 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/1.033, allocations: 3.844 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/1.033, allocations: 11.69 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001287/1.033, allocations: 46.73 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001521/1.033, allocations: 100.1 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-06/1.033, allocations: 0 / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/1.033, allocations: 3.844 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/1.033, allocations: 3.984 kB / 1.366 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000553/1.034, allocations: 395.4 kB / 1.367 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/1.034, allocations: 76.38 kB / 1.367 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.78e-05/1.034, allocations: 58.23 kB / 1.367 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/1.034, allocations: 6.688 kB / 1.367 GB, free: 31.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001562/1.034, allocations: 172.1 kB / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 2.424e-06/1.034, allocations: 0 / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0003507/1.034, allocations: 207.7 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/1.035, allocations: 171.9 kB / 1.367 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/1.035, allocations: 150.2 kB / 1.367 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.845e-05/1.035, allocations: 29.58 kB / 1.367 GB, free: 31.04 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.246e-05/1.035, allocations: 112.3 kB / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/1.035, allocations: 22.84 kB / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.313e-05/1.035, allocations: 3.75 kB / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.105e-05/1.035, allocations: 327.6 kB / 1.368 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.485e-05/1.035, allocations: 39.75 kB / 1.368 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.847e-05/1.035, allocations: 81.3 kB / 1.368 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.597e-05/1.035, allocations: 52.52 kB / 1.368 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.035, allocations: 7.812 kB / 1.368 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000271/1.035, allocations: 194.4 kB / 1.368 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.359e-05/1.035, allocations: 120.8 kB / 1.368 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.511e-06/1.035, allocations: 4.25 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/1.035, allocations: 3.906 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/1.036, allocations: 21.62 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/1.036, allocations: 3.344 kB / 1.368 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.351e-05/1.036, allocations: 17.64 kB / 1.368 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/1.036, allocations: 7.719 kB / 1.368 GB, free: 30.36 MB / 0.8386 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.0001006/1.036, allocations: 178 kB / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002676/1.036, allocations: 218.7 kB / 1.369 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.175e-05/1.036, allocations: 19.5 kB / 1.369 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.224e-05/1.036, allocations: 16.09 kB / 1.369 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/1.036, allocations: 0 / 1.369 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/1.036, allocations: 3.953 kB / 1.369 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/1.036, allocations: 0 / 1.369 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003857/1.037, allocations: 475.4 kB / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/1.037, allocations: 0 / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.203e-05/1.037, allocations: 14.73 kB / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/1.037, allocations: 3.875 kB / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/1.037, allocations: 10.67 kB / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.037, allocations: 7.891 kB / 1.369 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.037, allocations: 0 / 1.369 GB, free: 29.85 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002946/1.037, allocations: 305.4 kB / 1.37 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.653e-05/1.037, allocations: 84.89 kB / 1.37 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/1.037, allocations: 11.5 kB / 1.37 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001065/1.037, allocations: 14.78 kB / 1.37 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/1.037, allocations: 10.73 kB / 1.37 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.438e-05/1.037, allocations: 7.812 kB / 1.37 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.371e-05/1.037, allocations: 123.8 kB / 1.37 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.037, allocations: 0 / 1.37 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002576/1.038, allocations: 41.89 kB / 1.37 GB, free: 29.51 MB / 0.8386 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.0007186/1.038, allocations: 0.8607 MB / 1.371 GB, free: 28.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002498/1.039, allocations: 330.2 kB / 1.371 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/1.039, allocations: 64 / 1.371 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/1.039, allocations: 193.5 kB / 1.371 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/1.039, allocations: 20.23 kB / 1.371 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000535/1.04, allocations: 245.1 kB / 1.371 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002733/1.04, allocations: 0.7155 MB / 1.372 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.744e-05/1.04, allocations: 25.66 kB / 1.372 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.128e-05/1.04, allocations: 34.56 kB / 1.372 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.04, allocations: 3.938 kB / 1.372 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/1.061, allocations: 2.959 MB / 1.375 GB, free: 27.28 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001544/1.061, allocations: 139.8 kB / 1.375 GB, free: 27.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/2.544, allocations: 3.938 kB / 1.375 GB, free: 27.09 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)