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.004824/0.004824, allocations: 100.8 kB / 15.73 MB, free: 6.051 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.001117/0.001117, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.312/1.312, 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.006055/0.006055, allocations: 1.001 MB / 291.5 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 62.91 kB / 402.5 MB, free: 32.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06973/0.0709, allocations: 49.65 MB / 452.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001518/0.07245, allocations: 0.5008 MB / 452.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001849/0.07432, allocations: 1.341 MB / 454 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.696e-05/0.07437, allocations: 0 / 454 MB, free: 12.67 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.001296/0.07567, allocations: 310.5 kB / 454.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.041e-05/0.07573, allocations: 31.73 kB / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.487e-05/0.07578, allocations: 8 kB / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.164e-05/0.07587, allocations: 35.89 kB / 454.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.951e-05/0.0759, allocations: 4 kB / 454.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.51e-05/0.07593, allocations: 8 kB / 454.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.277e-05/0.076, allocations: 23.91 kB / 454.4 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.07602, allocations: 4 kB / 454.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004492/0.07648, allocations: 339.5 kB / 454.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.43e-05/0.07654, allocations: 15.98 kB / 454.7 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.07659, allocations: 19.86 kB / 454.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004105/0.077, allocations: 299.5 kB / 455 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.07701, allocations: 3.938 kB / 455 MB, free: 11.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.07702, allocations: 0 / 455 MB, free: 11.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.07703, allocations: 0 / 455 MB, free: 11.6 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.0004391/0.07747, allocations: 442.5 kB / 455.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.07752, allocations: 12.03 kB / 455.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.371e-05/0.07758, allocations: 110 kB / 455.6 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.77e-05/0.07765, allocations: 80.22 kB / 455.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.07784, allocations: 275.6 kB / 455.9 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.253e-05/0.07789, allocations: 154.9 kB / 456.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.38e-05/0.07794, allocations: 150.9 kB / 456.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.157e-05/0.07799, allocations: 108.9 kB / 456.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.583e-05/0.07802, allocations: 75.28 kB / 456.4 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.07807, allocations: 150.6 kB / 456.6 MB, free: 9.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.274e-05/0.07812, allocations: 154.5 kB / 456.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.677e-05/0.07817, allocations: 158.6 kB / 456.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002707/0.07845, allocations: 473.8 kB / 457.3 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.751e-05/0.07852, allocations: 165.1 kB / 457.5 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.07856, allocations: 84.14 kB / 457.6 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.07859, allocations: 79.22 kB / 457.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001293/0.07873, allocations: 75.27 kB / 457.7 MB, free: 8.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.993e-06/0.07874, allocations: 3.938 kB / 457.7 MB, free: 8.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001337/0.07888, allocations: 33.7 kB / 457.8 MB, free: 8.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.07892, allocations: 55.34 kB / 457.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.07907, allocations: 153.8 kB / 458 MB, free: 8.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.059e-05/0.07909, allocations: 29.83 kB / 458 MB, free: 8.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/0.07914, allocations: 88.14 kB / 458.1 MB, free: 8.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.07916, allocations: 4 kB / 458.1 MB, free: 8.324 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.704e-05/0.07919, allocations: 9.719 kB / 458.1 MB, free: 8.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.07929, allocations: 314.8 kB / 458.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.052e-05/0.0793, allocations: 8 kB / 458.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.47e-06/0.07931, allocations: 0 / 458.4 MB, free: 7.984 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.321e-05/0.07934, allocations: 12.92 kB / 458.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.07935, allocations: 0 / 458.4 MB, free: 7.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.137e-05/0.07941, allocations: 41.53 kB / 458.5 MB, free: 7.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.07944, allocations: 10.34 kB / 458.5 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.07944, allocations: 3.938 kB / 458.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.07946, allocations: 0 / 458.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.772e-05/0.07948, allocations: 0 / 458.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.07949, allocations: 0 / 458.5 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.688e-05/0.07952, allocations: 3.984 kB / 458.5 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.07954, allocations: 4 kB / 458.5 MB, free: 7.902 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 7.618e-05/0.07962, allocations: 122.5 kB / 458.6 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.652e-05/0.07965, allocations: 11.89 kB / 458.6 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.619e-05/0.07969, allocations: 11.52 kB / 458.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.0797, allocations: 0 / 458.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.07971, allocations: 4 kB / 458.6 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.07972, allocations: 0 / 458.6 MB, free: 7.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.07985, allocations: 161.6 kB / 458.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.07986, allocations: 0 / 458.8 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.07988, allocations: 7.984 kB / 458.8 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.07988, allocations: 4 kB / 458.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-06/0.07989, allocations: 0 / 458.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.0799, allocations: 0 / 458.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.0799, allocations: 0 / 458.8 MB, free: 7.523 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.09e-05/0.07999, allocations: 65.02 kB / 458.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.08004, allocations: 89.05 kB / 458.9 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.08007, allocations: 7.984 kB / 459 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.738e-05/0.0801, allocations: 4 kB / 459 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-06/0.08012, allocations: 8.031 kB / 459 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-06/0.08013, allocations: 0 / 459 MB, free: 7.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.078e-05/0.08022, allocations: 119.7 kB / 459.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08023, allocations: 0 / 459.1 MB, free: 7.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003527/0.08058, allocations: 115.5 kB / 459.2 MB, free: 7.086 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.0009337/0.08153, allocations: 0.891 MB / 460.1 MB, free: 6.238 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 6.503e-05/0.0816, allocations: 4 kB / 460.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.08161, allocations: 0 / 460.1 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.314e-06/0.08162, allocations: 3.984 kB / 460.1 MB, free: 6.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.08178, allocations: 8 kB / 460.1 MB, free: 6.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.08279, allocations: 1.277 MB / 461.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.08301, allocations: 0.6844 MB / 462.1 MB, free: 4.152 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.053e-05/0.08306, allocations: 27.94 kB / 462.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.08311, allocations: 23.42 kB / 462.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.08312, allocations: 0 / 462.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02082/0.1039, allocations: 3.841 MB / 466 MB, free: 340 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.463/7.567, allocations: 8.047 kB / 466 MB, free: 332 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)