Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001717, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6202/0.6202, allocations: 90.92 MB / 99.35 MB, free: 2.191 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.206/2.206, allocations: 221.5 MB / 343.2 MB, free: 1.523 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009829/0.000983, allocations: 91.92 kB / 415.9 MB, free: 11.08 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.897e-05/1.874e-05, allocations: 4 kB / 494.6 MB, free: 52.27 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1594/0.1595, allocations: 72.3 MB / 0.5536 GB, free: 12.16 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5283/0.6878, allocations: 102.9 MB / 0.6541 GB, free: 7.066 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/0.6881, allocations: 80.75 kB / 0.6542 GB, free: 7.02 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01313/0.7013, allocations: 5.031 MB / 0.6591 GB, free: 2.836 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.7013, allocations: 3.938 kB / 0.6591 GB, free: 2.832 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.246e-05/0.7013, allocations: 3.938 kB / 0.6591 GB, free: 2.828 MB / 458.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.0005639/0.7019, allocations: 0.5188 MB / 0.6596 GB, free: 2.254 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.702, allocations: 8.031 kB / 0.6596 GB, free: 2.246 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.118e-05/0.702, allocations: 23.77 kB / 0.6596 GB, free: 2.223 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.7023, allocations: 216.3 kB / 0.6599 GB, free: 1.984 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.7023, allocations: 4 kB / 0.6599 GB, free: 1.98 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.7024, allocations: 15.98 kB / 0.6599 GB, free: 1.965 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001315/0.7025, allocations: 47.3 kB / 0.6599 GB, free: 1.934 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.7027, allocations: 98.83 kB / 0.66 GB, free: 1.848 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.7027, allocations: 4 kB / 0.66 GB, free: 1.844 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.7027, allocations: 7.953 kB / 0.66 GB, free: 1.836 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.7028, allocations: 0 / 0.66 GB, free: 1.836 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.7034, allocations: 397.2 kB / 0.6604 GB, free: 1.457 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.7035, allocations: 77.61 kB / 0.6605 GB, free: 1.391 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/0.7036, allocations: 58.16 kB / 0.6605 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.7036, allocations: 7.688 kB / 0.6605 GB, free: 1.344 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001822/0.7038, allocations: 163.3 kB / 0.6607 GB, free: 1.176 MB / 458.7 MB Notification: Performance of pre-optimization done (n=10): time 2.695e-06/0.7038, allocations: 3.984 kB / 0.6607 GB, free: 1.172 MB / 458.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004015/0.7042, allocations: 208.4 kB / 0.6609 GB, free: 1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.449e-05/0.7043, allocations: 173.7 kB / 0.6611 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.7045, allocations: 146.2 kB / 0.6612 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 2.202e-05/0.7045, allocations: 29.7 kB / 0.6612 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.611e-05/0.7046, allocations: 109.7 kB / 0.6613 GB, free: 0.5273 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.7046, allocations: 26.92 kB / 0.6614 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.328e-05/0.7046, allocations: 4 kB / 0.6614 GB, free: 0.5 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.7047, allocations: 325 kB / 0.6617 GB, free: 184 kB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.86e-05/0.7048, allocations: 36.98 kB / 0.6617 GB, free: 160 kB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.548e-05/0.7049, allocations: 94.92 kB / 0.6618 GB, free: 56 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.431e-05/0.705, allocations: 50.09 kB / 0.6618 GB, free: 20 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.705, allocations: 0 / 0.6618 GB, free: 20 kB / 458.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003387/0.7054, allocations: 195.5 kB / 0.662 GB, free: 15.85 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.049e-05/0.7054, allocations: 110.8 kB / 0.6621 GB, free: 15.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.7055, allocations: 0 / 0.6621 GB, free: 15.72 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.7055, allocations: 4 kB / 0.6621 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.7056, allocations: 32.12 kB / 0.6622 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.7056, allocations: 7.984 kB / 0.6622 GB, free: 15.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.76e-05/0.7057, allocations: 15.28 kB / 0.6622 GB, free: 15.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.119e-05/0.7057, allocations: 8 kB / 0.6622 GB, free: 15.66 MB / 474.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 () * 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.0001312/0.7059, allocations: 186 kB / 0.6624 GB, free: 15.46 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003145/0.7062, allocations: 208.7 kB / 0.6626 GB, free: 15.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.969e-05/0.7062, allocations: 15.81 kB / 0.6626 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.112e-05/0.7063, allocations: 20.72 kB / 0.6626 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.7063, allocations: 4 kB / 0.6626 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.7063, allocations: 4 kB / 0.6626 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.7063, allocations: 0 / 0.6626 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004775/0.7068, allocations: 480.6 kB / 0.6631 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.7068, allocations: 0 / 0.6631 GB, free: 14.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.943e-05/0.7069, allocations: 19.92 kB / 0.6631 GB, free: 14.78 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.7069, allocations: 3.953 kB / 0.6631 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.877e-05/0.7069, allocations: 4 kB / 0.6631 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7069, allocations: 4 kB / 0.6631 GB, free: 14.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.7069, allocations: 3.938 kB / 0.6631 GB, free: 14.76 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.7073, allocations: 309.8 kB / 0.6634 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.7074, allocations: 88.92 kB / 0.6635 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.619e-05/0.7074, allocations: 7.953 kB / 0.6635 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.7075, allocations: 11.98 kB / 0.6635 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.7076, allocations: 11.17 kB / 0.6635 GB, free: 14.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.557e-05/0.7076, allocations: 8 kB / 0.6635 GB, free: 14.34 MB / 474.7 MB Notification: Performance of sorting global known variables: time 7.596e-05/0.7077, allocations: 121.2 kB / 0.6637 GB, free: 14.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7077, allocations: 0 / 0.6637 GB, free: 14.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002886/0.708, allocations: 34.75 kB / 0.6637 GB, free: 14.21 MB / 474.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) * 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.0007559/0.7087, allocations: 0.8672 MB / 0.6645 GB, free: 13.36 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0003475/0.7091, allocations: 328.3 kB / 0.6648 GB, free: 13.02 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.7091, allocations: 0 / 0.6648 GB, free: 13.02 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.7093, allocations: 189.5 kB / 0.665 GB, free: 12.84 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.7095, allocations: 25.69 kB / 0.665 GB, free: 12.82 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006039/0.7101, allocations: 249.7 kB / 0.6653 GB, free: 12.56 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002463/0.7104, allocations: 0.7152 MB / 0.666 GB, free: 11.82 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.445e-05/0.7105, allocations: 20.53 kB / 0.666 GB, free: 11.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.748e-05/0.7105, allocations: 35.42 kB / 0.666 GB, free: 11.79 MB / 474.7 MB Notification: Performance of SimCode: time 2.7e-07/0.7105, allocations: 4 kB / 0.666 GB, free: 11.78 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02112/0.7317, allocations: 2.955 MB / 0.6689 GB, free: 8.859 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001922/0.7319, allocations: 125.1 kB / 0.669 GB, free: 8.672 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.656/2.388, allocations: 0 / 0.669 GB, free: 8.672 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)