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.001657/0.001657, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002103/0.002104, allocations: 282.7 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.951/0.951, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 95.52 kB / 0.5953 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1433, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.003386/0.1467, allocations: 1.598 MB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009558/0.1477, allocations: 0.6068 MB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.904e-05/0.1478, allocations: 3.938 kB / 0.6824 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1479, allocations: 20.47 kB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.1481, allocations: 40.25 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004545/0.1486, allocations: 116.5 kB / 0.6826 GB, free: 14.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.1489, allocations: 204.8 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.149, allocations: 43.17 kB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001765/0.1492, allocations: 83.81 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1493, allocations: 83.72 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.1494, allocations: 12 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.609e-05/0.1495, allocations: 28 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.214e-05/0.1496, allocations: 19.92 kB / 0.6831 GB, free: 13.72 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.1497, allocations: 83.64 kB / 0.6831 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002311/0.1499, allocations: 159.5 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1499, allocations: 0 / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1499, allocations: 3.938 kB / 0.6833 GB, free: 13.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.15, allocations: 0 / 0.6833 GB, free: 13.48 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.0006204/0.1506, allocations: 0.5603 MB / 0.6839 GB, free: 12.85 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1506, allocations: 8.031 kB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.765e-05/0.1507, allocations: 38.73 kB / 0.6839 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.948e-05/0.1507, allocations: 20.75 kB / 0.6839 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.151, allocations: 224.3 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.151, allocations: 12.31 kB / 0.6841 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.1511, allocations: 16.38 kB / 0.6842 GB, free: 12.49 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.1513, allocations: 121.5 kB / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.1514, allocations: 0 / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1514, allocations: 8 kB / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1514, allocations: 0 / 0.6843 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.1516, allocations: 63.95 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.1522, allocations: 424.4 kB / 0.6847 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001909/0.1524, allocations: 90.53 kB / 0.6848 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1526, allocations: 76.81 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.1526, allocations: 0 / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.1528, allocations: 186.9 kB / 0.6851 GB, free: 11.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1529, allocations: 3.938 kB / 0.6851 GB, free: 11.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006921/0.1536, allocations: 344.8 kB / 0.6854 GB, free: 11.09 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.1537, allocations: 174.1 kB / 0.6856 GB, free: 10.88 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.1538, allocations: 167.8 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1539, allocations: 33.7 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.121e-05/0.1539, allocations: 116.3 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.154, allocations: 27.64 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.017e-05/0.154, allocations: 41.7 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1542, allocations: 330.8 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.1543, allocations: 47.95 kB / 0.6863 GB, free: 10.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1545, allocations: 102.8 kB / 0.6864 GB, free: 9.969 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.1548, allocations: 316.9 kB / 0.6867 GB, free: 9.598 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1548, allocations: 0 / 0.6867 GB, free: 9.598 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005176/0.1553, allocations: 340.3 kB / 0.687 GB, free: 9.234 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.76e-05/0.1554, allocations: 122.8 kB / 0.6872 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1554, allocations: 4 kB / 0.6872 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.1555, allocations: 0 / 0.6872 GB, free: 9.086 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.1556, allocations: 19.98 kB / 0.6872 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.1556, allocations: 0 / 0.6872 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.1557, allocations: 19.98 kB / 0.6872 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.1557, allocations: 8 kB / 0.6872 GB, free: 9.039 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.0001449/0.1559, allocations: 203.3 kB / 0.6874 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.814e-05/0.1559, allocations: 27.75 kB / 0.6874 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.502e-05/0.156, allocations: 21.39 kB / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.156, allocations: 0 / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.156, allocations: 0 / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.156, allocations: 0 / 0.6874 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.1567, allocations: 0.5876 MB / 0.688 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.1567, allocations: 0 / 0.688 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.326e-05/0.1567, allocations: 12.28 kB / 0.688 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1568, allocations: 0 / 0.688 GB, free: 8.105 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.1568, allocations: 7.984 kB / 0.688 GB, free: 8.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1568, allocations: 3.938 kB / 0.688 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.1568, allocations: 7.938 kB / 0.688 GB, free: 8.086 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/0.1573, allocations: 402.6 kB / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.1574, allocations: 88.92 kB / 0.6885 GB, free: 7.559 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.1574, allocations: 12 kB / 0.6885 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.1575, allocations: 7.984 kB / 0.6885 GB, free: 7.539 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.447e-05/0.1576, allocations: 11.92 kB / 0.6885 GB, free: 7.527 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.1576, allocations: 12 kB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.932e-05/0.1577, allocations: 128.3 kB / 0.6887 GB, free: 7.391 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1577, allocations: 0 / 0.6887 GB, free: 7.391 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.158, allocations: 36 kB / 0.6887 GB, free: 7.355 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.0008752/0.1589, allocations: 0.9634 MB / 0.6897 GB, free: 6.359 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004702/0.1594, allocations: 365.4 kB / 0.69 GB, free: 5.953 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1594, allocations: 0 / 0.69 GB, free: 5.953 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002263/0.1596, allocations: 210.7 kB / 0.6902 GB, free: 5.723 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003033/0.16, allocations: 26.06 kB / 0.6902 GB, free: 5.699 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.1623, allocations: 2.102 MB / 0.6923 GB, free: 3.445 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002282/0.1625, allocations: 0.708 MB / 0.693 GB, free: 2.711 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.655e-05/0.1626, allocations: 24.53 kB / 0.693 GB, free: 2.688 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.937e-05/0.1627, allocations: 31.42 kB / 0.693 GB, free: 2.656 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1627, allocations: 0 / 0.693 GB, free: 2.656 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3299/0.4926, allocations: 3.616 MB / 0.6966 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.505/8.998, allocations: 6.5 kB / 0.6966 GB, free: 15.15 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)