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.004867/0.004867, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001184/0.001184, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.296/1.296, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8059/0.8059, allocations: 135.1 MB / 425.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 67.95 kB / 0.5851 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1479, allocations: 80.91 MB / 0.6641 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002679/0.1507, allocations: 1.617 MB / 0.6657 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.1516, allocations: 0.6118 MB / 0.6663 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.926e-05/0.1517, allocations: 4 kB / 0.6663 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.1518, allocations: 15.8 kB / 0.6663 GB, free: 4.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.1521, allocations: 47.75 kB / 0.6664 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.1524, allocations: 115.7 kB / 0.6665 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.1527, allocations: 191.6 kB / 0.6667 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.1528, allocations: 28.86 kB / 0.6667 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.153, allocations: 95.69 kB / 0.6668 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001371/0.1531, allocations: 83.72 kB / 0.6669 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.354e-05/0.1532, allocations: 12 kB / 0.6669 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.492e-05/0.1532, allocations: 20 kB / 0.6669 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.975e-05/0.1533, allocations: 31.91 kB / 0.6669 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.1534, allocations: 71.66 kB / 0.667 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002222/0.1536, allocations: 174.3 kB / 0.6672 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.1536, allocations: 0 / 0.6672 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.1536, allocations: 3.938 kB / 0.6672 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.1537, allocations: 0 / 0.6672 GB, free: 3.227 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.0006976/0.1544, allocations: 0.5533 MB / 0.6677 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1544, allocations: 9.109 kB / 0.6677 GB, free: 2.594 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.23e-05/0.1545, allocations: 42.73 kB / 0.6678 GB, free: 2.543 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.28e-05/0.1545, allocations: 20.75 kB / 0.6678 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.1549, allocations: 232.2 kB / 0.668 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.1549, allocations: 8.375 kB / 0.668 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.1549, allocations: 16.31 kB / 0.668 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002622/0.1552, allocations: 125.5 kB / 0.6681 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.1552, allocations: 0 / 0.6681 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.378e-05/0.1552, allocations: 0 / 0.6681 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.1552, allocations: 11.98 kB / 0.6682 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.1554, allocations: 67.94 kB / 0.6682 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006359/0.1561, allocations: 424.4 kB / 0.6686 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.1563, allocations: 90.53 kB / 0.6687 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.1564, allocations: 76.81 kB / 0.6688 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.349e-05/0.1565, allocations: 4 kB / 0.6688 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002659/0.1567, allocations: 178.8 kB / 0.669 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.1568, allocations: 0 / 0.669 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007044/0.1575, allocations: 352.9 kB / 0.6693 GB, free: 0.8203 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1576, allocations: 166.1 kB / 0.6695 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.1577, allocations: 180 kB / 0.6696 GB, free: 444 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.461e-05/0.1578, allocations: 29.7 kB / 0.6697 GB, free: 408 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.146e-05/0.1579, allocations: 112.4 kB / 0.6698 GB, free: 288 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.1579, allocations: 27.56 kB / 0.6698 GB, free: 260 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.847e-05/0.158, allocations: 41.7 kB / 0.6698 GB, free: 212 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1581, allocations: 330.8 kB / 0.6701 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.1583, allocations: 47.97 kB / 0.6702 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.1584, allocations: 106.8 kB / 0.6703 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.1588, allocations: 312.9 kB / 0.6706 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1588, allocations: 0 / 0.6706 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005062/0.1593, allocations: 340.1 kB / 0.6709 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.632e-05/0.1594, allocations: 125 kB / 0.671 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1594, allocations: 4 kB / 0.671 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1594, allocations: 4 kB / 0.671 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1595, allocations: 19.92 kB / 0.6711 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1595, allocations: 7.938 kB / 0.6711 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.197e-05/0.1596, allocations: 11.91 kB / 0.6711 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.1597, allocations: 8 kB / 0.6711 GB, free: 14.77 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.000157/0.1598, allocations: 213 kB / 0.6713 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.1599, allocations: 15.81 kB / 0.6713 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.492e-05/0.1599, allocations: 17.41 kB / 0.6713 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.1599, allocations: 0 / 0.6713 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1599, allocations: 0 / 0.6713 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1599, allocations: 0 / 0.6713 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007125/0.1607, allocations: 0.5837 MB / 0.6719 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1607, allocations: 0 / 0.6719 GB, free: 13.86 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.195e-05/0.1607, allocations: 11.98 kB / 0.6719 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1607, allocations: 0 / 0.6719 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.1608, allocations: 16 kB / 0.6719 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1608, allocations: 0 / 0.6719 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1608, allocations: 3.938 kB / 0.6719 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005368/0.1613, allocations: 398.6 kB / 0.6723 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1614, allocations: 92.91 kB / 0.6724 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.1614, allocations: 4 kB / 0.6724 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.1615, allocations: 12 kB / 0.6724 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.356e-05/0.1616, allocations: 15.92 kB / 0.6724 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.1616, allocations: 8 kB / 0.6724 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001157/0.1618, allocations: 135.2 kB / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1618, allocations: 0 / 0.6726 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002936/0.1621, allocations: 32 kB / 0.6726 GB, free: 13.09 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.001122/0.1632, allocations: 0.959 MB / 0.6735 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005476/0.1637, allocations: 369.7 kB / 0.6739 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1638, allocations: 0 / 0.6739 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002489/0.164, allocations: 202.8 kB / 0.6741 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.1643, allocations: 23.92 kB / 0.6741 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.1668, allocations: 2.116 MB / 0.6762 GB, free: 9.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.1671, allocations: 0.7041 MB / 0.6768 GB, free: 8.449 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.288e-05/0.1672, allocations: 20.55 kB / 0.6769 GB, free: 8.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.262e-05/0.1673, allocations: 39.42 kB / 0.6769 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of SimCode: time 5.31e-07/0.1673, allocations: 0 / 0.6769 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.1873, allocations: 3.703 MB / 0.6805 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.696, allocations: 2.344 kB / 0.6805 GB, free: 4.781 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)