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.001087/0.001087, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006023/0.006023, allocations: 1.004 MB / 291.4 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 352.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.0877, allocations: 49.64 MB / 401.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001639/0.08938, allocations: 497.5 kB / 402.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.09157, allocations: 1.337 MB / 403.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.827e-05/0.09162, allocations: 4 kB / 403.6 MB, free: 3.246 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.001442/0.09307, allocations: 315.2 kB / 403.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.249e-05/0.09312, allocations: 23.92 kB / 404 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.593e-05/0.09317, allocations: 11.97 kB / 404 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.742e-05/0.09326, allocations: 31.91 kB / 404 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.675e-05/0.0933, allocations: 4 kB / 404 MB, free: 2.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.744e-05/0.09333, allocations: 15.92 kB / 404 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.187e-05/0.09341, allocations: 19.97 kB / 404 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.09343, allocations: 4 kB / 404.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004486/0.09388, allocations: 323.6 kB / 404.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.09395, allocations: 19.92 kB / 404.4 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.184e-05/0.09399, allocations: 15.94 kB / 404.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.09443, allocations: 299.4 kB / 404.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09445, allocations: 0 / 404.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.09446, allocations: 0 / 404.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.09446, allocations: 0 / 404.7 MB, free: 2.191 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.0004788/0.09495, allocations: 439.5 kB / 405.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.09499, allocations: 8.031 kB / 405.1 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.72e-05/0.09505, allocations: 106 kB / 405.2 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.09514, allocations: 88.12 kB / 405.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.09535, allocations: 283.5 kB / 405.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.447e-05/0.09541, allocations: 154.9 kB / 405.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.09547, allocations: 150.9 kB / 405.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.74e-05/0.09555, allocations: 108.9 kB / 406 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.09559, allocations: 75.28 kB / 406.1 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.168e-05/0.09566, allocations: 154.6 kB / 406.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.433e-05/0.09572, allocations: 154.5 kB / 406.4 MB, free: 408 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.937e-05/0.09578, allocations: 154.6 kB / 406.5 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003227/0.0961, allocations: 465.9 kB / 407 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.64e-05/0.0962, allocations: 169.1 kB / 407.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.436e-05/0.09624, allocations: 80.14 kB / 407.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.09628, allocations: 83.22 kB / 407.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.09642, allocations: 71.31 kB / 407.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.424e-06/0.09643, allocations: 0 / 407.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001541/0.09659, allocations: 33.7 kB / 407.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.09664, allocations: 55.39 kB / 407.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.0968, allocations: 157.7 kB / 407.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.09682, allocations: 25.7 kB / 407.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.09687, allocations: 84.14 kB / 407.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.09689, allocations: 8.125 kB / 407.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.09693, allocations: 13.72 kB / 407.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.09703, allocations: 314.8 kB / 408.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.026e-05/0.09705, allocations: 4 kB / 408.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.641e-06/0.09706, allocations: 3.938 kB / 408.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.358e-05/0.09709, allocations: 12.86 kB / 408.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.0971, allocations: 0 / 408.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.963e-05/0.09716, allocations: 37.64 kB / 408.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.35e-05/0.09718, allocations: 12 kB / 408.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.09719, allocations: 0 / 408.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.09721, allocations: 0 / 408.1 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.889e-05/0.09723, allocations: 7.922 kB / 408.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.09724, allocations: 0 / 408.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.713e-05/0.09727, allocations: 0 / 408.1 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.023e-05/0.09729, allocations: 4 kB / 408.1 MB, free: 14.5 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 6.938e-05/0.09736, allocations: 113.8 kB / 408.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.517e-05/0.09739, allocations: 11.83 kB / 408.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.567e-05/0.09743, allocations: 15.53 kB / 408.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.09743, allocations: 0 / 408.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.09744, allocations: 0 / 408.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.09745, allocations: 4 kB / 408.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001206/0.09757, allocations: 165.6 kB / 408.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.09759, allocations: 4 kB / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.24e-06/0.0976, allocations: 4 kB / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.0976, allocations: 0 / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-06/0.09761, allocations: 0 / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.09762, allocations: 0 / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09762, allocations: 0 / 408.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.821e-05/0.0977, allocations: 73 kB / 408.5 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.09776, allocations: 85.02 kB / 408.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.09779, allocations: 7.984 kB / 408.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.695e-05/0.09782, allocations: 3.938 kB / 408.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.819e-06/0.09784, allocations: 4 kB / 408.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-06/0.09784, allocations: 0 / 408.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.441e-05/0.09794, allocations: 131.7 kB / 408.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09795, allocations: 0 / 408.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003537/0.09831, allocations: 104 kB / 408.8 MB, free: 13.69 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.0008784/0.09919, allocations: 0.8836 MB / 409.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 5.907e-05/0.09926, allocations: 15.92 kB / 409.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.09927, allocations: 4 kB / 409.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.49e-06/0.09928, allocations: 0 / 409.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000143/0.09943, allocations: 8 kB / 409.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.1005, allocations: 1.269 MB / 411 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002089/0.1007, allocations: 0.6883 MB / 411.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.064e-05/0.1007, allocations: 23.95 kB / 411.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.472e-05/0.1008, allocations: 27.42 kB / 411.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1008, allocations: 0 / 411.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.1219, allocations: 3.797 MB / 415.6 MB, free: 6.953 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.738/6.86, allocations: 11.06 kB / 415.6 MB, free: 6.945 MB / 350.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)