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.001236/0.001236, allocations: 104.8 kB / 16.36 MB, free: 5.875 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.001253/0.001253, allocations: 199.2 kB / 17.3 MB, free: 5.516 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.224/1.224, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005744/0.005744, allocations: 1.015 MB / 292.2 MB, free: 13.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.91 kB / 353.5 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1782, allocations: 49.64 MB / 403.1 MB, free: 35.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001958/0.1802, allocations: 1.352 MB / 404.5 MB, free: 34.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008094/0.181, allocations: 0.8036 MB / 405.3 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.789e-05/0.1811, allocations: 0 / 405.3 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.289e-05/0.1811, allocations: 0 / 405.3 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.1813, allocations: 3.938 kB / 405.3 MB, free: 33.27 MB / 302.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.0001491/0.1814, allocations: 47.67 kB / 405.3 MB, free: 33.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.996e-05/0.1815, allocations: 19.92 kB / 405.4 MB, free: 33.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.839e-05/0.1815, allocations: 3.984 kB / 405.4 MB, free: 33.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.5e-05/0.1816, allocations: 7.938 kB / 405.4 MB, free: 33.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1817, allocations: 15.94 kB / 405.4 MB, free: 33.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.767e-06/0.1817, allocations: 3.938 kB / 405.4 MB, free: 33.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.782e-05/0.1818, allocations: 43.95 kB / 405.4 MB, free: 33.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.227e-06/0.1818, allocations: 0 / 405.4 MB, free: 33.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.1818, allocations: 11.94 kB / 405.4 MB, free: 33.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.831e-05/0.1819, allocations: 51.88 kB / 405.5 MB, free: 33.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1819, allocations: 2.969 kB / 405.5 MB, free: 33.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1819, allocations: 0 / 405.5 MB, free: 33.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.868e-06/0.1819, allocations: 0 / 405.5 MB, free: 33.07 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.0002615/0.1822, allocations: 376.9 kB / 405.9 MB, free: 32.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.806e-05/0.1822, allocations: 12.03 kB / 405.9 MB, free: 32.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.728e-05/0.1823, allocations: 0.9375 kB / 405.9 MB, free: 32.63 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.281e-05/0.1823, allocations: 169.7 kB / 406 MB, free: 32.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-06/0.1824, allocations: 384 / 406 MB, free: 32.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.1824, allocations: 384 / 406.1 MB, free: 32.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.511e-05/0.1825, allocations: 39.14 kB / 406.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.761e-06/0.1825, allocations: 192 / 406.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.1825, allocations: 11.88 kB / 406.1 MB, free: 32.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1825, allocations: 0 / 406.1 MB, free: 32.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.659e-05/0.1826, allocations: 15.98 kB / 406.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.37e-05/0.1827, allocations: 157.7 kB / 406.3 MB, free: 32.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.643e-05/0.1827, allocations: 22.56 kB / 406.3 MB, free: 32.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.906e-05/0.1827, allocations: 12.91 kB / 406.3 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.1828, allocations: 0 / 406.3 MB, free: 32.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001098/0.1829, allocations: 126.6 kB / 406.4 MB, free: 31.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.1829, allocations: 0 / 406.4 MB, free: 31.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001764/0.1831, allocations: 83.33 kB / 406.5 MB, free: 31.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.832e-05/0.1831, allocations: 77.11 kB / 406.6 MB, free: 31.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.785e-05/0.1831, allocations: 105.8 kB / 406.7 MB, free: 31.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-06/0.1832, allocations: 33.83 kB / 406.7 MB, free: 31.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.577e-05/0.1832, allocations: 88.12 kB / 406.8 MB, free: 31.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.1832, allocations: 3.906 kB / 406.8 MB, free: 31.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.237e-05/0.1832, allocations: 13.72 kB / 406.8 MB, free: 31.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.235e-05/0.1833, allocations: 314.8 kB / 407.1 MB, free: 31.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.133e-05/0.1833, allocations: 11.92 kB / 407.1 MB, free: 31.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.961e-05/0.1833, allocations: 17.72 kB / 407.2 MB, free: 31.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.182e-05/0.1834, allocations: 81.17 kB / 407.2 MB, free: 31.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1834, allocations: 0 / 407.2 MB, free: 31.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.285e-05/0.1835, allocations: 83.33 kB / 407.3 MB, free: 30.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.1835, allocations: 37.62 kB / 407.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.1835, allocations: 0 / 407.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.1836, allocations: 4.062 kB / 407.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.622e-05/0.1836, allocations: 4 kB / 407.4 MB, free: 30.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.1836, allocations: 4 kB / 407.4 MB, free: 30.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.601e-05/0.1837, allocations: 0 / 407.4 MB, free: 30.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.1837, allocations: 4 kB / 407.4 MB, free: 30.91 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.467e-05/0.1837, allocations: 139.5 kB / 407.5 MB, free: 30.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.097e-05/0.1837, allocations: 7.938 kB / 407.5 MB, free: 30.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.486e-05/0.1837, allocations: 7.531 kB / 407.5 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.1838, allocations: 0 / 407.5 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1838, allocations: 8 kB / 407.5 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1838, allocations: 0 / 407.5 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.306e-05/0.1838, allocations: 157.7 kB / 407.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1838, allocations: 0 / 407.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.348e-05/0.1839, allocations: 7.938 kB / 407.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1839, allocations: 3.938 kB / 407.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-06/0.1839, allocations: 0 / 407.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1839, allocations: 0 / 407.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1839, allocations: 0 / 407.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.184, allocations: 114.7 kB / 407.8 MB, free: 30.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.184, allocations: 81.05 kB / 407.9 MB, free: 30.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.184, allocations: 7.938 kB / 407.9 MB, free: 30.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.667e-05/0.1841, allocations: 4 kB / 407.9 MB, free: 30.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.1841, allocations: 7.984 kB / 407.9 MB, free: 30.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.179e-06/0.1841, allocations: 4 kB / 407.9 MB, free: 30.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.663e-05/0.1842, allocations: 87.28 kB / 408 MB, free: 30.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1842, allocations: 0 / 408 MB, free: 30.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.1844, allocations: 24.02 kB / 408 MB, free: 30.14 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.0003176/0.1847, allocations: 191.8 kB / 408.2 MB, free: 29.99 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001227/0.1848, allocations: 79.33 kB / 408.3 MB, free: 29.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1848, allocations: 0 / 408.3 MB, free: 29.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.273e-05/0.1849, allocations: 63.39 kB / 408.3 MB, free: 29.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.185, allocations: 10.69 kB / 408.4 MB, free: 29.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001846/0.1852, allocations: 109.5 kB / 408.5 MB, free: 29.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.763e-05/0.1853, allocations: 0.6767 MB / 409.1 MB, free: 28.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.888e-05/0.1853, allocations: 7.984 kB / 409.2 MB, free: 28.97 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.178e-05/0.1853, allocations: 7.438 kB / 409.2 MB, free: 28.96 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1853, allocations: 3.938 kB / 409.2 MB, free: 28.96 MB / 302.1 MB Notification: Performance of Templates: time 0.002516/0.1879, allocations: 0.751 MB / 409.9 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 -s gbode -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)