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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 212.3 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.379/1.379, allocations: 230.6 MB / 256 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.007031/0.007031, allocations: 1.012 MB / 313.4 MB, free: 1.898 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 71.89 kB / 435.7 MB, free: 16.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09194, allocations: 53.58 MB / 489.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001785/0.09373, allocations: 0.4892 MB / 489.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002444/0.09617, allocations: 1.414 MB / 491.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.897e-05/0.0962, allocations: 8 kB / 491.2 MB, free: 8.852 MB / 350.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.001458/0.09766, allocations: 320.2 kB / 491.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.218e-05/0.09772, allocations: 27.91 kB / 491.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.725e-05/0.09777, allocations: 11.98 kB / 491.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.712e-05/0.09786, allocations: 31.91 kB / 491.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.052e-05/0.0979, allocations: 3.984 kB / 491.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.799e-05/0.09794, allocations: 15.94 kB / 491.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.017e-05/0.098, allocations: 19.97 kB / 491.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.398e-05/0.09801, allocations: 0 / 491.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005646/0.09857, allocations: 319.5 kB / 491.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.729e-05/0.09864, allocations: 27.86 kB / 491.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.09868, allocations: 19.91 kB / 491.9 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005238/0.0992, allocations: 283.5 kB / 492.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.0992, allocations: 0 / 492.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.0992, allocations: 0 / 492.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.09921, allocations: 4 kB / 492.2 MB, free: 7.793 MB / 350.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.0005153/0.09973, allocations: 365.4 kB / 492.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.09976, allocations: 8.031 kB / 492.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.843e-05/0.09983, allocations: 110 kB / 492.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.236e-05/0.09991, allocations: 88.16 kB / 492.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.1001, allocations: 229.7 kB / 493 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.058e-05/0.1002, allocations: 150.9 kB / 493.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.1003, allocations: 150.9 kB / 493.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.246e-05/0.1003, allocations: 108.9 kB / 493.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.291e-05/0.1004, allocations: 75.28 kB / 493.5 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.1004, allocations: 150.6 kB / 493.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.714e-05/0.1005, allocations: 150.6 kB / 493.8 MB, free: 6.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.519e-05/0.1006, allocations: 158.5 kB / 493.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003086/0.1009, allocations: 436.9 kB / 494.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.671e-05/0.1009, allocations: 169.1 kB / 494.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.851e-05/0.101, allocations: 80.14 kB / 494.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.896e-05/0.101, allocations: 87.2 kB / 494.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001304/0.1012, allocations: 67.31 kB / 494.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.174e-06/0.1012, allocations: 4 kB / 494.7 MB, free: 5.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001426/0.1013, allocations: 33.64 kB / 494.8 MB, free: 5.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.1013, allocations: 55.41 kB / 494.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.1015, allocations: 142 kB / 495 MB, free: 4.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1015, allocations: 25.7 kB / 495 MB, free: 4.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.1016, allocations: 92.12 kB / 495.1 MB, free: 4.734 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.1016, allocations: 7.953 kB / 495.1 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.744e-05/0.1016, allocations: 13.72 kB / 495.1 MB, free: 4.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1017, allocations: 310.8 kB / 495.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.825e-06/0.1017, allocations: 0 / 495.4 MB, free: 4.395 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.1018, allocations: 11.98 kB / 495.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.231e-05/0.1018, allocations: 8.859 kB / 495.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1018, allocations: 0 / 495.4 MB, free: 4.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.609e-05/0.1019, allocations: 45.64 kB / 495.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1019, allocations: 4 kB / 495.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1019, allocations: 0 / 495.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1019, allocations: 4 kB / 495.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.923e-05/0.1019, allocations: 0 / 495.5 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.1019, allocations: 3.938 kB / 495.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/0.1019, allocations: 0 / 495.5 MB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.1019, allocations: 0 / 495.5 MB, free: 4.309 MB / 350.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.921e-05/0.102, allocations: 117.8 kB / 495.6 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.1021, allocations: 15.89 kB / 495.6 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.569e-05/0.1021, allocations: 19.44 kB / 495.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1021, allocations: 0 / 495.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1021, allocations: 0 / 495.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1021, allocations: 0 / 495.6 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001256/0.1022, allocations: 132.7 kB / 495.8 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1022, allocations: 3.938 kB / 495.8 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.537e-06/0.1022, allocations: 4 kB / 495.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1022, allocations: 0 / 495.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-06/0.1022, allocations: 0 / 495.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1022, allocations: 0 / 495.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1022, allocations: 0 / 495.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.158e-05/0.1023, allocations: 73 kB / 495.8 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.998e-05/0.1024, allocations: 15.94 kB / 495.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.839e-05/0.1024, allocations: 0 / 495.9 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.919e-05/0.1024, allocations: 8 kB / 495.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.263e-05/0.1024, allocations: 0 / 495.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.733e-06/0.1024, allocations: 0 / 495.9 MB, free: 3.852 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.039e-05/0.1025, allocations: 115.2 kB / 496 MB, free: 3.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1025, allocations: 0 / 496 MB, free: 3.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003601/0.1029, allocations: 103.6 kB / 496.1 MB, free: 3.637 MB / 350.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.001138/0.104, allocations: 0.8848 MB / 497 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.839e-05/0.1041, allocations: 11.98 kB / 497 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1041, allocations: 0 / 497 MB, free: 2.789 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.781e-06/0.1041, allocations: 4 kB / 497 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.1042, allocations: 8 kB / 497 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.1054, allocations: 1.257 MB / 498.2 MB, free: 1.438 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.125e-05/0.1055, allocations: 67.28 kB / 498.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.371e-05/0.1055, allocations: 19.97 kB / 498.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/0.1056, allocations: 27.59 kB / 498.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1056, allocations: 0 / 498.4 MB, free: 1.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03064/0.1362, allocations: 4.425 MB / 0.491 GB, free: 13.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.73, allocations: 11.75 kB / 0.491 GB, free: 13 MB / 366.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.347509139683098] Failed to read output from testmodel.py, exit status != 0: 10.832234025001526 11.029805463 10.753312061 Calling exit ...