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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.000919/0.000919, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009139/0.0009139, allocations: 196.9 kB / 16.14 MB, free: 6.656 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.201/1.201, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005384/0.005383, allocations: 1.001 MB / 291 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009719/0.0009718, allocations: 51.91 kB / 351.4 MB, free: 2.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08354/0.08453, allocations: 49.65 MB / 401 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.14/0.2246, allocations: 1.417 MB / 402.4 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009061/0.2255, allocations: 0.7788 MB / 403.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.793e-05/0.2255, allocations: 0 / 403.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.892e-05/0.2255, allocations: 0 / 403.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001267/0.2257, allocations: 11.23 kB / 403.2 MB, free: 9.613 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0001785/0.2259, allocations: 35.72 kB / 403.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.494e-05/0.2259, allocations: 19.33 kB / 403.3 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.541e-05/0.226, allocations: 2.891 kB / 403.3 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.769e-05/0.226, allocations: 11.62 kB / 403.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.801e-05/0.2261, allocations: 16.28 kB / 403.3 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.907e-06/0.2261, allocations: 1.156 kB / 403.3 MB, free: 9.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.112e-05/0.2262, allocations: 45.88 kB / 403.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.066e-05/0.2263, allocations: 0.6094 kB / 403.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.2263, allocations: 11.67 kB / 403.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.2264, allocations: 49.66 kB / 403.4 MB, free: 9.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.234e-06/0.2264, allocations: 0.9375 kB / 403.4 MB, free: 9.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.81e-07/0.2264, allocations: 0 / 403.4 MB, free: 9.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.846e-06/0.2264, allocations: 0 / 403.4 MB, free: 9.531 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002791/0.2267, allocations: 367.3 kB / 403.8 MB, free: 9.137 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.2267, allocations: 11.11 kB / 403.8 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.021e-05/0.2268, allocations: 1.969 kB / 403.8 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.145e-05/0.2269, allocations: 179.7 kB / 404 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.2269, allocations: 1.469 kB / 404 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.721e-06/0.2269, allocations: 384 / 404 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.921e-05/0.227, allocations: 35.92 kB / 404 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.227, allocations: 4.562 kB / 404 MB, free: 8.898 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.498e-06/0.227, allocations: 5.062 kB / 404 MB, free: 8.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.227, allocations: 4.438 kB / 404 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.373e-05/0.2271, allocations: 11.84 kB / 404 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001092/0.2272, allocations: 159.1 kB / 404.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.871e-05/0.2272, allocations: 24.98 kB / 404.2 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.2273, allocations: 14.47 kB / 404.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.132e-06/0.2273, allocations: 3.938 kB / 404.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/0.2274, allocations: 119.2 kB / 404.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.2274, allocations: 0 / 404.3 MB, free: 8.531 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001896/0.2276, allocations: 85.91 kB / 404.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.843e-05/0.2276, allocations: 77.11 kB / 404.5 MB, free: 8.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.372e-05/0.2277, allocations: 109.5 kB / 404.6 MB, free: 8.266 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.765e-06/0.2277, allocations: 26.95 kB / 404.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.524e-05/0.2277, allocations: 82.8 kB / 404.7 MB, free: 8.152 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.2278, allocations: 9.406 kB / 404.7 MB, free: 8.145 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.2278, allocations: 15.7 kB / 404.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.428e-05/0.2278, allocations: 314.3 kB / 405 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.729e-05/0.2279, allocations: 10.23 kB / 405.1 MB, free: 7.809 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.543e-05/0.2279, allocations: 20.58 kB / 405.1 MB, free: 7.789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.147e-05/0.228, allocations: 84.73 kB / 405.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.228, allocations: 0 / 405.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001066/0.2281, allocations: 82.59 kB / 405.2 MB, free: 7.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.2281, allocations: 39.73 kB / 405.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.356e-06/0.2281, allocations: 0 / 405.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.2282, allocations: 1.594 kB / 405.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.903e-05/0.2282, allocations: 4.531 kB / 405.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.2282, allocations: 1.031 kB / 405.3 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.249e-05/0.2283, allocations: 8.172 kB / 405.3 MB, free: 7.59 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.462e-06/0.2283, allocations: 1.875 kB / 405.3 MB, free: 7.59 MB / 286.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.621e-05/0.2283, allocations: 135.7 kB / 405.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.2283, allocations: 6.469 kB / 405.4 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.586e-05/0.2284, allocations: 5.156 kB / 405.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.2284, allocations: 0.6094 kB / 405.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2284, allocations: 1.156 kB / 405.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.2284, allocations: 0 / 405.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.801e-05/0.2284, allocations: 160.8 kB / 405.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2285, allocations: 5.219 kB / 405.6 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.501e-05/0.2285, allocations: 3.156 kB / 405.6 MB, free: 7.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2285, allocations: 5.125 kB / 405.6 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.124e-06/0.2285, allocations: 4.609 kB / 405.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.2285, allocations: 1.062 kB / 405.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2285, allocations: 0 / 405.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001201/0.2286, allocations: 108.9 kB / 405.7 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.453e-05/0.2287, allocations: 83.31 kB / 405.8 MB, free: 7.023 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.2287, allocations: 8.844 kB / 405.8 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.959e-05/0.2287, allocations: 5.188 kB / 405.8 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.2287, allocations: 1.406 kB / 405.8 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.2288, allocations: 3.328 kB / 405.8 MB, free: 7.02 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.544e-05/0.2288, allocations: 87.28 kB / 405.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2288, allocations: 0 / 405.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001915/0.229, allocations: 20.42 kB / 405.9 MB, free: 6.934 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: 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.0002772/0.2293, allocations: 200 kB / 406.1 MB, free: 6.816 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.2294, allocations: 79.19 kB / 406.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.2294, allocations: 0 / 406.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.575e-05/0.2295, allocations: 61.17 kB / 406.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001279/0.2296, allocations: 3.703 kB / 406.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001843/0.2298, allocations: 116.4 kB / 406.4 MB, free: 6.559 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.673e-05/0.2299, allocations: 0.6767 MB / 407.1 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.524e-05/0.2299, allocations: 2 kB / 407.1 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.193e-05/0.2299, allocations: 8.906 kB / 407.1 MB, free: 5.855 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2299, allocations: 0 / 407.1 MB, free: 5.855 MB / 286.1 MB Notification: Performance of Templates: time 0.002521/0.2324, allocations: 0.6963 MB / 407.8 MB, free: 5.754 MB / 286.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)