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.12.0/package.mo", uses=false) Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.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(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.004625/0.004625, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.001282/0.001282, allocations: 196.3 kB / 16.68 MB, free: 5.934 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.00716/0.007161, allocations: 1.029 MB / 291.6 MB, free: 13.72 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 62.16 kB / 402.5 MB, free: 32.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07441/0.07627, allocations: 49.65 MB / 452.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001555/0.07787, allocations: 0.4968 MB / 452.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002087/0.07997, allocations: 1.341 MB / 454 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.769e-05/0.08001, allocations: 0 / 454 MB, free: 12.76 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.12.0/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.12.0/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.12.0/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.001343/0.08136, allocations: 310.9 kB / 454.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.373e-05/0.08143, allocations: 27.91 kB / 454.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.932e-05/0.08149, allocations: 11.98 kB / 454.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.876e-05/0.0816, allocations: 39.84 kB / 454.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.635e-05/0.08164, allocations: 0 / 454.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.329e-05/0.08167, allocations: 11.98 kB / 454.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.914e-05/0.08176, allocations: 27.91 kB / 454.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.08178, allocations: 4 kB / 454.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005016/0.08229, allocations: 331.5 kB / 454.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.08236, allocations: 15.98 kB / 454.7 MB, free: 12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.963e-05/0.08241, allocations: 23.91 kB / 454.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.08285, allocations: 291.4 kB / 455.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.08286, allocations: 4 kB / 455.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.08287, allocations: 7.938 kB / 455.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.08289, allocations: 0 / 455.1 MB, free: 11.68 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.0005365/0.08343, allocations: 438.5 kB / 455.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.08348, allocations: 12.03 kB / 455.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.515e-05/0.08356, allocations: 114 kB / 455.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.906e-05/0.08364, allocations: 80.22 kB / 455.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002322/0.08388, allocations: 271.5 kB / 456 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.8e-05/0.08397, allocations: 162.9 kB / 456.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.118e-05/0.08404, allocations: 150.9 kB / 456.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.97e-05/0.08413, allocations: 108.9 kB / 456.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.08417, allocations: 75.28 kB / 456.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.917e-05/0.08424, allocations: 150.6 kB / 456.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.526e-05/0.08431, allocations: 154.6 kB / 456.7 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.152e-05/0.08438, allocations: 154.6 kB / 456.9 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003339/0.08472, allocations: 465.9 kB / 457.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.821e-05/0.08483, allocations: 169.1 kB / 457.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.029e-05/0.08488, allocations: 84.12 kB / 457.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.53e-05/0.08493, allocations: 87.22 kB / 457.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.08507, allocations: 71.27 kB / 457.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.224e-06/0.08508, allocations: 0 / 457.7 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001617/0.08525, allocations: 41.7 kB / 457.8 MB, free: 8.754 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.08532, allocations: 51.41 kB / 457.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.0855, allocations: 145.8 kB / 458 MB, free: 8.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.08553, allocations: 29.7 kB / 458 MB, free: 8.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.756e-05/0.08559, allocations: 92.12 kB / 458.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.14e-05/0.08561, allocations: 0 / 458.1 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.028e-05/0.08565, allocations: 13.72 kB / 458.1 MB, free: 8.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.08579, allocations: 314.8 kB / 458.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.03e-05/0.08581, allocations: 8.062 kB / 458.4 MB, free: 8.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.562e-06/0.08582, allocations: 4 kB / 458.4 MB, free: 8.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.033e-05/0.08584, allocations: 4.859 kB / 458.4 MB, free: 8.055 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.08585, allocations: 0 / 458.4 MB, free: 8.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.757e-05/0.08592, allocations: 45.58 kB / 458.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.08594, allocations: 6.344 kB / 458.5 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.08595, allocations: 0 / 458.5 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.08597, allocations: 4 kB / 458.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.076e-05/0.086, allocations: 96 / 458.5 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.08601, allocations: 7.938 kB / 458.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.466e-05/0.08604, allocations: 0 / 458.5 MB, free: 7.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.08605, allocations: 0 / 458.5 MB, free: 7.988 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 9.639e-05/0.08615, allocations: 126.4 kB / 458.6 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.08618, allocations: 11.89 kB / 458.6 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.884e-05/0.08622, allocations: 11.47 kB / 458.6 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.08623, allocations: 3.984 kB / 458.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.08623, allocations: 0 / 458.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.08624, allocations: 0 / 458.7 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.08639, allocations: 169.6 kB / 458.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.0864, allocations: 0 / 458.8 MB, free: 7.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.522e-06/0.08641, allocations: 4 kB / 458.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.08642, allocations: 4 kB / 458.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.739e-06/0.08643, allocations: 0 / 458.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.08643, allocations: 0 / 458.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.08644, allocations: 0 / 458.8 MB, free: 7.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.567e-05/0.08653, allocations: 65.06 kB / 458.9 MB, free: 7.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.0866, allocations: 93.08 kB / 459 MB, free: 7.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.319e-05/0.08663, allocations: 4 kB / 459 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.926e-05/0.08666, allocations: 11.92 kB / 459 MB, free: 7.395 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.08668, allocations: 3.984 kB / 459 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.08669, allocations: 4 kB / 459 MB, free: 7.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001031/0.0868, allocations: 115.3 kB / 459.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.0868, allocations: 0 / 459.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000361/0.08717, allocations: 111.5 kB / 459.2 MB, free: 7.164 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.001178/0.08836, allocations: 0.882 MB / 460.1 MB, free: 6.328 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.052e-05/0.08845, allocations: 11.88 kB / 460.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.08846, allocations: 0 / 460.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.884e-06/0.08847, allocations: 4 kB / 460.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001633/0.08864, allocations: 12.11 kB / 460.1 MB, free: 6.301 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.08989, allocations: 1.273 MB / 461.4 MB, free: 4.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.09022, allocations: 0.6883 MB / 462.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.019e-05/0.09027, allocations: 15.98 kB / 462.1 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.09032, allocations: 23.44 kB / 462.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.09033, allocations: 0 / 462.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02607/0.1164, allocations: 3.843 MB / 466 MB, free: 420 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/7.918, allocations: 11.75 kB / 466 MB, free: 412 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)