Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.ReadStringCSV.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/KeyWordIO 0.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.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(KeyWordIO.Examples.ReadStringCSV,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadStringCSV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.ReadStringCSV,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadStringCSV",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.004541/0.004545, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001039/0.001039, allocations: 192.7 kB / 16.67 MB, free: 5.973 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.294/1.294, 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/KeyWordIO 0.11.0-master/package.mo): time 0.006243/0.006243, allocations: 1.01 MB / 291.5 MB, free: 13.74 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 57.91 kB / 402.5 MB, free: 32.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07506/0.07632, allocations: 49.66 MB / 452.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001404/0.07775, allocations: 496.8 kB / 452.6 MB, free: 14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.07972, allocations: 1.341 MB / 453.9 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.822e-05/0.07976, allocations: 4 kB / 453.9 MB, free: 12.65 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readLine.mo:2:1-36:13:writable] Warning: Pure function 'KeyWordIO.readLine' contains a call to impure function 'KeyWordIO.readLineWithoutCache'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readSizeCSV.mo:2:1-41:16:writable] Warning: Pure function 'KeyWordIO.readSizeCSV' contains a call to impure function 'KeyWordIO.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readColsCSV.mo:2:1-18:16:writable] Warning: Pure function 'KeyWordIO.readColsCSV' contains a call to impure function 'KeyWordIO.readSizeCSV'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readStringCSV.mo:2:1-85:18:writable] Warning: Pure function 'KeyWordIO.readStringCSV' contains a call to impure function 'KeyWordIO.readLine'. Notification: Performance of NFTyping.typeComponents: time 0.001277/0.08105, allocations: 322.5 kB / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.016e-05/0.0811, allocations: 23.97 kB / 454.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 5.432e-05/0.08116, allocations: 15.92 kB / 454.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.897e-05/0.08125, allocations: 27.97 kB / 454.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.884e-05/0.08128, allocations: 4 kB / 454.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.304e-05/0.08131, allocations: 11.98 kB / 454.3 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.466e-05/0.08138, allocations: 23.92 kB / 454.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.14e-05/0.0814, allocations: 0 / 454.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.08185, allocations: 335.5 kB / 454.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.608e-05/0.08191, allocations: 19.98 kB / 454.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.817e-05/0.08196, allocations: 23.86 kB / 454.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004052/0.08237, allocations: 295.4 kB / 455 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.08238, allocations: 0 / 455 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.08239, allocations: 0 / 455 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.0824, allocations: 4 kB / 455 MB, free: 11.57 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004691/0.08287, allocations: 442.5 kB / 455.5 MB, free: 11.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.08292, allocations: 12.03 kB / 455.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.905e-05/0.08298, allocations: 110 kB / 455.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.365e-05/0.08307, allocations: 80.22 kB / 455.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002061/0.08328, allocations: 279.5 kB / 455.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.03e-05/0.08335, allocations: 150.9 kB / 456.1 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.0834, allocations: 154.9 kB / 456.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.588e-05/0.08347, allocations: 112.9 kB / 456.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.551e-05/0.0835, allocations: 75.28 kB / 456.4 MB, free: 10.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.08e-05/0.08357, allocations: 150.6 kB / 456.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.377e-05/0.08362, allocations: 154.6 kB / 456.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.716e-05/0.08368, allocations: 154.6 kB / 456.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002972/0.08398, allocations: 473.8 kB / 457.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.35e-05/0.08406, allocations: 165.1 kB / 457.5 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.936e-05/0.0841, allocations: 80.14 kB / 457.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.08413, allocations: 83.22 kB / 457.7 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001305/0.08427, allocations: 71.27 kB / 457.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.784e-06/0.08428, allocations: 0 / 457.7 MB, free: 8.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000129/0.08442, allocations: 37.7 kB / 457.8 MB, free: 8.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.08446, allocations: 63.47 kB / 457.8 MB, free: 8.578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.08462, allocations: 145.8 kB / 458 MB, free: 8.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.08464, allocations: 25.7 kB / 458 MB, free: 8.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.059e-05/0.08469, allocations: 92.14 kB / 458.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.08471, allocations: 0 / 458.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/0.08474, allocations: 9.719 kB / 458.1 MB, free: 8.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.08486, allocations: 322.8 kB / 458.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.865e-06/0.08487, allocations: 0 / 458.4 MB, free: 7.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.458e-06/0.08488, allocations: 4 kB / 458.4 MB, free: 7.957 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.107e-05/0.08491, allocations: 8.859 kB / 458.4 MB, free: 7.945 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.08492, allocations: 3.938 kB / 458.4 MB, free: 7.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.056e-05/0.08498, allocations: 45.53 kB / 458.5 MB, free: 7.891 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.085, allocations: 6.344 kB / 458.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-06/0.08501, allocations: 0 / 458.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.08503, allocations: 0 / 458.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.783e-05/0.08505, allocations: 0 / 458.5 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.08506, allocations: 7.984 kB / 458.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.628e-05/0.0851, allocations: 4.094 kB / 458.5 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-06/0.08511, allocations: 0 / 458.5 MB, free: 7.875 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 8.205e-05/0.08519, allocations: 118.5 kB / 458.6 MB, free: 7.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.08522, allocations: 15.88 kB / 458.6 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.68e-05/0.08526, allocations: 7.531 kB / 458.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.08526, allocations: 0 / 458.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.08527, allocations: 0 / 458.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.08528, allocations: 0 / 458.6 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001376/0.08542, allocations: 165.6 kB / 458.8 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.08543, allocations: 7.984 kB / 458.8 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.84e-06/0.08544, allocations: 4 kB / 458.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.08545, allocations: 0 / 458.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-06/0.08546, allocations: 0 / 458.8 MB, free: 7.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.08546, allocations: 3.938 kB / 458.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.08547, allocations: 4 kB / 458.8 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.787e-05/0.08555, allocations: 65.02 kB / 458.9 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.915e-05/0.08562, allocations: 89.05 kB / 458.9 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.08565, allocations: 8.016 kB / 459 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.092e-05/0.08568, allocations: 8 kB / 459 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.466e-06/0.0857, allocations: 0 / 459 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-06/0.0857, allocations: 0 / 459 MB, free: 7.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.602e-05/0.0858, allocations: 123.2 kB / 459.1 MB, free: 7.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.08581, allocations: 0 / 459.1 MB, free: 7.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000371/0.08619, allocations: 107.5 kB / 459.2 MB, free: 7.062 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0009259/0.08712, allocations: 0.89 MB / 460.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.369e-05/0.0872, allocations: 7.984 kB / 460.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.08721, allocations: 0 / 460.1 MB, free: 6.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.454e-06/0.08722, allocations: 4 kB / 460.1 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.08738, allocations: 8 kB / 460.1 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001103/0.08849, allocations: 1.285 MB / 461.4 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.08875, allocations: 0.6844 MB / 462.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.401e-05/0.0888, allocations: 19.92 kB / 462.1 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.08886, allocations: 31.36 kB / 462.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08886, allocations: 0 / 462.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02244/0.1113, allocations: 3.841 MB / 466 MB, free: 304 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.14, allocations: 4 kB / 466 MB, free: 300 kB / 334.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.ReadStringCSV.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.ReadStringCSV.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.ReadStringCSV.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.ReadStringCSV.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.ReadStringCSV_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_ReadStringCSV.fmu > KeyWordIO_KeyWordIO.Examples.ReadStringCSV.pipe 2>&1)