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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 191.2 kB / 7.802 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4652/0.4652, allocations: 90.85 MB / 99.07 MB, free: 14.92 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 221.4 MB / 342.8 MB, free: 5.422 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 95.09 kB / 415.5 MB, free: 6.449 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1689/0.17, allocations: 78.45 MB / 494 MB, free: 7.988 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.5528, allocations: 72.31 MB / 0.553 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.6715, allocations: 102.8 MB / 0.6534 GB, free: 7.199 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.6719, allocations: 76.55 kB / 0.6535 GB, free: 7.125 MB / 474.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.01495/0.6868, allocations: 5.204 MB / 0.6586 GB, free: 1.879 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.6869, allocations: 12 kB / 0.6586 GB, free: 1.867 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.687, allocations: 16.38 kB / 0.6586 GB, free: 1.852 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004258/0.6874, allocations: 239.5 kB / 0.6588 GB, free: 1.574 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.6875, allocations: 7.984 kB / 0.6588 GB, free: 1.566 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.743e-05/0.6875, allocations: 12.72 kB / 0.6588 GB, free: 1.555 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001654/0.6877, allocations: 39.98 kB / 0.6589 GB, free: 1.516 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002396/0.6879, allocations: 99.77 kB / 0.659 GB, free: 1.414 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.6879, allocations: 0.75 kB / 0.659 GB, free: 1.414 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.209e-05/0.688, allocations: 4 kB / 0.659 GB, free: 1.41 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.688, allocations: 0.9062 kB / 0.659 GB, free: 1.41 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007365/0.6887, allocations: 408.5 kB / 0.6594 GB, free: 0.9766 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.6889, allocations: 80.78 kB / 0.6594 GB, free: 0.8906 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.689, allocations: 68.73 kB / 0.6595 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.6891, allocations: 0 / 0.6595 GB, free: 0.8203 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.6893, allocations: 164.4 kB / 0.6597 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of pre-optimization done (n=10): time 3.316e-06/0.6893, allocations: 0 / 0.6597 GB, free: 0.6367 MB / 474.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003884/0.6897, allocations: 162.6 kB / 0.6598 GB, free: 484 kB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.6898, allocations: 171 kB / 0.66 GB, free: 276 kB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.69, allocations: 143.6 kB / 0.6601 GB, free: 124 kB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.69, allocations: 33.7 kB / 0.6601 GB, free: 84 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8e-05/0.6901, allocations: 101.1 kB / 0.6602 GB, free: 15.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.6901, allocations: 27.77 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.6902, allocations: 0.5938 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.6903, allocations: 323.3 kB / 0.6606 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.719e-05/0.6904, allocations: 40.48 kB / 0.6606 GB, free: 15.59 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.6905, allocations: 88.41 kB / 0.6607 GB, free: 15.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.6906, allocations: 57.2 kB / 0.6608 GB, free: 15.43 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.6907, allocations: 1.406 kB / 0.6608 GB, free: 15.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003187/0.691, allocations: 162.9 kB / 0.6609 GB, free: 15.26 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.691, allocations: 5.688 kB / 0.6609 GB, free: 15.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.691, allocations: 0 / 0.6609 GB, free: 15.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.691, allocations: 4 kB / 0.6609 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.6912, allocations: 24.58 kB / 0.6609 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.6912, allocations: 8.562 kB / 0.661 GB, free: 15.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001189/0.6913, allocations: 14.59 kB / 0.661 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.6914, allocations: 8 kB / 0.661 GB, free: 15.2 MB / 490.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.0001408/0.6915, allocations: 177.2 kB / 0.6611 GB, free: 15.01 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.464e-05/0.6915, allocations: 16.53 kB / 0.6612 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.895e-05/0.6916, allocations: 17.39 kB / 0.6612 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.6916, allocations: 0.6562 kB / 0.6612 GB, free: 14.98 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.6916, allocations: 4.5 kB / 0.6612 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.6916, allocations: 0 / 0.6612 GB, free: 14.97 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005205/0.6922, allocations: 429.2 kB / 0.6616 GB, free: 14.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6922, allocations: 0 / 0.6616 GB, free: 14.51 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.751e-05/0.6923, allocations: 17.11 kB / 0.6616 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.6923, allocations: 4 kB / 0.6616 GB, free: 14.49 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.6923, allocations: 9.375 kB / 0.6616 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.6923, allocations: 0 / 0.6616 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.6923, allocations: 5.688 kB / 0.6616 GB, free: 14.48 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003335/0.6927, allocations: 259.2 kB / 0.6619 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004603/0.6931, allocations: 0.6325 MB / 0.6625 GB, free: 13.56 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.6932, allocations: 88.92 kB / 0.6626 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.6933, allocations: 10.19 kB / 0.6626 GB, free: 13.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.6934, allocations: 11.98 kB / 0.6626 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.538e-05/0.6935, allocations: 3.984 kB / 0.6626 GB, free: 13.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/0.6935, allocations: 15.98 kB / 0.6626 GB, free: 13.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.871e-05/0.6936, allocations: 119.5 kB / 0.6627 GB, free: 13.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008874/0.6945, allocations: 43.98 kB / 0.6628 GB, free: 13.25 MB / 490.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.0002416/0.6947, allocations: 126.6 kB / 0.6629 GB, free: 13.13 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003212/0.6951, allocations: 219 kB / 0.6631 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6951, allocations: 4.188 kB / 0.6631 GB, free: 12.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.6953, allocations: 135.4 kB / 0.6632 GB, free: 12.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.6955, allocations: 20.08 kB / 0.6632 GB, free: 12.72 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005178/0.696, allocations: 194.8 kB / 0.6634 GB, free: 12.51 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.6964, allocations: 0.7309 MB / 0.6641 GB, free: 11.75 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6964, allocations: 4 kB / 0.6642 GB, free: 11.75 MB / 490.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)