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.001048/0.001048, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.008001/0.008001, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.339/1.339, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8951/0.8951, allocations: 135.3 MB / 426.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003224, allocations: 12.64 kB / 0.5077 GB, free: 4.625 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1439, allocations: 82.31 MB / 0.5881 GB, free: 2.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00175/0.1457, allocations: 1.308 MB / 0.5894 GB, free: 1.16 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.1466, allocations: 0.612 MB / 0.59 GB, free: 0.543 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.689e-05/0.1467, allocations: 0 / 0.59 GB, free: 0.543 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.1469, allocations: 23.8 kB / 0.59 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001805/0.1471, allocations: 43.83 kB / 0.59 GB, free: 488 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.1474, allocations: 99.83 kB / 0.5901 GB, free: 388 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000167/0.1476, allocations: 159.6 kB / 0.5903 GB, free: 228 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.1477, allocations: 25.09 kB / 0.5903 GB, free: 200 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.1479, allocations: 75.77 kB / 0.5904 GB, free: 124 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.148, allocations: 83.66 kB / 0.5904 GB, free: 40 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.148, allocations: 8 kB / 0.5905 GB, free: 32 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.126e-05/0.1481, allocations: 12 kB / 0.5905 GB, free: 20 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.22e-05/0.1482, allocations: 27.91 kB / 0.5905 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.226e-05/0.1483, allocations: 89.42 kB / 0.5906 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.1485, allocations: 159.7 kB / 0.5907 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1485, allocations: 3.938 kB / 0.5907 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.393e-06/0.1485, allocations: 0 / 0.5907 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.1485, allocations: 0 / 0.5907 GB, free: 15.74 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.0005683/0.1491, allocations: 0.5329 MB / 0.5913 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.1492, allocations: 8.031 kB / 0.5913 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.1492, allocations: 42.75 kB / 0.5913 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.884e-05/0.1493, allocations: 16.84 kB / 0.5913 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.1495, allocations: 229.7 kB / 0.5915 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.591e-05/0.1495, allocations: 12.38 kB / 0.5915 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.1496, allocations: 12.38 kB / 0.5916 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002541/0.1498, allocations: 125.5 kB / 0.5917 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.1499, allocations: 0 / 0.5917 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.1499, allocations: 4 kB / 0.5917 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.1499, allocations: 0 / 0.5917 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.1501, allocations: 83.94 kB / 0.5918 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005912/0.1507, allocations: 416.6 kB / 0.5922 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.1509, allocations: 94.53 kB / 0.5922 GB, free: 14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.1511, allocations: 76.81 kB / 0.5923 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1511, allocations: 4 kB / 0.5923 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002752/0.1514, allocations: 194.8 kB / 0.5925 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.1514, allocations: 3.938 kB / 0.5925 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006915/0.1521, allocations: 360.8 kB / 0.5929 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.732e-05/0.1522, allocations: 166.2 kB / 0.593 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.1523, allocations: 188.1 kB / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1524, allocations: 29.7 kB / 0.5932 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.175e-05/0.1524, allocations: 108.4 kB / 0.5933 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.1525, allocations: 27.64 kB / 0.5934 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.6e-05/0.1525, allocations: 21.72 kB / 0.5934 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.595e-05/0.1526, allocations: 330.8 kB / 0.5937 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.1528, allocations: 59.95 kB / 0.5937 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.1529, allocations: 102.8 kB / 0.5938 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003214/0.1533, allocations: 320.9 kB / 0.5942 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1533, allocations: 0 / 0.5942 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005195/0.1538, allocations: 368.2 kB / 0.5945 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.1539, allocations: 110.8 kB / 0.5946 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1539, allocations: 0 / 0.5946 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1539, allocations: 7.984 kB / 0.5946 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.154, allocations: 20 kB / 0.5946 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.154, allocations: 3.984 kB / 0.5946 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.1541, allocations: 15.91 kB / 0.5947 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.1542, allocations: 8 kB / 0.5947 GB, free: 11.26 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.0001468/0.1543, allocations: 209.2 kB / 0.5949 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1543, allocations: 15.89 kB / 0.5949 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.1544, allocations: 13.41 kB / 0.5949 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1544, allocations: 0 / 0.5949 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1544, allocations: 0 / 0.5949 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1544, allocations: 4 kB / 0.5949 GB, free: 11 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006797/0.1551, allocations: 0.5992 MB / 0.5955 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1551, allocations: 0 / 0.5955 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.657e-05/0.1552, allocations: 16.27 kB / 0.5955 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1552, allocations: 0 / 0.5955 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.1552, allocations: 8 kB / 0.5955 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1552, allocations: 3.938 kB / 0.5955 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1552, allocations: 3.938 kB / 0.5955 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005322/0.1558, allocations: 414.6 kB / 0.5959 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.1558, allocations: 92.91 kB / 0.596 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.374e-05/0.1559, allocations: 8 kB / 0.596 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.156, allocations: 12 kB / 0.596 GB, free: 9.734 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.156, allocations: 15.91 kB / 0.596 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-05/0.1561, allocations: 8 kB / 0.596 GB, free: 9.711 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001056/0.1562, allocations: 136.3 kB / 0.5962 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1562, allocations: 0 / 0.5962 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003142/0.1565, allocations: 32 kB / 0.5962 GB, free: 9.547 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.0008987/0.1574, allocations: 0.9675 MB / 0.5971 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004895/0.1579, allocations: 369.4 kB / 0.5975 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1579, allocations: 0 / 0.5975 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002409/0.1582, allocations: 211.6 kB / 0.5977 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.1585, allocations: 27.92 kB / 0.5977 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.161, allocations: 2.154 MB / 0.5998 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000268/0.1613, allocations: 0.7082 MB / 0.6005 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.552e-05/0.1614, allocations: 16.55 kB / 0.6005 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.1615, allocations: 35.42 kB / 0.6006 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of SimCode: time 6.72e-07/0.1615, allocations: 0 / 0.6006 GB, free: 4.797 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3639/0.5254, allocations: 3.335 MB / 0.6038 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000284/0.5257, allocations: 194.3 kB / 0.604 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.523, allocations: 0 / 0.604 GB, free: 1.367 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 & /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)