Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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: translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 111 kB / 16.37 MB, free: 6.352 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.001017/0.001017, allocations: 192.2 kB / 17.31 MB, free: 5.895 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006224/0.006224, allocations: 0.9988 MB / 292.2 MB, free: 13.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 64.14 kB / 403.6 MB, free: 31.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08757/0.0888, allocations: 49.65 MB / 453.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002353/0.0912, allocations: 1.359 MB / 454.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.09238, allocations: 0.8052 MB / 455.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.357e-05/0.09242, allocations: 0 / 455.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.024e-05/0.09245, allocations: 0 / 455.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002169/0.09269, allocations: 7.875 kB / 455.4 MB, free: 11.98 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001958/0.09289, allocations: 43.88 kB / 455.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.379e-05/0.09296, allocations: 23.92 kB / 455.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.248e-05/0.09301, allocations: 4 kB / 455.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.037e-05/0.09305, allocations: 11.94 kB / 455.5 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.09321, allocations: 11.97 kB / 455.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.09323, allocations: 8 kB / 455.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.766e-05/0.09333, allocations: 39.97 kB / 455.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.344e-05/0.09335, allocations: 3.938 kB / 455.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.895e-05/0.09339, allocations: 15.92 kB / 455.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.09351, allocations: 43.94 kB / 455.6 MB, free: 11.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.09353, allocations: 4 kB / 455.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09353, allocations: 3.938 kB / 455.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.09354, allocations: 0 / 455.6 MB, free: 11.77 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004486/0.094, allocations: 377 kB / 456 MB, free: 11.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.09404, allocations: 16.03 kB / 456 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.259e-05/0.09408, allocations: 0.9375 kB / 456 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.09425, allocations: 164.4 kB / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.09426, allocations: 384 / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-06/0.09427, allocations: 384 / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.09439, allocations: 42.25 kB / 456.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.0944, allocations: 192 / 456.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.09442, allocations: 3.938 kB / 456.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.546e-06/0.09443, allocations: 0 / 456.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.946e-05/0.09449, allocations: 15.98 kB / 456.2 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001472/0.09464, allocations: 153.7 kB / 456.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.745e-05/0.09471, allocations: 22.52 kB / 456.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.917e-05/0.09475, allocations: 16.91 kB / 456.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.09477, allocations: 0 / 456.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000172/0.09495, allocations: 110.7 kB / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.09496, allocations: 0 / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002614/0.09523, allocations: 91.25 kB / 456.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.09528, allocations: 77.11 kB / 456.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.09536, allocations: 109.8 kB / 456.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.09539, allocations: 33.64 kB / 456.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.102e-05/0.09542, allocations: 80.14 kB / 456.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.09545, allocations: 8.031 kB / 456.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.807e-05/0.09548, allocations: 17.72 kB / 456.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.09559, allocations: 314.8 kB / 457.2 MB, free: 9.898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.672e-05/0.09564, allocations: 4 kB / 457.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.428e-05/0.09569, allocations: 25.7 kB / 457.3 MB, free: 9.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.193e-05/0.09578, allocations: 85.05 kB / 457.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.09579, allocations: 0 / 457.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001239/0.09592, allocations: 79.39 kB / 457.4 MB, free: 9.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.09596, allocations: 33.64 kB / 457.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.09597, allocations: 0 / 457.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.109e-05/0.09599, allocations: 0 / 457.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.437e-05/0.09605, allocations: 7.984 kB / 457.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.09606, allocations: 3.938 kB / 457.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.021e-05/0.0961, allocations: 12.06 kB / 457.5 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.136e-06/0.09611, allocations: 4 kB / 457.5 MB, free: 9.605 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001573/0.09628, allocations: 135.5 kB / 457.6 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.0963, allocations: 7.938 kB / 457.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.823e-05/0.09632, allocations: 7.516 kB / 457.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.09633, allocations: 0 / 457.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.09634, allocations: 3.984 kB / 457.6 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.09634, allocations: 4 kB / 457.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001064/0.09646, allocations: 157.7 kB / 457.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.09647, allocations: 4 kB / 457.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.687e-05/0.0965, allocations: 4 kB / 457.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.09651, allocations: 7.922 kB / 457.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.09652, allocations: 0 / 457.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.09652, allocations: 0 / 457.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.09653, allocations: 0 / 457.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.09668, allocations: 114.7 kB / 457.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.09673, allocations: 81.05 kB / 458 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.09675, allocations: 11.92 kB / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.869e-05/0.09678, allocations: 0 / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.436e-05/0.09682, allocations: 4 kB / 458 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.09683, allocations: 0 / 458 MB, free: 8.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.285e-05/0.09688, allocations: 91.27 kB / 458.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09689, allocations: 0 / 458.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002053/0.0971, allocations: 12 kB / 458.1 MB, free: 8.859 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: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0004423/0.09755, allocations: 207.5 kB / 458.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.09771, allocations: 75.38 kB / 458.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.09772, allocations: 0 / 458.4 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.884e-05/0.09779, allocations: 67.34 kB / 458.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.09794, allocations: 2.344 kB / 458.4 MB, free: 8.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002962/0.09824, allocations: 127.5 kB / 458.6 MB, free: 8.367 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.09851, allocations: 0.6882 MB / 459.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.749e-05/0.09854, allocations: 11.44 kB / 459.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09854, allocations: 0 / 459.3 MB, free: 7.641 MB / 334.1 MB Notification: Performance of Templates: time 0.0023/0.1008, allocations: 0.8811 MB / 460.2 MB, free: 6.762 MB / 334.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)