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.002023/0.002023, allocations: 104.9 kB / 16.4 MB, free: 6.496 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.00231/0.002311, allocations: 192 kB / 17.34 MB, free: 5.727 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.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8165/0.8165, allocations: 126.7 MB / 417.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.19 kB / 0.5735 GB, free: 27.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1416, allocations: 78.86 MB / 0.6505 GB, free: 3.602 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002819/0.1445, allocations: 1.608 MB / 0.6521 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000992/0.1455, allocations: 0.6117 MB / 0.6527 GB, free: 1.363 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.323e-05/0.1456, allocations: 4 kB / 0.6527 GB, free: 1.359 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1457, allocations: 19.8 kB / 0.6527 GB, free: 1.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.146, allocations: 45.12 kB / 0.6528 GB, free: 1.297 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003867/0.1464, allocations: 107.8 kB / 0.6529 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002994/0.1467, allocations: 203.6 kB / 0.6531 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1468, allocations: 25.05 kB / 0.6531 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.147, allocations: 87.75 kB / 0.6532 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.1471, allocations: 87.72 kB / 0.6533 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.471e-05/0.1472, allocations: 12 kB / 0.6533 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.067e-05/0.1473, allocations: 24 kB / 0.6533 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.241e-05/0.1474, allocations: 27.91 kB / 0.6533 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1475, allocations: 75.66 kB / 0.6534 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.1478, allocations: 175.6 kB / 0.6536 GB, free: 500 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1478, allocations: 0 / 0.6536 GB, free: 500 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1478, allocations: 0 / 0.6536 GB, free: 500 kB / 494.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.1478, allocations: 3.984 kB / 0.6536 GB, free: 496 kB / 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.0008056/0.1486, allocations: 0.5601 MB / 0.6541 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.1486, allocations: 8.031 kB / 0.6541 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.1487, allocations: 46.61 kB / 0.6542 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.949e-05/0.1488, allocations: 20.84 kB / 0.6542 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003679/0.1491, allocations: 236.3 kB / 0.6544 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.563e-05/0.1492, allocations: 8.359 kB / 0.6544 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.1492, allocations: 16.38 kB / 0.6544 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002852/0.1495, allocations: 121.5 kB / 0.6546 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.1495, allocations: 0 / 0.6546 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/0.1495, allocations: 8 kB / 0.6546 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.1496, allocations: 7.938 kB / 0.6546 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.1498, allocations: 63.94 kB / 0.6546 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006689/0.1504, allocations: 420.5 kB / 0.655 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.1507, allocations: 90.53 kB / 0.6551 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.1508, allocations: 76.81 kB / 0.6552 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.1509, allocations: 4 kB / 0.6552 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.1512, allocations: 170.7 kB / 0.6554 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 3.486e-06/0.1512, allocations: 4.094 kB / 0.6554 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007535/0.1519, allocations: 356.9 kB / 0.6557 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.1521, allocations: 166.2 kB / 0.6559 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.1523, allocations: 182.6 kB / 0.656 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.1523, allocations: 37.64 kB / 0.6561 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.386e-05/0.1524, allocations: 112.3 kB / 0.6562 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/0.1524, allocations: 19.86 kB / 0.6562 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.29e-05/0.1525, allocations: 41.7 kB / 0.6562 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1526, allocations: 334.8 kB / 0.6566 GB, free: 13.12 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1528, allocations: 43.97 kB / 0.6566 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.153, allocations: 102.8 kB / 0.6567 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004787/0.1535, allocations: 316.9 kB / 0.657 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1535, allocations: 0 / 0.657 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005733/0.1541, allocations: 344.1 kB / 0.6573 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.197e-05/0.1542, allocations: 122.8 kB / 0.6574 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1542, allocations: 256 / 0.6574 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1542, allocations: 8 kB / 0.6574 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.1543, allocations: 19.92 kB / 0.6575 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.1543, allocations: 4 kB / 0.6575 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.1545, allocations: 19.89 kB / 0.6575 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1545, allocations: 8 kB / 0.6575 GB, free: 12.01 MB / 0.4981 GB 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.0001847/0.1547, allocations: 208.5 kB / 0.6577 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.437e-05/0.1547, allocations: 15.91 kB / 0.6577 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.1548, allocations: 17.69 kB / 0.6577 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.1548, allocations: 4 kB / 0.6577 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1548, allocations: 0 / 0.6577 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.1548, allocations: 7.938 kB / 0.6577 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007694/0.1556, allocations: 0.5798 MB / 0.6583 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1556, allocations: 0 / 0.6583 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.616e-05/0.1556, allocations: 11.98 kB / 0.6583 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1557, allocations: 0 / 0.6583 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.079e-05/0.1557, allocations: 8 kB / 0.6583 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1557, allocations: 4 kB / 0.6583 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1557, allocations: 3.938 kB / 0.6583 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005871/0.1563, allocations: 402.7 kB / 0.6587 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.086e-05/0.1564, allocations: 96.94 kB / 0.6588 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1564, allocations: 8 kB / 0.6588 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.1565, allocations: 12 kB / 0.6588 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.827e-05/0.1566, allocations: 11.92 kB / 0.6588 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.1566, allocations: 12 kB / 0.6589 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001058/0.1567, allocations: 127.2 kB / 0.659 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1567, allocations: 0 / 0.659 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002898/0.157, allocations: 36 kB / 0.659 GB, free: 10.33 MB / 0.4981 GB 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.001029/0.1581, allocations: 0.9681 MB / 0.66 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005321/0.1586, allocations: 361.8 kB / 0.6603 GB, free: 8.926 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1586, allocations: 4.125 kB / 0.6603 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.1589, allocations: 198.8 kB / 0.6605 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003051/0.1592, allocations: 27.92 kB / 0.6605 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.1619, allocations: 2.105 MB / 0.6626 GB, free: 6.426 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.1622, allocations: 0.7118 MB / 0.6633 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.444e-05/0.1623, allocations: 16.55 kB / 0.6633 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.403e-05/0.1624, allocations: 47.36 kB / 0.6633 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1624, allocations: 0 / 0.6633 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.1872, allocations: 3.617 MB / 0.6669 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/8.095, allocations: 7.234 kB / 0.6669 GB, free: 2.09 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)