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/Complex 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) 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-master/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: 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/Complex 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 182.4 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.004956/0.004956, allocations: 1.002 MB / 17.73 MB, free: 4.004 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.195/1.195, allocations: 222.9 MB / 241.6 MB, free: 9.828 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 106.4 kB / 292 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009787/0.0009787, allocations: 51.92 kB / 352.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2129, allocations: 49.64 MB / 402.1 MB, free: 32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001951/0.2149, allocations: 1.422 MB / 403.5 MB, free: 30.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008172/0.2157, allocations: 0.7734 MB / 404.3 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.804e-05/0.2157, allocations: 0 / 404.3 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.2158, allocations: 0 / 404.3 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001447/0.2159, allocations: 11.94 kB / 404.3 MB, free: 29.79 MB / 298.7 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.0001639/0.2161, allocations: 39.95 kB / 404.4 MB, free: 29.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.45e-05/0.2162, allocations: 19.92 kB / 404.4 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.2162, allocations: 0 / 404.4 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.562e-05/0.2162, allocations: 11.88 kB / 404.4 MB, free: 29.72 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2164, allocations: 19.92 kB / 404.4 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.2164, allocations: 0 / 404.4 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.2164, allocations: 43.89 kB / 404.4 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-06/0.2165, allocations: 0 / 404.4 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.437e-05/0.2165, allocations: 11.94 kB / 404.5 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.2166, allocations: 51.86 kB / 404.5 MB, free: 29.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2166, allocations: 4 kB / 404.5 MB, free: 29.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2166, allocations: 0 / 404.5 MB, free: 29.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.2166, allocations: 0 / 404.5 MB, free: 29.59 MB / 298.7 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.0002965/0.2169, allocations: 375.2 kB / 404.9 MB, free: 29.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.071e-05/0.217, allocations: 8.031 kB / 404.9 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.217, allocations: 4.938 kB / 404.9 MB, free: 29.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.155e-05/0.2171, allocations: 164.3 kB / 405.1 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.553e-06/0.2171, allocations: 4.375 kB / 405.1 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-06/0.2171, allocations: 4.375 kB / 405.1 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.838e-05/0.2172, allocations: 42.25 kB / 405.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.2172, allocations: 4.172 kB / 405.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2172, allocations: 7.938 kB / 405.1 MB, free: 28.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.2172, allocations: 3.938 kB / 405.1 MB, free: 28.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.259e-05/0.2173, allocations: 7.984 kB / 405.1 MB, free: 28.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.713e-05/0.2174, allocations: 157.7 kB / 405.3 MB, free: 28.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.042e-05/0.2175, allocations: 30.56 kB / 405.3 MB, free: 28.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.273e-05/0.2175, allocations: 12.86 kB / 405.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.898e-06/0.2175, allocations: 0 / 405.3 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/0.2177, allocations: 110.7 kB / 405.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.172e-06/0.2177, allocations: 0 / 405.4 MB, free: 28.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001841/0.2179, allocations: 83.31 kB / 405.5 MB, free: 28.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.2179, allocations: 89.23 kB / 405.6 MB, free: 28.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.667e-05/0.2179, allocations: 105.8 kB / 405.7 MB, free: 28.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-06/0.218, allocations: 25.7 kB / 405.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.519e-05/0.218, allocations: 80.14 kB / 405.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.745e-05/0.218, allocations: 7.906 kB / 405.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.296e-05/0.218, allocations: 13.72 kB / 405.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.984e-05/0.2181, allocations: 318.8 kB / 406.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.2181, allocations: 8 kB / 406.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.368e-05/0.2182, allocations: 25.64 kB / 406.2 MB, free: 27.68 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.551e-05/0.2182, allocations: 77.11 kB / 406.2 MB, free: 27.58 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2182, allocations: 0 / 406.2 MB, free: 27.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.775e-05/0.2183, allocations: 83.42 kB / 406.3 MB, free: 27.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.2184, allocations: 37.64 kB / 406.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2184, allocations: 0 / 406.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.2184, allocations: 3.938 kB / 406.4 MB, free: 27.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.977e-05/0.2184, allocations: 7.984 kB / 406.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.2185, allocations: 0 / 406.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.796e-05/0.2185, allocations: 4 kB / 406.4 MB, free: 27.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.029e-06/0.2185, allocations: 0 / 406.4 MB, free: 27.43 MB / 298.7 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.782e-05/0.2185, allocations: 139.5 kB / 406.5 MB, free: 27.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.2186, allocations: 11.97 kB / 406.5 MB, free: 27.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.508e-05/0.2186, allocations: 7.516 kB / 406.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.2186, allocations: 0 / 406.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.2186, allocations: 0 / 406.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.2186, allocations: 0 / 406.5 MB, free: 27.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.331e-05/0.2187, allocations: 153.7 kB / 406.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2187, allocations: 4 kB / 406.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.317e-05/0.2187, allocations: 3.984 kB / 406.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2187, allocations: 3.938 kB / 406.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.2187, allocations: 4 kB / 406.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2187, allocations: 0 / 406.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2187, allocations: 7.938 kB / 406.7 MB, free: 27.03 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002352/0.219, allocations: 0.6645 MB / 407.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.588e-05/0.219, allocations: 81.11 kB / 407.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.15e-05/0.219, allocations: 4 kB / 407.5 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.924e-05/0.219, allocations: 8.031 kB / 407.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.2191, allocations: 0 / 407.5 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.2191, allocations: 11.98 kB / 407.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.179e-05/0.2191, allocations: 79.28 kB / 407.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2191, allocations: 0 / 407.6 MB, free: 26.1 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.2194, allocations: 16 kB / 407.6 MB, free: 26.09 MB / 298.7 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.0003108/0.2197, allocations: 211.9 kB / 407.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001148/0.2199, allocations: 79.33 kB / 407.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2199, allocations: 3.938 kB / 407.9 MB, free: 25.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.354e-05/0.2199, allocations: 67.33 kB / 407.9 MB, free: 25.74 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001292/0.2201, allocations: 8 kB / 407.9 MB, free: 25.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002232/0.2203, allocations: 209.9 kB / 408.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.123e-05/0.2204, allocations: 0.685 MB / 408.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.743e-05/0.2204, allocations: 0 / 408.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.058e-05/0.2204, allocations: 7.438 kB / 408.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2204, allocations: 0 / 408.8 MB, free: 24.77 MB / 298.7 MB Notification: Performance of Templates: time 0.002296/0.2227, allocations: 0.6969 MB / 409.5 MB, free: 24.07 MB / 298.7 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)