Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_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.005096/0.005096, allocations: 97.69 kB / 15.73 MB, free: 6.062 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.00117/0.00117, allocations: 197.9 kB / 16.67 MB, free: 5.965 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8125/0.8125, allocations: 135.1 MB / 425.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 65.77 kB / 0.5851 GB, free: 21.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1456, allocations: 80.91 MB / 0.6641 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003307/0.1489, allocations: 1.605 MB / 0.6657 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001089/0.15, allocations: 0.6118 MB / 0.6663 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.1502, allocations: 3.938 kB / 0.6663 GB, free: 4.098 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001895/0.1504, allocations: 27.78 kB / 0.6663 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002316/0.1506, allocations: 42.64 kB / 0.6664 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004045/0.1511, allocations: 119.7 kB / 0.6665 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.1513, allocations: 191.6 kB / 0.6667 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.1515, allocations: 32.78 kB / 0.6667 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.1516, allocations: 79.77 kB / 0.6668 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001401/0.1518, allocations: 87.72 kB / 0.6669 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.254e-05/0.1518, allocations: 16 kB / 0.6669 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.966e-05/0.1519, allocations: 35.97 kB / 0.6669 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/0.152, allocations: 23.92 kB / 0.6669 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.1521, allocations: 79.64 kB / 0.667 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.1524, allocations: 171.5 kB / 0.6672 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1524, allocations: 0 / 0.6672 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.974e-06/0.1524, allocations: 0 / 0.6672 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.251e-05/0.1524, allocations: 0 / 0.6672 GB, free: 3.207 MB / 0.4981 GB 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.0006903/0.1531, allocations: 0.5601 MB / 0.6677 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1532, allocations: 13.11 kB / 0.6677 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.935e-05/0.1532, allocations: 34.75 kB / 0.6678 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.088e-05/0.1533, allocations: 16.84 kB / 0.6678 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000352/0.1537, allocations: 240.3 kB / 0.668 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1537, allocations: 8.375 kB / 0.668 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.34e-05/0.1537, allocations: 16.38 kB / 0.668 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.154, allocations: 117.5 kB / 0.6681 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.154, allocations: 0 / 0.6681 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.154, allocations: 4 kB / 0.6682 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.303e-06/0.1541, allocations: 0 / 0.6682 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002/0.1543, allocations: 67.95 kB / 0.6682 GB, free: 2.016 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006509/0.1549, allocations: 420.5 kB / 0.6686 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.1551, allocations: 94.53 kB / 0.6687 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.1553, allocations: 76.81 kB / 0.6688 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.288e-05/0.1553, allocations: 3.984 kB / 0.6688 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1556, allocations: 178.8 kB / 0.669 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1556, allocations: 3.938 kB / 0.669 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007062/0.1563, allocations: 356.9 kB / 0.6693 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.1564, allocations: 170.2 kB / 0.6695 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.1566, allocations: 168 kB / 0.6696 GB, free: 432 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.1566, allocations: 33.7 kB / 0.6697 GB, free: 392 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.1567, allocations: 116.2 kB / 0.6698 GB, free: 268 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.1567, allocations: 23.84 kB / 0.6698 GB, free: 244 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.141e-05/0.1568, allocations: 45.7 kB / 0.6698 GB, free: 192 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001098/0.1569, allocations: 330.8 kB / 0.6701 GB, free: 15.86 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.157, allocations: 51.95 kB / 0.6702 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.1572, allocations: 98.83 kB / 0.6703 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.1575, allocations: 316.9 kB / 0.6706 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1575, allocations: 0 / 0.6706 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005137/0.1581, allocations: 348.1 kB / 0.6709 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 6.36e-05/0.1581, allocations: 118.8 kB / 0.671 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1582, allocations: 4.25 kB / 0.671 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1582, allocations: 8 kB / 0.6711 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.1583, allocations: 15.98 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.1583, allocations: 8 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001129/0.1584, allocations: 27.88 kB / 0.6711 GB, free: 14.74 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.1585, allocations: 8 kB / 0.6711 GB, free: 14.73 MB / 0.5137 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.0001384/0.1586, allocations: 196.4 kB / 0.6713 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1587, allocations: 19.91 kB / 0.6713 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.1587, allocations: 21.39 kB / 0.6713 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1587, allocations: 4 kB / 0.6713 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.1587, allocations: 0 / 0.6713 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1587, allocations: 0 / 0.6713 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006877/0.1594, allocations: 0.5798 MB / 0.6719 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1594, allocations: 0 / 0.6719 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.632e-05/0.1595, allocations: 12.27 kB / 0.6719 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1595, allocations: 0 / 0.6719 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1595, allocations: 7.984 kB / 0.6719 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.1596, allocations: 7.938 kB / 0.6719 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.1596, allocations: 7.938 kB / 0.6719 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005268/0.1601, allocations: 398.7 kB / 0.6723 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.723e-05/0.1602, allocations: 92.95 kB / 0.6724 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.56e-05/0.1602, allocations: 8 kB / 0.6724 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.1603, allocations: 7.984 kB / 0.6724 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.1604, allocations: 15.92 kB / 0.6724 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.1604, allocations: 15.98 kB / 0.6725 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.486e-05/0.1605, allocations: 123.2 kB / 0.6726 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.1e-07/0.1605, allocations: 0 / 0.6726 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002991/0.1608, allocations: 36 kB / 0.6726 GB, free: 13.06 MB / 0.5137 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.0008849/0.1617, allocations: 0.967 MB / 0.6735 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004646/0.1622, allocations: 365.7 kB / 0.6739 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1622, allocations: 4.125 kB / 0.6739 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00024/0.1624, allocations: 202.7 kB / 0.6741 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.1628, allocations: 27.92 kB / 0.6741 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.1651, allocations: 2.105 MB / 0.6762 GB, free: 9.148 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.1654, allocations: 0.7079 MB / 0.6769 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.189e-05/0.1655, allocations: 24.52 kB / 0.6769 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.645e-05/0.1655, allocations: 39.42 kB / 0.6769 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of SimCode: time 5.41e-07/0.1656, allocations: 0 / 0.6769 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.1864, allocations: 3.622 MB / 0.6805 GB, free: 4.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/7.859, allocations: 0 / 0.6805 GB, free: 4.82 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)