Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 103.6 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 206.4 kB / 19.42 MB, free: 3.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.428/1.428, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.858/0.858, allocations: 133.9 MB / 442.8 MB, free: 11.32 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 62.06 kB / 0.6134 GB, free: 8.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1632, allocations: 85.85 MB / 0.6973 GB, free: 3 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003437/0.1667, allocations: 1.627 MB / 0.6988 GB, free: 1.359 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1681, allocations: 0.6934 MB / 0.6995 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.166e-05/0.1682, allocations: 0 / 0.6995 GB, free: 0.6602 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000215/0.1684, allocations: 19.8 kB / 0.6995 GB, free: 0.6406 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.1686, allocations: 42.39 kB / 0.6996 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005136/0.1691, allocations: 127.7 kB / 0.6997 GB, free: 488 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.1694, allocations: 187.6 kB / 0.6999 GB, free: 300 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.1695, allocations: 21.72 kB / 0.6999 GB, free: 276 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.1698, allocations: 91.75 kB / 0.7 GB, free: 184 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.1699, allocations: 87.66 kB / 0.7001 GB, free: 96 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1699, allocations: 16 kB / 0.7001 GB, free: 80 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 8.427e-05/0.17, allocations: 31.98 kB / 0.7001 GB, free: 48 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.307e-05/0.1701, allocations: 31.91 kB / 0.7001 GB, free: 16 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.1702, allocations: 79.78 kB / 0.7002 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.1705, allocations: 175.3 kB / 0.7004 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1705, allocations: 3.938 kB / 0.7004 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.724e-06/0.1705, allocations: 0 / 0.7004 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.686e-06/0.1705, allocations: 0 / 0.7004 GB, free: 15.76 MB / 0.5294 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.0008589/0.1713, allocations: 0.5601 MB / 0.7009 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.1714, allocations: 9.109 kB / 0.7009 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.319e-05/0.1714, allocations: 34.75 kB / 0.701 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002112/0.1717, allocations: 36.83 kB / 0.701 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.1721, allocations: 240.2 kB / 0.7012 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1721, allocations: 8.375 kB / 0.7013 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.03e-05/0.1721, allocations: 16.38 kB / 0.7013 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.1724, allocations: 113.5 kB / 0.7014 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1724, allocations: 3.984 kB / 0.7014 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.1725, allocations: 8 kB / 0.7014 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1725, allocations: 4 kB / 0.7014 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.1727, allocations: 67.95 kB / 0.7015 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007007/0.1734, allocations: 428.5 kB / 0.7019 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.1736, allocations: 82.47 kB / 0.7019 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.1738, allocations: 64.81 kB / 0.702 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1738, allocations: 4 kB / 0.702 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.1741, allocations: 182.8 kB / 0.7022 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=10): time 1.844e-06/0.1741, allocations: 0 / 0.7022 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of matching and sorting (n=10): time 0.0007806/0.1748, allocations: 353 kB / 0.7025 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.175, allocations: 174.1 kB / 0.7027 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.1751, allocations: 171.5 kB / 0.7029 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.958e-05/0.1752, allocations: 33.7 kB / 0.7029 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.367e-05/0.1753, allocations: 112.3 kB / 0.703 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.1753, allocations: 23.8 kB / 0.703 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.277e-05/0.1754, allocations: 41.7 kB / 0.7031 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.1755, allocations: 334.8 kB / 0.7034 GB, free: 12.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.1757, allocations: 47.97 kB / 0.7034 GB, free: 12.35 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.1759, allocations: 98.83 kB / 0.7035 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000375/0.1762, allocations: 320.8 kB / 0.7038 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1762, allocations: 0 / 0.7038 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005759/0.1768, allocations: 360.1 kB / 0.7042 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.427e-05/0.1769, allocations: 114.8 kB / 0.7043 GB, free: 11.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.1769, allocations: 4 kB / 0.7043 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1769, allocations: 0 / 0.7043 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.1771, allocations: 19.98 kB / 0.7043 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1771, allocations: 0 / 0.7043 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.1772, allocations: 20.2 kB / 0.7043 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.204e-05/0.1772, allocations: 8 kB / 0.7043 GB, free: 11.29 MB / 0.5294 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.0002029/0.1774, allocations: 209 kB / 0.7045 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.1774, allocations: 19.91 kB / 0.7045 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.972e-05/0.1775, allocations: 9.406 kB / 0.7045 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.1775, allocations: 4 kB / 0.7046 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1775, allocations: 0 / 0.7046 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.1775, allocations: 3.984 kB / 0.7046 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007959/0.1783, allocations: 0.5878 MB / 0.7051 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1783, allocations: 4 kB / 0.7051 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.837e-05/0.1784, allocations: 11.98 kB / 0.7051 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1784, allocations: 0 / 0.7051 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1784, allocations: 8 kB / 0.7052 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1784, allocations: 3.984 kB / 0.7052 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1784, allocations: 3.938 kB / 0.7052 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006102/0.179, allocations: 414.7 kB / 0.7056 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 5.983e-05/0.1791, allocations: 88.95 kB / 0.7056 GB, free: 9.789 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.1791, allocations: 4 kB / 0.7056 GB, free: 9.785 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/0.1792, allocations: 12 kB / 0.7057 GB, free: 9.773 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.1793, allocations: 11.92 kB / 0.7057 GB, free: 9.762 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.1793, allocations: 15.98 kB / 0.7057 GB, free: 9.746 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001202/0.1794, allocations: 129.7 kB / 0.7058 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1794, allocations: 4 kB / 0.7058 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0002966/0.1797, allocations: 39.94 kB / 0.7058 GB, free: 9.578 MB / 0.5294 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.001052/0.1807, allocations: 0.9693 MB / 0.7068 GB, free: 8.578 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005563/0.1813, allocations: 357.4 kB / 0.7071 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1813, allocations: 0 / 0.7071 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.1815, allocations: 175.3 kB / 0.7073 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003053/0.1818, allocations: 31.67 kB / 0.7073 GB, free: 7.953 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002673/0.1845, allocations: 2.131 MB / 0.7094 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.1848, allocations: 0.7041 MB / 0.7101 GB, free: 4.953 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 6.834e-05/0.1849, allocations: 20.53 kB / 0.7101 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.081e-05/0.185, allocations: 39.42 kB / 0.7102 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of SimCode: time 2.8e-07/0.185, allocations: 0 / 0.7102 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.2119, allocations: 3.67 MB / 0.7137 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.855/8.066, allocations: 5.688 kB / 0.7137 GB, free: 1.328 MB / 0.5294 GB " [Timeout remaining time 652] (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.668865126994206] Failed to read output from testmodel.py, exit status != 0: 8.134647391998442 8.15982722 7.984826787 Calling exit ...