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.004972/0.004972, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001148/0.001148, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.29/1.29, 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-master/package.mo): time 0.7539/0.7539, allocations: 135.1 MB / 425.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 65.36 kB / 0.5851 GB, free: 21.89 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1396, allocations: 80.92 MB / 0.6641 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003225/0.1429, allocations: 1.609 MB / 0.6657 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.1441, allocations: 0.6118 MB / 0.6663 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.1442, allocations: 0 / 0.6663 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1444, allocations: 23.73 kB / 0.6663 GB, free: 4.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002722/0.1448, allocations: 43.7 kB / 0.6664 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004511/0.1452, allocations: 111.8 kB / 0.6665 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.1455, allocations: 203.6 kB / 0.6667 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.1457, allocations: 36.84 kB / 0.6667 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001798/0.1458, allocations: 83.75 kB / 0.6668 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001546/0.146, allocations: 87.66 kB / 0.6669 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1461, allocations: 12 kB / 0.6669 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.325e-05/0.1462, allocations: 28 kB / 0.6669 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.299e-05/0.1462, allocations: 27.91 kB / 0.6669 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.1464, allocations: 83.64 kB / 0.667 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.1466, allocations: 162.3 kB / 0.6672 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1466, allocations: 0 / 0.6672 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.747e-06/0.1466, allocations: 4 kB / 0.6672 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.739e-06/0.1467, allocations: 0 / 0.6672 GB, free: 3.152 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.0007703/0.1474, allocations: 0.5571 MB / 0.6677 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1475, allocations: 13.05 kB / 0.6677 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.886e-05/0.1475, allocations: 34.75 kB / 0.6678 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.1476, allocations: 24.75 kB / 0.6678 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003601/0.148, allocations: 228.3 kB / 0.668 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.882e-05/0.148, allocations: 8.375 kB / 0.668 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.148, allocations: 12.38 kB / 0.668 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002699/0.1483, allocations: 121.5 kB / 0.6681 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.1483, allocations: 0 / 0.6681 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.1483, allocations: 4 kB / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.1484, allocations: 0 / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.1486, allocations: 75.94 kB / 0.6682 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006391/0.1492, allocations: 416.4 kB / 0.6686 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002042/0.1494, allocations: 90.53 kB / 0.6687 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.1496, allocations: 76.81 kB / 0.6688 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1496, allocations: 4 kB / 0.6688 GB, free: 1.324 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002515/0.1499, allocations: 183 kB / 0.669 GB, free: 1.121 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1499, allocations: 3.938 kB / 0.669 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006836/0.1506, allocations: 345 kB / 0.6693 GB, free: 0.7617 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.416e-05/0.1507, allocations: 170.2 kB / 0.6695 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.1508, allocations: 179.9 kB / 0.6696 GB, free: 380 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.1509, allocations: 33.7 kB / 0.6697 GB, free: 340 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.82e-05/0.1509, allocations: 112.3 kB / 0.6698 GB, free: 220 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.071e-05/0.151, allocations: 35.53 kB / 0.6698 GB, free: 184 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.568e-05/0.1511, allocations: 33.72 kB / 0.6698 GB, free: 144 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1512, allocations: 334.8 kB / 0.6701 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1513, allocations: 51.97 kB / 0.6702 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001497/0.1515, allocations: 98.83 kB / 0.6703 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.1518, allocations: 312.9 kB / 0.6706 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1518, allocations: 0 / 0.6706 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004897/0.1523, allocations: 344.2 kB / 0.6709 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.1524, allocations: 120.7 kB / 0.671 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1524, allocations: 4 kB / 0.671 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1524, allocations: 3.938 kB / 0.671 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1525, allocations: 15.98 kB / 0.6711 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1526, allocations: 4 kB / 0.6711 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.575e-05/0.1527, allocations: 20.16 kB / 0.6711 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.462e-05/0.1527, allocations: 15.98 kB / 0.6711 GB, free: 14.7 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.0001464/0.1528, allocations: 201 kB / 0.6713 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.1529, allocations: 15.81 kB / 0.6713 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.539e-05/0.1529, allocations: 17.41 kB / 0.6713 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1529, allocations: 4 kB / 0.6713 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.1529, allocations: 0 / 0.6713 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1529, allocations: 3.984 kB / 0.6713 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006625/0.1536, allocations: 0.5837 MB / 0.6719 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.1536, allocations: 0 / 0.6719 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.207e-05/0.1537, allocations: 15.98 kB / 0.6719 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1537, allocations: 0 / 0.6719 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.1537, allocations: 4 kB / 0.6719 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.1537, allocations: 0 / 0.6719 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1537, allocations: 3.938 kB / 0.6719 GB, free: 13.76 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005137/0.1543, allocations: 414.5 kB / 0.6723 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.402e-05/0.1543, allocations: 88.92 kB / 0.6724 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.345e-05/0.1544, allocations: 8 kB / 0.6724 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001074/0.1545, allocations: 11.94 kB / 0.6724 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.1545, allocations: 11.92 kB / 0.6724 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1545, allocations: 8 kB / 0.6724 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.415e-05/0.1546, allocations: 131.2 kB / 0.6726 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.01e-07/0.1546, allocations: 4 kB / 0.6726 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002934/0.1549, allocations: 40 kB / 0.6726 GB, free: 13.01 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.0008728/0.1558, allocations: 0.9511 MB / 0.6735 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004494/0.1563, allocations: 357.4 kB / 0.6739 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1563, allocations: 0 / 0.6739 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000215/0.1565, allocations: 202.8 kB / 0.6741 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.1568, allocations: 32.42 kB / 0.6741 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.1591, allocations: 2.105 MB / 0.6762 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.1594, allocations: 0.7119 MB / 0.6768 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.563e-05/0.1594, allocations: 20.53 kB / 0.6769 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.178e-05/0.1595, allocations: 35.42 kB / 0.6769 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1595, allocations: 0 / 0.6769 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.1793, allocations: 3.631 MB / 0.6804 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.37/7.55, allocations: 7.922 kB / 0.6805 GB, free: 4.785 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)