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.00123/0.001229, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001245/0.001245, allocations: 190.5 kB / 16.25 MB, free: 6.625 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.191/1.191, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001894/0.001894, allocations: 286.7 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8198/0.8198, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001493, allocations: 94.53 kB / 0.5948 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1245, allocations: 86.98 MB / 0.6797 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002484/0.127, allocations: 1.652 MB / 0.6814 GB, free: 15.3 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007539/0.1278, allocations: 0.6032 MB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.565e-05/0.1278, allocations: 3.938 kB / 0.6819 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001247/0.128, allocations: 19.92 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.1281, allocations: 35.83 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.1285, allocations: 107.8 kB / 0.6821 GB, free: 14.54 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.1287, allocations: 191.6 kB / 0.6823 GB, free: 14.35 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.803e-05/0.1288, allocations: 41.14 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.1289, allocations: 83.81 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001032/0.129, allocations: 87.72 kB / 0.6825 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.1291, allocations: 12 kB / 0.6825 GB, free: 14.13 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.272e-05/0.1291, allocations: 31.98 kB / 0.6825 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.1292, allocations: 23.92 kB / 0.6826 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.536e-05/0.1293, allocations: 79.58 kB / 0.6826 GB, free: 14 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001796/0.1295, allocations: 163.5 kB / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1295, allocations: 0 / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1295, allocations: 0 / 0.6828 GB, free: 13.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.1295, allocations: 0 / 0.6828 GB, free: 13.84 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.0005534/0.13, allocations: 0.5564 MB / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.03e-05/0.1301, allocations: 12.03 kB / 0.6833 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.016e-05/0.1301, allocations: 38.75 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.1302, allocations: 20.75 kB / 0.6834 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.1304, allocations: 224.7 kB / 0.6836 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.1304, allocations: 16.36 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.645e-05/0.1305, allocations: 8.375 kB / 0.6836 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002399/0.1307, allocations: 129.5 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/0.1307, allocations: 0 / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.1307, allocations: 4 kB / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1308, allocations: 0 / 0.6838 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001731/0.1309, allocations: 71.94 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005407/0.1315, allocations: 420.4 kB / 0.6842 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001604/0.1317, allocations: 86.53 kB / 0.6843 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.1318, allocations: 80.8 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.79e-05/0.1318, allocations: 0 / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.1321, allocations: 190.9 kB / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.342e-06/0.1321, allocations: 0 / 0.6846 GB, free: 11.79 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006239/0.1327, allocations: 352.6 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/0.1328, allocations: 166.2 kB / 0.6851 GB, free: 11.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1329, allocations: 166.7 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.133, allocations: 33.7 kB / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/0.133, allocations: 116.3 kB / 0.6854 GB, free: 10.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.1331, allocations: 27.64 kB / 0.6854 GB, free: 10.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/0.1331, allocations: 41.7 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.172e-05/0.1332, allocations: 326.8 kB / 0.6857 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001181/0.1334, allocations: 51.97 kB / 0.6858 GB, free: 10.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.1335, allocations: 105.5 kB / 0.6859 GB, free: 10.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.1338, allocations: 312.9 kB / 0.6862 GB, free: 9.953 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.1338, allocations: 4 kB / 0.6862 GB, free: 9.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004668/0.1343, allocations: 344.2 kB / 0.6865 GB, free: 9.582 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.421e-05/0.1344, allocations: 122.8 kB / 0.6866 GB, free: 9.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1344, allocations: 8 kB / 0.6867 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.836e-06/0.1344, allocations: 0 / 0.6867 GB, free: 9.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.1345, allocations: 19.98 kB / 0.6867 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.748e-06/0.1345, allocations: 0 / 0.6867 GB, free: 9.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.873e-05/0.1346, allocations: 8 kB / 0.6867 GB, free: 9.402 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1346, allocations: 15.98 kB / 0.6867 GB, free: 9.387 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.000133/0.1348, allocations: 207.3 kB / 0.6869 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.112e-05/0.1348, allocations: 23.81 kB / 0.6869 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/0.1348, allocations: 9.406 kB / 0.6869 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1348, allocations: 4 kB / 0.6869 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.1349, allocations: 0 / 0.6869 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1349, allocations: 3.984 kB / 0.6869 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006302/0.1355, allocations: 0.5798 MB / 0.6875 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1355, allocations: 0 / 0.6875 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.458e-05/0.1356, allocations: 19.98 kB / 0.6875 GB, free: 8.457 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1356, allocations: 0 / 0.6875 GB, free: 8.457 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.1356, allocations: 4 kB / 0.6875 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.1356, allocations: 0 / 0.6875 GB, free: 8.453 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.1356, allocations: 11.91 kB / 0.6875 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004995/0.1361, allocations: 410.8 kB / 0.6879 GB, free: 8.012 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.1362, allocations: 88.92 kB / 0.688 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.1362, allocations: 8 kB / 0.688 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1363, allocations: 8 kB / 0.688 GB, free: 7.891 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.1364, allocations: 11.92 kB / 0.688 GB, free: 7.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1364, allocations: 4 kB / 0.688 GB, free: 7.875 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.941e-05/0.1365, allocations: 137.3 kB / 0.6882 GB, free: 7.742 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1365, allocations: 0 / 0.6882 GB, free: 7.742 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.1368, allocations: 36 kB / 0.6882 GB, free: 7.707 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.0007943/0.1376, allocations: 0.9468 MB / 0.6891 GB, free: 6.727 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004279/0.138, allocations: 377.4 kB / 0.6895 GB, free: 6.309 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.138, allocations: 0 / 0.6895 GB, free: 6.309 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002118/0.1382, allocations: 202.7 kB / 0.6897 GB, free: 6.086 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.1385, allocations: 39.8 kB / 0.6897 GB, free: 6.047 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1406, allocations: 2.125 MB / 0.6918 GB, free: 3.77 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.1409, allocations: 0.708 MB / 0.6925 GB, free: 3.035 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.55e-05/0.1409, allocations: 20.55 kB / 0.6925 GB, free: 3.016 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.209e-05/0.141, allocations: 35.42 kB / 0.6925 GB, free: 2.98 MB / 494.1 MB Notification: Performance of SimCode: time 2.81e-07/0.141, allocations: 4 kB / 0.6925 GB, free: 2.977 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3217/0.4627, allocations: 3.529 MB / 0.696 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002666/0.463, allocations: 211.3 kB / 0.6962 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.82, allocations: 0 / 0.6962 GB, free: 15.36 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)