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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009426/0.0009423, allocations: 178.9 kB / 15.44 MB, free: 0.6562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.004846/0.004846, allocations: 0.9997 MB / 17.19 MB, free: 6.043 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.258/1.258, allocations: 223.3 MB / 241.4 MB, free: 4.484 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007483/0.0007483, allocations: 103.1 kB / 292.8 MB, free: 1 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003046, allocations: 12 kB / 354.3 MB, free: 1.922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2709, allocations: 50.63 MB / 404.9 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadStringCSV): time 0.0005357/0.2715, allocations: 232 kB / 405.2 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002167/0.2737, allocations: 1.333 MB / 406.5 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.2737, allocations: 0 / 406.5 MB, free: 9.824 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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+X/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+X/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+X/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.001441/0.2751, allocations: 247.9 kB / 406.7 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.165e-05/0.2752, allocations: 26.73 kB / 406.8 MB, free: 9.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.951e-05/0.2752, allocations: 12.19 kB / 406.8 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.33e-05/0.2753, allocations: 23.73 kB / 406.8 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.617e-05/0.2754, allocations: 2.625 kB / 406.8 MB, free: 9.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.647e-05/0.2754, allocations: 13.88 kB / 406.8 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.925e-05/0.2755, allocations: 25.41 kB / 406.8 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.2755, allocations: 1.438 kB / 406.8 MB, free: 9.719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000455/0.276, allocations: 318.8 kB / 407.1 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.825e-05/0.276, allocations: 22.34 kB / 407.2 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.83e-05/0.2761, allocations: 47.41 kB / 407.2 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.2764, allocations: 290.4 kB / 407.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2765, allocations: 0 / 407.5 MB, free: 9.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2765, allocations: 3.938 kB / 407.5 MB, free: 9.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.167e-06/0.2765, allocations: 1.906 kB / 407.5 MB, free: 9.504 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.0003775/0.2769, allocations: 414.9 kB / 407.9 MB, free: 9.098 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2769, allocations: 9.969 kB / 407.9 MB, free: 9.098 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.166e-05/0.2769, allocations: 112.4 kB / 408 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.239e-05/0.277, allocations: 83.95 kB / 408.1 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000162/0.2772, allocations: 276.1 kB / 408.4 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.338e-05/0.2772, allocations: 150.9 kB / 408.5 MB, free: 8.469 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.2772, allocations: 152.6 kB / 408.7 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.773e-05/0.2773, allocations: 112.9 kB / 408.8 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.2773, allocations: 77.12 kB / 408.9 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.2773, allocations: 154.9 kB / 409 MB, free: 7.98 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.219e-05/0.2774, allocations: 154.5 kB / 409.2 MB, free: 7.828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.254e-05/0.2774, allocations: 155.8 kB / 409.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.2776, allocations: 461.8 kB / 409.8 MB, free: 7.191 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.142e-05/0.2776, allocations: 166.5 kB / 409.9 MB, free: 7.02 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.736e-05/0.2777, allocations: 81.91 kB / 410 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.2777, allocations: 79.22 kB / 410.1 MB, free: 6.859 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/0.2778, allocations: 73.48 kB / 410.2 MB, free: 6.801 MB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.2778, allocations: 1.188 kB / 410.2 MB, free: 6.801 MB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.000115/0.2779, allocations: 38.64 kB / 410.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.278, allocations: 57.33 kB / 410.3 MB, free: 6.699 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.2781, allocations: 153.2 kB / 410.4 MB, free: 6.582 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.841e-06/0.2781, allocations: 25.7 kB / 410.4 MB, free: 6.551 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.657e-05/0.2781, allocations: 92 kB / 410.5 MB, free: 6.461 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.2781, allocations: 1.281 kB / 410.5 MB, free: 6.461 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.2782, allocations: 9.719 kB / 410.5 MB, free: 6.445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.451e-05/0.2782, allocations: 315.7 kB / 410.8 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.141e-06/0.2782, allocations: 0 / 410.8 MB, free: 6.133 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-06/0.2782, allocations: 5.125 kB / 410.8 MB, free: 6.129 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.924e-05/0.2783, allocations: 12.25 kB / 410.9 MB, free: 6.117 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2783, allocations: 0 / 410.9 MB, free: 6.117 MB / 286.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.744e-05/0.2783, allocations: 46.34 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.2783, allocations: 6.625 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.2783, allocations: 1.156 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.2784, allocations: 0 / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.819e-05/0.2784, allocations: 1.094 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.2784, allocations: 1.219 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.52e-05/0.2784, allocations: 2.188 kB / 410.9 MB, free: 6.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.2784, allocations: 4.031 kB / 410.9 MB, free: 6.07 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.935e-05/0.2785, allocations: 120.5 kB / 411 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.2785, allocations: 8.281 kB / 411 MB, free: 5.949 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.2786, allocations: 11.88 kB / 411.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2786, allocations: 1.469 kB / 411.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2786, allocations: 0.6562 kB / 411.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.2786, allocations: 0 / 411.1 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.909e-05/0.2787, allocations: 165.9 kB / 411.2 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.2787, allocations: 1.469 kB / 411.2 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-06/0.2787, allocations: 0.75 kB / 411.2 MB, free: 5.742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.2787, allocations: 4 kB / 411.2 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-06/0.2787, allocations: 5.047 kB / 411.2 MB, free: 5.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2787, allocations: 5.016 kB / 411.2 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2787, allocations: 1.031 kB / 411.2 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.819e-05/0.2788, allocations: 67.53 kB / 411.3 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.254e-05/0.2788, allocations: 84.25 kB / 411.4 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.929e-05/0.2788, allocations: 2.453 kB / 411.4 MB, free: 5.562 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.78e-05/0.2789, allocations: 14.34 kB / 411.4 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-06/0.2789, allocations: 0 / 411.4 MB, free: 5.555 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.354e-06/0.2789, allocations: 4.656 kB / 411.4 MB, free: 5.551 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.602e-05/0.279, allocations: 120.6 kB / 411.5 MB, free: 5.465 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.279, allocations: 0 / 411.5 MB, free: 5.465 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000334/0.2793, allocations: 101.3 kB / 411.6 MB, free: 5.438 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.0007643/0.2801, allocations: 0.8919 MB / 412.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 5.465e-05/0.2802, allocations: 7.484 kB / 412.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2802, allocations: 0 / 412.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.37e-06/0.2802, allocations: 2.406 kB / 412.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000146/0.2803, allocations: 12.05 kB / 412.5 MB, free: 4.738 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008319/0.2812, allocations: 1.279 MB / 413.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.2813, allocations: 0.6806 MB / 414.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.2813, allocations: 14.72 kB / 414.5 MB, free: 2.879 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.238e-05/0.2814, allocations: 25.52 kB / 414.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2814, allocations: 0 / 414.5 MB, free: 2.867 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01587/0.2973, allocations: 3.579 MB / 418.1 MB, free: 2.469 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/0.2974, allocations: 211.7 kB / 418.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/1.979, allocations: 7.938 kB / 418.3 MB, free: 2.211 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/linux/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)