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.001143/0.001143, allocations: 108 kB / 15.6 MB, free: 132 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.001145/0.001145, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006144/0.006144, allocations: 0.9979 MB / 291.4 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 55.91 kB / 352.2 MB, free: 6.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.09652, allocations: 49.64 MB / 401.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.001726/0.09829, allocations: 0.4902 MB / 402.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.1004, allocations: 1.337 MB / 403.6 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.962e-05/0.1004, allocations: 0 / 403.6 MB, free: 3.211 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.00142/0.1018, allocations: 309.2 kB / 403.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.771e-05/0.1019, allocations: 23.92 kB / 404 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.643e-05/0.1019, allocations: 15.97 kB / 404 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.388e-05/0.102, allocations: 35.91 kB / 404 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.282e-05/0.1021, allocations: 0 / 404 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.437e-05/0.1021, allocations: 15.92 kB / 404 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.864e-05/0.1022, allocations: 31.34 kB / 404.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.1022, allocations: 0 / 404.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004609/0.1027, allocations: 315.6 kB / 404.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.81e-05/0.1028, allocations: 23.97 kB / 404.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.201e-05/0.1028, allocations: 15.88 kB / 404.4 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.1032, allocations: 295.4 kB / 404.7 MB, free: 2.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1032, allocations: 4 kB / 404.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1032, allocations: 0 / 404.7 MB, free: 2.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1033, allocations: 0 / 404.7 MB, free: 2.152 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.0005058/0.1038, allocations: 447.5 kB / 405.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1038, allocations: 8.031 kB / 405.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.019e-05/0.1039, allocations: 110 kB / 405.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.638e-05/0.104, allocations: 84.12 kB / 405.3 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001931/0.1042, allocations: 275.5 kB / 405.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.471e-05/0.1042, allocations: 154.9 kB / 405.8 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.1043, allocations: 150.9 kB / 405.9 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.038e-05/0.1043, allocations: 108.9 kB / 406 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.1044, allocations: 79.28 kB / 406.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.1044, allocations: 154.6 kB / 406.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.579e-05/0.1045, allocations: 150.6 kB / 406.4 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.925e-05/0.1046, allocations: 154.5 kB / 406.5 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003059/0.1049, allocations: 465.9 kB / 407 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.871e-05/0.105, allocations: 173.1 kB / 407.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.81e-05/0.105, allocations: 80.14 kB / 407.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.105, allocations: 79.22 kB / 407.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001355/0.1052, allocations: 67.31 kB / 407.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.813e-06/0.1052, allocations: 0 / 407.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000127/0.1053, allocations: 37.7 kB / 407.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1054, allocations: 51.41 kB / 407.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.1055, allocations: 153.9 kB / 407.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.1055, allocations: 37.64 kB / 407.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.757e-05/0.1056, allocations: 88.14 kB / 407.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.1056, allocations: 3.906 kB / 407.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-05/0.1056, allocations: 9.719 kB / 407.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.1058, allocations: 326.8 kB / 408.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.057e-06/0.1058, allocations: 0 / 408.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.34e-06/0.1058, allocations: 0 / 408.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.332e-05/0.1058, allocations: 16.92 kB / 408.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1058, allocations: 0 / 408.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.999e-05/0.1059, allocations: 37.64 kB / 408.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1059, allocations: 4 kB / 408.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.457e-06/0.1059, allocations: 0 / 408.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.1059, allocations: 0 / 408.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.007e-05/0.106, allocations: 7.922 kB / 408.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.106, allocations: 0 / 408.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.787e-05/0.106, allocations: 4 kB / 408.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.106, allocations: 0 / 408.1 MB, free: 14.46 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.078e-05/0.1061, allocations: 121.9 kB / 408.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.1061, allocations: 15.83 kB / 408.3 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.1062, allocations: 7.531 kB / 408.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1062, allocations: 0 / 408.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.1062, allocations: 0 / 408.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.1062, allocations: 0 / 408.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001282/0.1063, allocations: 169.6 kB / 408.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1063, allocations: 0 / 408.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.456e-06/0.1063, allocations: 0 / 408.4 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1063, allocations: 4 kB / 408.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.1063, allocations: 4 kB / 408.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1064, allocations: 0 / 408.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1064, allocations: 0 / 408.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.128e-05/0.1064, allocations: 69 kB / 408.5 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.1065, allocations: 85.02 kB / 408.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.1065, allocations: 7.984 kB / 408.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.02e-05/0.1066, allocations: 4 kB / 408.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.947e-06/0.1066, allocations: 7.969 kB / 408.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-06/0.1066, allocations: 0 / 408.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.399e-05/0.1067, allocations: 127.6 kB / 408.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1067, allocations: 0 / 408.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.1071, allocations: 99.97 kB / 408.8 MB, free: 13.66 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.000916/0.108, allocations: 0.8912 MB / 409.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.217e-05/0.108, allocations: 11.92 kB / 409.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1081, allocations: 0 / 409.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.154e-06/0.1081, allocations: 4 kB / 409.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.1082, allocations: 8 kB / 409.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.1093, allocations: 1.281 MB / 411 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.1095, allocations: 0.6883 MB / 411.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.371e-05/0.1096, allocations: 19.92 kB / 411.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.549e-05/0.1097, allocations: 23.42 kB / 411.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1097, allocations: 0 / 411.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04241/0.1521, allocations: 3.796 MB / 415.6 MB, free: 6.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.033/8.186, allocations: 6.281 kB / 415.6 MB, free: 6.91 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 & /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)