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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 92.88 kB / 16.02 MB, free: 84 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.001557/0.001557, allocations: 184.9 kB / 16.92 MB, free: 6.934 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.328/1.328, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6606/0.6606, allocations: 115.5 MB / 407.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003394, allocations: 8.625 kB / 496 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1476, allocations: 77.54 MB / 0.5601 GB, free: 8.918 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.001856/0.1495, allocations: 1.309 MB / 0.5613 GB, free: 7.598 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001044/0.1506, allocations: 0.6236 MB / 0.5619 GB, free: 6.969 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.004e-05/0.1507, allocations: 4 kB / 0.5619 GB, free: 6.965 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.1508, allocations: 19.88 kB / 0.562 GB, free: 6.945 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.151, allocations: 35.81 kB / 0.562 GB, free: 6.91 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004044/0.1515, allocations: 107.8 kB / 0.5621 GB, free: 6.805 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.1517, allocations: 151.7 kB / 0.5622 GB, free: 6.656 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1518, allocations: 29.09 kB / 0.5623 GB, free: 6.629 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.152, allocations: 71.77 kB / 0.5623 GB, free: 6.559 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.1521, allocations: 75.72 kB / 0.5624 GB, free: 6.484 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.1521, allocations: 4 kB / 0.5624 GB, free: 6.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.745e-05/0.1522, allocations: 27.92 kB / 0.5624 GB, free: 6.453 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.104e-05/0.1523, allocations: 23.92 kB / 0.5625 GB, free: 6.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.956e-05/0.1524, allocations: 89.41 kB / 0.5625 GB, free: 6.336 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.1526, allocations: 159.7 kB / 0.5627 GB, free: 6.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1526, allocations: 0 / 0.5627 GB, free: 6.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1527, allocations: 4 kB / 0.5627 GB, free: 6.176 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.1527, allocations: 0 / 0.5627 GB, free: 6.176 MB / 430.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.000671/0.1533, allocations: 0.5251 MB / 0.5632 GB, free: 5.578 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1534, allocations: 8.031 kB / 0.5632 GB, free: 5.57 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.55e-05/0.1534, allocations: 38.73 kB / 0.5633 GB, free: 5.523 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.487e-05/0.1535, allocations: 20.75 kB / 0.5633 GB, free: 5.504 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002799/0.1538, allocations: 232.2 kB / 0.5635 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.1538, allocations: 12.38 kB / 0.5635 GB, free: 5.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.1539, allocations: 20.31 kB / 0.5635 GB, free: 5.207 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1542, allocations: 117.5 kB / 0.5636 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.1542, allocations: 0 / 0.5636 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1542, allocations: 4 kB / 0.5637 GB, free: 5.082 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.1542, allocations: 0 / 0.5637 GB, free: 5.082 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000214/0.1544, allocations: 79.95 kB / 0.5637 GB, free: 5.004 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006745/0.1551, allocations: 424.5 kB / 0.5641 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.1553, allocations: 94.53 kB / 0.5642 GB, free: 4.438 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001608/0.1555, allocations: 80.81 kB / 0.5643 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.1555, allocations: 0 / 0.5643 GB, free: 4.355 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.1558, allocations: 186.8 kB / 0.5645 GB, free: 4.148 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.1558, allocations: 0 / 0.5645 GB, free: 4.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007296/0.1566, allocations: 364.9 kB / 0.5648 GB, free: 3.773 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.083e-05/0.1567, allocations: 166.2 kB / 0.565 GB, free: 3.574 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.1568, allocations: 182.5 kB / 0.5652 GB, free: 3.383 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.1569, allocations: 37.64 kB / 0.5652 GB, free: 3.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.302e-05/0.157, allocations: 112.3 kB / 0.5653 GB, free: 3.223 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.816e-05/0.157, allocations: 23.66 kB / 0.5653 GB, free: 3.199 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-05/0.157, allocations: 25.7 kB / 0.5653 GB, free: 3.168 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1571, allocations: 326.8 kB / 0.5657 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.1573, allocations: 55.97 kB / 0.5657 GB, free: 2.785 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.1575, allocations: 102.8 kB / 0.5658 GB, free: 2.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.1578, allocations: 324.9 kB / 0.5661 GB, free: 2.281 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1578, allocations: 0 / 0.5661 GB, free: 2.281 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005604/0.1584, allocations: 352.2 kB / 0.5665 GB, free: 1.906 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.1585, allocations: 123.1 kB / 0.5666 GB, free: 1.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1585, allocations: 3.938 kB / 0.5666 GB, free: 1.758 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.1585, allocations: 4 kB / 0.5666 GB, free: 1.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.1587, allocations: 23.92 kB / 0.5666 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1587, allocations: 0 / 0.5666 GB, free: 1.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.1588, allocations: 12.12 kB / 0.5666 GB, free: 1.719 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1588, allocations: 19.98 kB / 0.5666 GB, free: 1.699 MB / 430.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.0001501/0.159, allocations: 197.9 kB / 0.5668 GB, free: 1.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.986e-05/0.159, allocations: 15.81 kB / 0.5668 GB, free: 1.469 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.159, allocations: 21.39 kB / 0.5669 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.1591, allocations: 0 / 0.5669 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1591, allocations: 0 / 0.5669 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1591, allocations: 4 kB / 0.5669 GB, free: 1.445 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007816/0.1599, allocations: 0.5953 MB / 0.5674 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1599, allocations: 0 / 0.5674 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.981e-05/0.16, allocations: 15.98 kB / 0.5675 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.16, allocations: 0 / 0.5675 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.16, allocations: 11.98 kB / 0.5675 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.16, allocations: 0 / 0.5675 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.16, allocations: 8.094 kB / 0.5675 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005663/0.1606, allocations: 410.6 kB / 0.5679 GB, free: 324 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.484e-05/0.1606, allocations: 84.92 kB / 0.568 GB, free: 220 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.497e-05/0.1607, allocations: 15.94 kB / 0.568 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.1608, allocations: 15.98 kB / 0.568 GB, free: 188 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.069e-05/0.1609, allocations: 3.938 kB / 0.568 GB, free: 184 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.1609, allocations: 15.98 kB / 0.568 GB, free: 168 kB / 430.1 MB Notification: Performance of sorting global known variables: time 9.494e-05/0.161, allocations: 128.3 kB / 0.5681 GB, free: 40 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.161, allocations: 0 / 0.5681 GB, free: 40 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003057/0.1613, allocations: 39.98 kB / 0.5682 GB, free: 0 / 430.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.0009859/0.1623, allocations: 0.979 MB / 0.5691 GB, free: 14.99 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005032/0.1628, allocations: 373.4 kB / 0.5695 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1628, allocations: 0 / 0.5695 GB, free: 14.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.1631, allocations: 211.2 kB / 0.5697 GB, free: 14.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.1634, allocations: 23.94 kB / 0.5697 GB, free: 14.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1659, allocations: 2.152 MB / 0.5718 GB, free: 12.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.1662, allocations: 0.7043 MB / 0.5725 GB, free: 11.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.327e-05/0.1663, allocations: 28.47 kB / 0.5725 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.161e-05/0.1663, allocations: 35.42 kB / 0.5725 GB, free: 11.23 MB / 446.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1663, allocations: 0 / 0.5725 GB, free: 11.23 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07379/0.2401, allocations: 3.323 MB / 0.5758 GB, free: 8.055 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001972/0.2404, allocations: 196.6 kB / 0.576 GB, free: 7.797 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.389/2.63, allocations: 0 / 0.576 GB, free: 7.797 MB / 446.1 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/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)