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.007742/0.007742, allocations: 101.2 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.001967/0.001967, allocations: 194.3 kB / 16.68 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006981/0.006981, allocations: 1.02 MB / 291.6 MB, free: 13.71 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 59.91 kB / 402.5 MB, free: 32.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.08066, allocations: 49.65 MB / 452.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001499/0.0822, allocations: 0.4968 MB / 452.6 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002173/0.08439, allocations: 1.341 MB / 454 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.61e-05/0.08445, allocations: 0 / 454 MB, free: 12.62 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.001464/0.08593, allocations: 314.8 kB / 454.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.73e-05/0.08599, allocations: 23.97 kB / 454.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.966e-05/0.08604, allocations: 11.92 kB / 454.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.651e-05/0.08614, allocations: 27.97 kB / 454.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.609e-05/0.08618, allocations: 4 kB / 454.3 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.232e-05/0.08621, allocations: 7.984 kB / 454.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.014e-05/0.0863, allocations: 31.91 kB / 454.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.08632, allocations: 4 kB / 454.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005022/0.08683, allocations: 335.5 kB / 454.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.308e-05/0.0869, allocations: 15.97 kB / 454.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.047e-05/0.08695, allocations: 27.8 kB / 454.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004312/0.08739, allocations: 291.5 kB / 455 MB, free: 11.55 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.0874, allocations: 3.938 kB / 455.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.08741, allocations: 0 / 455.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.08742, allocations: 0 / 455.1 MB, free: 11.55 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.0005406/0.08797, allocations: 442.5 kB / 455.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.08801, allocations: 12.03 kB / 455.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.674e-05/0.08809, allocations: 110 kB / 455.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.08818, allocations: 80.22 kB / 455.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.08843, allocations: 275.5 kB / 456 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/0.0885, allocations: 154.9 kB / 456.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.08857, allocations: 154.9 kB / 456.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.014e-05/0.08865, allocations: 108.9 kB / 456.4 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.484e-05/0.08869, allocations: 75.28 kB / 456.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.92e-05/0.08878, allocations: 154.5 kB / 456.6 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.537e-05/0.08884, allocations: 150.6 kB / 456.7 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.998e-05/0.08891, allocations: 162.5 kB / 456.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003405/0.08926, allocations: 473.9 kB / 457.4 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.395e-05/0.08936, allocations: 165.1 kB / 457.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.913e-05/0.08941, allocations: 80.14 kB / 457.6 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.506e-05/0.08945, allocations: 79.22 kB / 457.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/0.08962, allocations: 79.27 kB / 457.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 2.254e-06/0.08963, allocations: 0 / 457.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000167/0.0898, allocations: 41.62 kB / 457.8 MB, free: 8.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.08985, allocations: 51.41 kB / 457.8 MB, free: 8.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.09002, allocations: 153.8 kB / 458 MB, free: 8.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.09005, allocations: 29.83 kB / 458 MB, free: 8.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.617e-05/0.0901, allocations: 84.14 kB / 458.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.448e-05/0.09012, allocations: 0 / 458.1 MB, free: 8.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.513e-05/0.09016, allocations: 17.72 kB / 458.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.0903, allocations: 314.8 kB / 458.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.13e-05/0.09032, allocations: 4 kB / 458.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.581e-06/0.09033, allocations: 0 / 458.4 MB, free: 7.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.323e-05/0.09036, allocations: 8.922 kB / 458.4 MB, free: 7.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.09037, allocations: 4 kB / 458.4 MB, free: 7.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.925e-05/0.09044, allocations: 53.45 kB / 458.5 MB, free: 7.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.09046, allocations: 6.344 kB / 458.5 MB, free: 7.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.09048, allocations: 4 kB / 458.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.09049, allocations: 0 / 458.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.282e-05/0.09052, allocations: 0 / 458.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.09053, allocations: 0 / 458.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.906e-05/0.09057, allocations: 0 / 458.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.09058, allocations: 4 kB / 458.5 MB, free: 7.844 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.984e-05/0.09069, allocations: 118.5 kB / 458.6 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/0.09072, allocations: 11.89 kB / 458.6 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.616e-05/0.09077, allocations: 11.53 kB / 458.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.09078, allocations: 0 / 458.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.09079, allocations: 0 / 458.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.09079, allocations: 0 / 458.6 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001529/0.09095, allocations: 173.6 kB / 458.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.09096, allocations: 0 / 458.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.216e-06/0.09097, allocations: 3.938 kB / 458.8 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.09098, allocations: 4 kB / 458.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.09099, allocations: 4 kB / 458.8 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.091, allocations: 0 / 458.8 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.091, allocations: 0 / 458.8 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.776e-05/0.09109, allocations: 69 kB / 458.9 MB, free: 7.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.475e-05/0.09117, allocations: 89.05 kB / 459 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.09119, allocations: 0 / 459 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.394e-05/0.09122, allocations: 4 kB / 459 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.252e-05/0.09124, allocations: 8.031 kB / 459 MB, free: 7.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-06/0.09125, allocations: 0 / 459 MB, free: 7.258 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001058/0.09136, allocations: 119.2 kB / 459.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09137, allocations: 0 / 459.1 MB, free: 7.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004054/0.09178, allocations: 115.5 kB / 459.2 MB, free: 7.027 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.001211/0.093, allocations: 0.8861 MB / 460.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.305e-05/0.09309, allocations: 8 kB / 460.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.0931, allocations: 0 / 460.1 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.751e-06/0.09312, allocations: 4 kB / 460.1 MB, free: 6.176 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001664/0.09329, allocations: 11.92 kB / 460.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.09451, allocations: 1.281 MB / 461.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.09481, allocations: 0.6844 MB / 462.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.713e-05/0.09487, allocations: 24 kB / 462.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.286e-05/0.09493, allocations: 27.42 kB / 462.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.09493, allocations: 0 / 462.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02603/0.121, allocations: 3.835 MB / 466 MB, free: 272 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.813/7.934, allocations: 3.812 kB / 466 MB, free: 272 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_ReadStringCSV_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_ReadStringCSV.fmu > KeyWordIO_KeyWordIO.Examples.ReadStringCSV.pipe 2>&1)