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.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/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006111/0.00611, allocations: 101.4 kB / 15.73 MB, free: 6.004 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.001159/0.001159, allocations: 193.7 kB / 16.67 MB, free: 5.926 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8212/0.8212, allocations: 132.2 MB / 422.7 MB, free: 6.586 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 64.5 kB / 0.5809 GB, free: 23.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1508, allocations: 80.2 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003419/0.1543, allocations: 1.596 MB / 0.6607 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1555, allocations: 0.6155 MB / 0.6613 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.874e-05/0.1556, allocations: 0 / 0.6613 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00017/0.1558, allocations: 23.84 kB / 0.6614 GB, free: 8.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002236/0.156, allocations: 52.62 kB / 0.6614 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003987/0.1564, allocations: 107.8 kB / 0.6615 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.1567, allocations: 199.6 kB / 0.6617 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001122/0.1568, allocations: 33.08 kB / 0.6617 GB, free: 8.121 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.157, allocations: 87.69 kB / 0.6618 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.1571, allocations: 87.72 kB / 0.6619 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.086e-05/0.1572, allocations: 12 kB / 0.6619 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.408e-05/0.1573, allocations: 27.98 kB / 0.6619 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.685e-05/0.1574, allocations: 31.91 kB / 0.662 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1575, allocations: 71.66 kB / 0.662 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.1577, allocations: 170.3 kB / 0.6622 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1577, allocations: 0 / 0.6622 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.1577, allocations: 0 / 0.6622 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.179e-05/0.1578, allocations: 0 / 0.6622 GB, free: 7.645 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.0007775/0.1585, allocations: 0.5572 MB / 0.6627 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.1586, allocations: 8.031 kB / 0.6628 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.1586, allocations: 34.75 kB / 0.6628 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.74e-05/0.1587, allocations: 20.75 kB / 0.6628 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.1591, allocations: 248.6 kB / 0.663 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.1591, allocations: 4.375 kB / 0.663 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.175e-05/0.1592, allocations: 20.38 kB / 0.6631 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.1594, allocations: 109.5 kB / 0.6632 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.1594, allocations: 4 kB / 0.6632 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.1595, allocations: 4 kB / 0.6632 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.1595, allocations: 4 kB / 0.6632 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.1597, allocations: 63.89 kB / 0.6632 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006245/0.1603, allocations: 428.5 kB / 0.6637 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.1605, allocations: 90.56 kB / 0.6637 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.1607, allocations: 76.81 kB / 0.6638 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1607, allocations: 0 / 0.6638 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.161, allocations: 178.7 kB / 0.664 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.161, allocations: 0 / 0.664 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007001/0.1617, allocations: 364.8 kB / 0.6643 GB, free: 5.234 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.163e-05/0.1618, allocations: 166.2 kB / 0.6645 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.1619, allocations: 172 kB / 0.6647 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.162, allocations: 29.7 kB / 0.6647 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.162, allocations: 108.3 kB / 0.6648 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.1621, allocations: 31.64 kB / 0.6648 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.518e-05/0.1622, allocations: 41.7 kB / 0.6649 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1623, allocations: 330.8 kB / 0.6652 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.1624, allocations: 51.95 kB / 0.6652 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.1626, allocations: 110.8 kB / 0.6653 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.1629, allocations: 305 kB / 0.6656 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1629, allocations: 0 / 0.6656 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005049/0.1634, allocations: 344 kB / 0.6659 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.803e-05/0.1635, allocations: 127 kB / 0.6661 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.1635, allocations: 0 / 0.6661 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.1635, allocations: 7.938 kB / 0.6661 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1637, allocations: 19.92 kB / 0.6661 GB, free: 3.211 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1637, allocations: 4 kB / 0.6661 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.996e-05/0.1638, allocations: 15.98 kB / 0.6661 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.1638, allocations: 8 kB / 0.6661 GB, free: 3.184 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.0001622/0.164, allocations: 210.3 kB / 0.6663 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.164, allocations: 23.75 kB / 0.6663 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.887e-05/0.1641, allocations: 17.39 kB / 0.6664 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.1641, allocations: 3.984 kB / 0.6664 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1641, allocations: 0 / 0.6664 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1641, allocations: 0 / 0.6664 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006745/0.1648, allocations: 0.5798 MB / 0.6669 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1648, allocations: 0 / 0.6669 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.1648, allocations: 11.98 kB / 0.6669 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1649, allocations: 4 kB / 0.6669 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.1649, allocations: 12.27 kB / 0.667 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.1649, allocations: 0 / 0.667 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.1649, allocations: 3.938 kB / 0.667 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005031/0.1654, allocations: 402.5 kB / 0.6673 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.1655, allocations: 88.92 kB / 0.6674 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.1655, allocations: 8 kB / 0.6674 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.1656, allocations: 11.98 kB / 0.6674 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.807e-05/0.1657, allocations: 7.938 kB / 0.6675 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.1657, allocations: 15.98 kB / 0.6675 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.914e-05/0.1658, allocations: 127.2 kB / 0.6676 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.1e-07/0.1658, allocations: 0 / 0.6676 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002887/0.1661, allocations: 36 kB / 0.6676 GB, free: 1.5 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.0008901/0.167, allocations: 0.966 MB / 0.6686 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000457/0.1675, allocations: 361.6 kB / 0.6689 GB, free: 100 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1675, allocations: 0 / 0.6689 GB, free: 100 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.1677, allocations: 206.7 kB / 0.6691 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.168, allocations: 23.92 kB / 0.6691 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002384/0.1704, allocations: 2.113 MB / 0.6712 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002576/0.1707, allocations: 0.7079 MB / 0.6719 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 7.077e-05/0.1708, allocations: 24.53 kB / 0.6719 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.705e-05/0.1708, allocations: 39.42 kB / 0.6719 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.1708, allocations: 0 / 0.6719 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.1902, allocations: 3.623 MB / 0.6755 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.507, allocations: 6.469 kB / 0.6755 GB, free: 9.277 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_IO_Files_Examples_CSVWriter.fmu > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)