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.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: 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.001587/0.001592, allocations: 106.3 kB / 16.27 MB, free: 6.41 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.001666/0.001666, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.423/1.423, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.007321/0.007321, allocations: 1.026 MB / 292.1 MB, free: 13.85 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 63.89 kB / 352.7 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2105, allocations: 49.64 MB / 402.4 MB, free: 35.59 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002075/0.2126, allocations: 1.358 MB / 403.7 MB, free: 34.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000855/0.2135, allocations: 0.7958 MB / 404.5 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.222e-05/0.2135, allocations: 0 / 404.5 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.698e-05/0.2136, allocations: 0.7188 kB / 404.5 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001854/0.2137, allocations: 7.938 kB / 404.5 MB, free: 33.43 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.000218/0.214, allocations: 51.81 kB / 404.6 MB, free: 33.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.635e-05/0.214, allocations: 15.98 kB / 404.6 MB, free: 33.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.738e-05/0.2141, allocations: 4 kB / 404.6 MB, free: 33.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.949e-05/0.2141, allocations: 11.94 kB / 404.6 MB, free: 33.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.2143, allocations: 19.84 kB / 404.6 MB, free: 33.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-06/0.2143, allocations: 4 kB / 404.7 MB, free: 33.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.23e-05/0.2143, allocations: 35.98 kB / 404.7 MB, free: 33.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.194e-05/0.2144, allocations: 7.969 kB / 404.7 MB, free: 33.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.2144, allocations: 11.94 kB / 404.7 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.2145, allocations: 47.88 kB / 404.8 MB, free: 33.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2145, allocations: 4 kB / 404.8 MB, free: 33.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2145, allocations: 0 / 404.8 MB, free: 33.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2145, allocations: 0 / 404.8 MB, free: 33.22 MB / 302.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.000313/0.2148, allocations: 373.1 kB / 405.1 MB, free: 32.8 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.2149, allocations: 8.031 kB / 405.1 MB, free: 32.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.455e-05/0.2149, allocations: 8.922 kB / 405.1 MB, free: 32.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.487e-05/0.215, allocations: 164.3 kB / 405.3 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.215, allocations: 384 / 405.3 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.2151, allocations: 4.375 kB / 405.3 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.774e-05/0.2152, allocations: 46.19 kB / 405.3 MB, free: 32.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.2152, allocations: 192 / 405.3 MB, free: 32.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.2152, allocations: 7.938 kB / 405.4 MB, free: 32.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2152, allocations: 3.984 kB / 405.4 MB, free: 32.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.044e-05/0.2153, allocations: 7.984 kB / 405.4 MB, free: 32.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.975e-05/0.2154, allocations: 157.7 kB / 405.5 MB, free: 32.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.762e-05/0.2154, allocations: 18.58 kB / 405.5 MB, free: 32.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/0.2155, allocations: 20.91 kB / 405.6 MB, free: 32.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.813e-06/0.2155, allocations: 0 / 405.6 MB, free: 32.26 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/0.2156, allocations: 110.6 kB / 405.7 MB, free: 32.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.2156, allocations: 0 / 405.7 MB, free: 32.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001856/0.2158, allocations: 87.31 kB / 405.8 MB, free: 32.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.997e-05/0.2158, allocations: 85.23 kB / 405.8 MB, free: 31.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.318e-05/0.2159, allocations: 105.8 kB / 405.9 MB, free: 31.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.714e-06/0.2159, allocations: 29.7 kB / 406 MB, free: 31.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.658e-05/0.2159, allocations: 88.08 kB / 406.1 MB, free: 31.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.2159, allocations: 7.844 kB / 406.1 MB, free: 31.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.178e-05/0.2159, allocations: 9.719 kB / 406.1 MB, free: 31.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.232e-05/0.216, allocations: 322.8 kB / 406.4 MB, free: 31.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.37e-05/0.216, allocations: 8 kB / 406.4 MB, free: 31.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.186e-05/0.2161, allocations: 21.7 kB / 406.4 MB, free: 31.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.413e-05/0.2161, allocations: 81.11 kB / 406.5 MB, free: 31.21 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2161, allocations: 0 / 406.5 MB, free: 31.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.681e-05/0.2162, allocations: 79.45 kB / 406.6 MB, free: 31.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.2163, allocations: 41.64 kB / 406.6 MB, free: 31.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.2163, allocations: 0 / 406.6 MB, free: 31.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.2163, allocations: 0 / 406.6 MB, free: 31.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.2164, allocations: 4 kB / 406.6 MB, free: 31.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.2164, allocations: 0 / 406.6 MB, free: 31.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.853e-05/0.2164, allocations: 7.984 kB / 406.6 MB, free: 31.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.618e-06/0.2164, allocations: 0 / 406.6 MB, free: 31.06 MB / 302.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 4.972e-05/0.2165, allocations: 147.5 kB / 406.8 MB, free: 30.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.134e-05/0.2165, allocations: 7.938 kB / 406.8 MB, free: 30.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.617e-05/0.2165, allocations: 7.531 kB / 406.8 MB, free: 30.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.2165, allocations: 0 / 406.8 MB, free: 30.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2165, allocations: 3.984 kB / 406.8 MB, free: 30.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.2165, allocations: 0 / 406.8 MB, free: 30.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.469e-05/0.2166, allocations: 153.7 kB / 406.9 MB, free: 30.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2166, allocations: 7.938 kB / 406.9 MB, free: 30.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.298e-05/0.2166, allocations: 0 / 406.9 MB, free: 30.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2166, allocations: 3.938 kB / 407 MB, free: 30.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.053e-06/0.2166, allocations: 4 kB / 407 MB, free: 30.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2166, allocations: 3.984 kB / 407 MB, free: 30.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.2166, allocations: 4 kB / 407 MB, free: 30.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.2168, allocations: 102.7 kB / 407.1 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.746e-05/0.2168, allocations: 85.05 kB / 407.1 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.2168, allocations: 3.938 kB / 407.1 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.876e-05/0.2168, allocations: 7.984 kB / 407.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.878e-05/0.2169, allocations: 0 / 407.2 MB, free: 30.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.2169, allocations: 8.031 kB / 407.2 MB, free: 30.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.334e-05/0.2169, allocations: 87.27 kB / 407.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2169, allocations: 0 / 407.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001985/0.2171, allocations: 16 kB / 407.3 MB, free: 30.31 MB / 302.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.0003756/0.2175, allocations: 199.6 kB / 407.5 MB, free: 30.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.2176, allocations: 71.39 kB / 407.5 MB, free: 30.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2177, allocations: 128 / 407.5 MB, free: 30.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.586e-05/0.2177, allocations: 71.39 kB / 407.6 MB, free: 29.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001362/0.2179, allocations: 6.5 kB / 407.6 MB, free: 29.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002217/0.2181, allocations: 131.2 kB / 407.7 MB, free: 29.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.18e-05/0.2182, allocations: 0.6883 MB / 408.4 MB, free: 29.1 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.311e-05/0.2182, allocations: 7.438 kB / 408.4 MB, free: 29.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2182, allocations: 0 / 408.4 MB, free: 29.09 MB / 302.1 MB Notification: Performance of Templates: time 0.001997/0.2202, allocations: 0.8776 MB / 409.3 MB, free: 28.21 MB / 302.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)