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.001184/0.001184, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001154/0.001154, allocations: 193.8 kB / 16.25 MB, free: 6.625 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.311/1.311, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005788/0.005788, allocations: 0.998 MB / 291.1 MB, free: 1.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 351.7 MB, free: 2.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.09077, allocations: 49.66 MB / 401.3 MB, free: 444 kB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.1528/0.2436, allocations: 0.5512 MB / 401.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.2454, allocations: 1.32 MB / 403.2 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.877e-05/0.2454, allocations: 1.125 kB / 403.2 MB, free: 9.691 MB / 286.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 ‘Modelica.Utilities.Streams.readLine‘. [/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.001261/0.2467, allocations: 278 kB / 403.5 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.262e-05/0.2468, allocations: 28.44 kB / 403.5 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.869e-05/0.2468, allocations: 8.297 kB / 403.5 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.95e-05/0.2469, allocations: 26.23 kB / 403.5 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.312e-05/0.2469, allocations: 2.328 kB / 403.5 MB, free: 9.547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.655e-05/0.247, allocations: 24.66 kB / 403.6 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.727e-05/0.247, allocations: 25.89 kB / 403.6 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.146e-05/0.2471, allocations: 1.094 kB / 403.6 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.2475, allocations: 320.6 kB / 403.9 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.636e-05/0.2475, allocations: 15.48 kB / 403.9 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.612e-05/0.2476, allocations: 24.92 kB / 403.9 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.248, allocations: 295.2 kB / 404.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.248, allocations: 0 / 404.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.248, allocations: 0 / 404.2 MB, free: 9.312 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.248, allocations: 0 / 404.2 MB, free: 9.312 MB / 286.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.0003901/0.2484, allocations: 440 kB / 404.6 MB, free: 8.902 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.2484, allocations: 9.969 kB / 404.7 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.601e-05/0.2485, allocations: 107.1 kB / 404.8 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.2485, allocations: 84 kB / 404.8 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001291/0.2487, allocations: 276.4 kB / 405.1 MB, free: 8.43 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.2487, allocations: 156.1 kB / 405.3 MB, free: 8.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.2487, allocations: 150.9 kB / 405.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.469e-05/0.2487, allocations: 106 kB / 405.5 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.2488, allocations: 80.16 kB / 405.6 MB, free: 7.941 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.287e-05/0.2488, allocations: 157.1 kB / 405.8 MB, free: 7.793 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.2488, allocations: 150.6 kB / 405.9 MB, free: 7.645 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.848e-05/0.2488, allocations: 152.3 kB / 406 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001804/0.249, allocations: 468.4 kB / 406.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.757e-05/0.2491, allocations: 166.3 kB / 406.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.41e-05/0.2491, allocations: 84.08 kB / 406.7 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.176e-05/0.2491, allocations: 84.31 kB / 406.8 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001058/0.2492, allocations: 67.69 kB / 406.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 3.627e-06/0.2492, allocations: 1.078 kB / 406.9 MB, free: 6.613 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001159/0.2493, allocations: 43.06 kB / 406.9 MB, free: 6.574 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.2494, allocations: 52.62 kB / 407 MB, free: 6.512 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.2495, allocations: 156.8 kB / 407.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.991e-06/0.2495, allocations: 27.17 kB / 407.2 MB, free: 6.359 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.154e-05/0.2495, allocations: 86.94 kB / 407.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.146e-05/0.2496, allocations: 1.031 kB / 407.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/0.2496, allocations: 15.69 kB / 407.3 MB, free: 6.254 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.333e-05/0.2496, allocations: 314.7 kB / 407.6 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.544e-06/0.2496, allocations: 1.125 kB / 407.6 MB, free: 5.941 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.64e-06/0.2497, allocations: 6.125 kB / 407.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.72e-05/0.2497, allocations: 14.08 kB / 407.6 MB, free: 5.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2497, allocations: 1.094 kB / 407.6 MB, free: 5.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.79e-05/0.2497, allocations: 37.28 kB / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.2497, allocations: 5.594 kB / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.2498, allocations: 0 / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.2498, allocations: 4.016 kB / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.719e-05/0.2498, allocations: 0 / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.239e-06/0.2498, allocations: 2 kB / 407.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.526e-05/0.2498, allocations: 5.156 kB / 407.7 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.108e-06/0.2498, allocations: 1.125 kB / 407.7 MB, free: 5.883 MB / 286.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 5.243e-05/0.2499, allocations: 115.9 kB / 407.8 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.2499, allocations: 12.48 kB / 407.8 MB, free: 5.762 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.596e-05/0.25, allocations: 12.06 kB / 407.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.25, allocations: 2.5 kB / 407.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.25, allocations: 0 / 407.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.25, allocations: 0.6562 kB / 407.8 MB, free: 5.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.426e-05/0.2501, allocations: 166.9 kB / 408 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2501, allocations: 7.938 kB / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.987e-06/0.2501, allocations: 2.016 kB / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-06/0.2501, allocations: 0 / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.599e-06/0.2501, allocations: 0 / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.2501, allocations: 1.094 kB / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2501, allocations: 0.7031 kB / 408 MB, free: 5.547 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.049e-05/0.2502, allocations: 64.39 kB / 408 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.83e-05/0.2502, allocations: 88.09 kB / 408.1 MB, free: 5.379 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.211e-05/0.2502, allocations: 10.55 kB / 408.1 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.8e-05/0.2503, allocations: 5.125 kB / 408.1 MB, free: 5.375 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.305e-06/0.2503, allocations: 4.688 kB / 408.1 MB, free: 5.371 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-06/0.2503, allocations: 1.062 kB / 408.1 MB, free: 5.371 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.2504, allocations: 125.9 kB / 408.3 MB, free: 5.281 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2504, allocations: 0 / 408.3 MB, free: 5.281 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000341/0.2507, allocations: 105.1 kB / 408.4 MB, free: 5.25 MB / 286.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.0007511/0.2515, allocations: 0.8742 MB / 409.2 MB, free: 4.566 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 6.337e-05/0.2516, allocations: 8.938 kB / 409.2 MB, free: 4.562 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2516, allocations: 0 / 409.2 MB, free: 4.562 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.134e-06/0.2516, allocations: 7.141 kB / 409.3 MB, free: 4.559 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.2517, allocations: 12.72 kB / 409.3 MB, free: 4.555 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007838/0.2525, allocations: 1.283 MB / 410.6 MB, free: 3.387 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.068e-05/0.2526, allocations: 0.6852 MB / 411.2 MB, free: 2.688 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.527e-05/0.2527, allocations: 15 kB / 411.3 MB, free: 2.688 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.2527, allocations: 27.05 kB / 411.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2527, allocations: 0 / 411.3 MB, free: 2.676 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0339/0.2866, allocations: 3.715 MB / 415 MB, free: 2.184 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.2868, allocations: 232.4 kB / 415.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.636/1.923, allocations: 7.922 kB / 415.2 MB, free: 1.918 MB / 286.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)