Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008386/0.000842, allocations: 98.27 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006257/0.006257, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001635/0.001635, allocations: 262.9 kB / 291.7 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8956/0.8956, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.0003802, allocations: 10.12 kB / 0.5988 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1342, allocations: 88.54 MB / 0.6852 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.001542/0.1358, allocations: 1.313 MB / 0.6865 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007994/0.1366, allocations: 0.6149 MB / 0.6871 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.662e-05/0.1366, allocations: 9.125 kB / 0.6871 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.1368, allocations: 19.91 kB / 0.6871 GB, free: 13 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.1369, allocations: 35.83 kB / 0.6872 GB, free: 12.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.1372, allocations: 101.4 kB / 0.6873 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001472/0.1374, allocations: 163.6 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001011/0.1375, allocations: 43.48 kB / 0.6875 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1376, allocations: 63.83 kB / 0.6875 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.1377, allocations: 85.22 kB / 0.6876 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.554e-05/0.1378, allocations: 4 kB / 0.6876 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.349e-05/0.1378, allocations: 27.92 kB / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.24e-05/0.1379, allocations: 27.91 kB / 0.6877 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.607e-05/0.138, allocations: 94.11 kB / 0.6878 GB, free: 12.37 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001669/0.1382, allocations: 147.5 kB / 0.6879 GB, free: 12.22 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.1382, allocations: 0.5938 kB / 0.6879 GB, free: 12.22 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1382, allocations: 0 / 0.6879 GB, free: 12.22 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.136e-06/0.1382, allocations: 2.688 kB / 0.6879 GB, free: 12.22 MB / 494.1 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.0004993/0.1387, allocations: 0.5252 MB / 0.6884 GB, free: 11.62 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1387, allocations: 8.031 kB / 0.6884 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.1388, allocations: 38.75 kB / 0.6885 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.1388, allocations: 22.59 kB / 0.6885 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.1391, allocations: 225.5 kB / 0.6887 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1391, allocations: 16.31 kB / 0.6887 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.1391, allocations: 12.38 kB / 0.6887 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.1394, allocations: 123.2 kB / 0.6888 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.1394, allocations: 0 / 0.6888 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.1394, allocations: 8.859 kB / 0.6889 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-06/0.1394, allocations: 0 / 0.6889 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.1396, allocations: 78.08 kB / 0.6889 GB, free: 11.06 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.1402, allocations: 429.7 kB / 0.6893 GB, free: 10.59 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001735/0.1403, allocations: 90.53 kB / 0.6894 GB, free: 10.49 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1405, allocations: 80.83 kB / 0.6895 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.1405, allocations: 3.984 kB / 0.6895 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.1408, allocations: 186.9 kB / 0.6897 GB, free: 10.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1408, allocations: 0 / 0.6897 GB, free: 10.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006404/0.1414, allocations: 365 kB / 0.69 GB, free: 9.824 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.1415, allocations: 162.2 kB / 0.6902 GB, free: 9.629 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.1417, allocations: 174.7 kB / 0.6903 GB, free: 9.445 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.1417, allocations: 29.7 kB / 0.6904 GB, free: 9.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.1417, allocations: 112.3 kB / 0.6905 GB, free: 9.293 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.746e-05/0.1418, allocations: 31.62 kB / 0.6905 GB, free: 9.262 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.1418, allocations: 29.72 kB / 0.6905 GB, free: 9.227 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.54e-05/0.1419, allocations: 322.8 kB / 0.6909 GB, free: 8.902 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.142, allocations: 59.95 kB / 0.6909 GB, free: 8.844 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001498/0.1422, allocations: 106.8 kB / 0.691 GB, free: 8.715 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.1425, allocations: 316.9 kB / 0.6913 GB, free: 8.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1425, allocations: 0 / 0.6913 GB, free: 8.344 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004915/0.143, allocations: 356.1 kB / 0.6917 GB, free: 7.965 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.843e-05/0.1431, allocations: 118.8 kB / 0.6918 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.1431, allocations: 0 / 0.6918 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.1431, allocations: 4 kB / 0.6918 GB, free: 7.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.966e-05/0.1432, allocations: 28.23 kB / 0.6918 GB, free: 7.793 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.1432, allocations: 3.938 kB / 0.6918 GB, free: 7.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.465e-05/0.1433, allocations: 15.91 kB / 0.6918 GB, free: 7.773 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.1434, allocations: 8 kB / 0.6918 GB, free: 7.766 MB / 494.1 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.1435, allocations: 208.4 kB / 0.692 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.1435, allocations: 19.75 kB / 0.692 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.093e-05/0.1436, allocations: 17.39 kB / 0.6921 GB, free: 7.508 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1436, allocations: 0 / 0.6921 GB, free: 7.508 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1436, allocations: 4 kB / 0.6921 GB, free: 7.504 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.1436, allocations: 4 kB / 0.6921 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006416/0.1442, allocations: 0.5915 MB / 0.6926 GB, free: 6.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1443, allocations: 0 / 0.6926 GB, free: 6.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.85e-05/0.1443, allocations: 19.98 kB / 0.6927 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1443, allocations: 0 / 0.6927 GB, free: 6.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1444, allocations: 8 kB / 0.6927 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1444, allocations: 0 / 0.6927 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1444, allocations: 7.875 kB / 0.6927 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.1449, allocations: 414.6 kB / 0.6931 GB, free: 6.371 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.1449, allocations: 92.91 kB / 0.6932 GB, free: 6.262 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.145, allocations: 4 kB / 0.6932 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.1451, allocations: 12 kB / 0.6932 GB, free: 6.246 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.264e-05/0.1451, allocations: 11.92 kB / 0.6932 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.1451, allocations: 11.98 kB / 0.6932 GB, free: 6.223 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.759e-05/0.1452, allocations: 133.4 kB / 0.6933 GB, free: 6.094 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.1452, allocations: 0 / 0.6933 GB, free: 6.094 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002714/0.1455, allocations: 39.94 kB / 0.6934 GB, free: 6.055 MB / 494.1 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) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00079/0.1463, allocations: 0.9554 MB / 0.6943 GB, free: 5.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.1467, allocations: 373.6 kB / 0.6947 GB, free: 4.656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1467, allocations: 4 kB / 0.6947 GB, free: 4.652 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002197/0.147, allocations: 206.7 kB / 0.6949 GB, free: 4.426 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.1473, allocations: 26.03 kB / 0.6949 GB, free: 4.402 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.1494, allocations: 2.159 MB / 0.697 GB, free: 2.098 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002042/0.1496, allocations: 0.7082 MB / 0.6977 GB, free: 1.363 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.965e-05/0.1497, allocations: 20.48 kB / 0.6977 GB, free: 1.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.285e-05/0.1497, allocations: 31.42 kB / 0.6977 GB, free: 1.309 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1497, allocations: 0 / 0.6977 GB, free: 1.309 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4046/0.5543, allocations: 3.38 MB / 0.701 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002633/0.5546, allocations: 203.2 kB / 0.7012 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.841/2.395, allocations: 3.938 kB / 0.7012 GB, free: 13.84 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_CSVWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)