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.001083/0.001083, allocations: 108 kB / 15.61 MB, free: 152 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.001479/0.001479, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9011/0.9011, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002481/0.002482, allocations: 59.97 kB / 0.5054 GB, free: 5.211 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.149, allocations: 80.92 MB / 0.5845 GB, free: 4.445 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00276/0.1518, allocations: 1.594 MB / 0.586 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009601/0.1528, allocations: 0.6117 MB / 0.5866 GB, free: 2.219 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.213e-05/0.1529, allocations: 3.938 kB / 0.5866 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.153, allocations: 15.86 kB / 0.5866 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001906/0.1533, allocations: 50.75 kB / 0.5867 GB, free: 2.152 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.1537, allocations: 107.8 kB / 0.5868 GB, free: 2.047 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002304/0.1539, allocations: 199.6 kB / 0.587 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.154, allocations: 29.11 kB / 0.587 GB, free: 1.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.1542, allocations: 79.81 kB / 0.5871 GB, free: 1.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.1543, allocations: 87.66 kB / 0.5872 GB, free: 1.656 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.259e-05/0.1544, allocations: 16 kB / 0.5872 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.1545, allocations: 28 kB / 0.5872 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.505e-05/0.1545, allocations: 35.86 kB / 0.5873 GB, free: 1.578 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.825e-05/0.1546, allocations: 71.7 kB / 0.5873 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.1549, allocations: 167.7 kB / 0.5875 GB, free: 1.344 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1549, allocations: 4 kB / 0.5875 GB, free: 1.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1549, allocations: 0 / 0.5875 GB, free: 1.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1549, allocations: 0 / 0.5875 GB, free: 1.34 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.0006024/0.1555, allocations: 0.5562 MB / 0.588 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.1556, allocations: 12.03 kB / 0.588 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.148e-05/0.1556, allocations: 38.73 kB / 0.5881 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.054e-05/0.1557, allocations: 20.84 kB / 0.5881 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.1559, allocations: 240.6 kB / 0.5883 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1559, allocations: 4.375 kB / 0.5883 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.156, allocations: 16.38 kB / 0.5883 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.1562, allocations: 117.5 kB / 0.5885 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.1562, allocations: 0 / 0.5885 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.1563, allocations: 4 kB / 0.5885 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1563, allocations: 4 kB / 0.5885 GB, free: 216 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.1565, allocations: 67.95 kB / 0.5885 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.1571, allocations: 412.7 kB / 0.5889 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001868/0.1573, allocations: 86.53 kB / 0.589 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.1575, allocations: 76.81 kB / 0.5891 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.1575, allocations: 4 kB / 0.5891 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.1578, allocations: 190.7 kB / 0.5893 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.1578, allocations: 0 / 0.5893 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007005/0.1585, allocations: 356.7 kB / 0.5896 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.704e-05/0.1586, allocations: 166.2 kB / 0.5898 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.1588, allocations: 191.8 kB / 0.5899 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/0.1588, allocations: 29.7 kB / 0.59 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.788e-05/0.1589, allocations: 104.4 kB / 0.5901 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.1589, allocations: 31.62 kB / 0.5901 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.159, allocations: 37.7 kB / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.1591, allocations: 330.8 kB / 0.5905 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.1592, allocations: 55.95 kB / 0.5905 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.1594, allocations: 98.83 kB / 0.5906 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003196/0.1597, allocations: 308.9 kB / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1597, allocations: 0 / 0.5909 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005261/0.1603, allocations: 352 kB / 0.5912 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.983e-05/0.1603, allocations: 118.8 kB / 0.5913 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1604, allocations: 0 / 0.5913 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1604, allocations: 4 kB / 0.5913 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001043/0.1605, allocations: 15.98 kB / 0.5914 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.1605, allocations: 4.25 kB / 0.5914 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.1606, allocations: 23.89 kB / 0.5914 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.1607, allocations: 8 kB / 0.5914 GB, free: 12.88 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.0001495/0.1608, allocations: 204.4 kB / 0.5916 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.235e-05/0.1608, allocations: 11.91 kB / 0.5916 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.1609, allocations: 17.39 kB / 0.5916 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1609, allocations: 0 / 0.5916 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.1609, allocations: 4 kB / 0.5916 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1609, allocations: 0 / 0.5916 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006887/0.1616, allocations: 0.5916 MB / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1616, allocations: 0 / 0.5922 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.443e-05/0.1617, allocations: 15.94 kB / 0.5922 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1617, allocations: 7.984 kB / 0.5922 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.1617, allocations: 11.98 kB / 0.5922 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1617, allocations: 0 / 0.5922 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.1617, allocations: 3.938 kB / 0.5922 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005378/0.1623, allocations: 406.6 kB / 0.5926 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.1623, allocations: 88.92 kB / 0.5927 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.616e-05/0.1624, allocations: 4 kB / 0.5927 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.1625, allocations: 11.98 kB / 0.5927 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.1626, allocations: 11.94 kB / 0.5927 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1626, allocations: 7.984 kB / 0.5927 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001079/0.1627, allocations: 127.2 kB / 0.5929 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1627, allocations: 0 / 0.5929 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003029/0.163, allocations: 39.98 kB / 0.5929 GB, free: 11.2 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.0009749/0.164, allocations: 0.9514 MB / 0.5938 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004729/0.1645, allocations: 365.4 kB / 0.5942 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1645, allocations: 4 kB / 0.5942 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.1647, allocations: 207.5 kB / 0.5944 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003135/0.1651, allocations: 31.52 kB / 0.5944 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.1674, allocations: 2.098 MB / 0.5965 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002255/0.1676, allocations: 0.708 MB / 0.5972 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.411e-05/0.1677, allocations: 20.53 kB / 0.5972 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.033e-05/0.1677, allocations: 35.42 kB / 0.5972 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of SimCode: time 1.513e-06/0.1678, allocations: 0 / 0.5972 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.1871, allocations: 3.583 MB / 0.6007 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.351/7.538, allocations: 9.156 kB / 0.6007 GB, free: 3.027 MB / 0.4981 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)