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.0007924/0.0007924, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008669/0.0008669, allocations: 186.5 kB / 16.92 MB, free: 6.77 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.326/1.326, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005587/0.005587, allocations: 1.004 MB / 293.1 MB, free: 1.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002797, allocations: 8 kB / 354.5 MB, free: 2.078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2369, allocations: 50.63 MB / 405.1 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002077/0.239, allocations: 1.09 MB / 406.2 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001713/0.2408, allocations: 0.7667 MB / 407 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.572e-05/0.2408, allocations: 3.188 kB / 407 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.948e-05/0.2408, allocations: 0.5625 kB / 407 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.241, allocations: 7.859 kB / 407 MB, free: 9.898 MB / 286.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.0002618/0.2413, allocations: 34.61 kB / 407 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.896e-05/0.2414, allocations: 20.52 kB / 407 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.67e-05/0.2415, allocations: 2.391 kB / 407 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.75e-05/0.2415, allocations: 13.83 kB / 407 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001382/0.2417, allocations: 21.14 kB / 407.1 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.2417, allocations: 1.031 kB / 407.1 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.2418, allocations: 35.97 kB / 407.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.266e-05/0.2418, allocations: 4.969 kB / 407.1 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.806e-05/0.2419, allocations: 34.45 kB / 407.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.242, allocations: 32.52 kB / 407.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.242, allocations: 0 / 407.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.242, allocations: 0 / 407.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.242, allocations: 1 kB / 407.2 MB, free: 9.809 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.0003592/0.2424, allocations: 369.1 kB / 407.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.2424, allocations: 9 kB / 407.5 MB, free: 9.41 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.004e-05/0.2425, allocations: 8 kB / 407.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.2426, allocations: 172.9 kB / 407.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.2426, allocations: 384 / 407.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.584e-06/0.2426, allocations: 2.734 kB / 407.7 MB, free: 9.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.2427, allocations: 44.05 kB / 407.8 MB, free: 9.164 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.2428, allocations: 5.312 kB / 407.8 MB, free: 9.16 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.2428, allocations: 3.938 kB / 407.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.2428, allocations: 1.781 kB / 407.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.444e-05/0.2429, allocations: 13.69 kB / 407.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.243, allocations: 155 kB / 407.9 MB, free: 8.965 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.338e-05/0.2431, allocations: 31.27 kB / 408 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.088e-05/0.2431, allocations: 12.44 kB / 408 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.446e-06/0.2431, allocations: 0 / 408 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001428/0.2433, allocations: 112.3 kB / 408.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.243e-06/0.2433, allocations: 0 / 408.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002445/0.2436, allocations: 95 kB / 408.2 MB, free: 8.734 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.149e-05/0.2436, allocations: 83.42 kB / 408.3 MB, free: 8.637 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.226e-05/0.2437, allocations: 106.2 kB / 408.4 MB, free: 8.535 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.2437, allocations: 27.97 kB / 408.4 MB, free: 8.504 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.179e-05/0.2437, allocations: 82.38 kB / 408.5 MB, free: 8.422 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.293e-05/0.2438, allocations: 0.625 kB / 408.5 MB, free: 8.422 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.2438, allocations: 20.06 kB / 408.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.841e-05/0.2439, allocations: 313.7 kB / 408.8 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.181e-05/0.2439, allocations: 11.12 kB / 408.8 MB, free: 8.082 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.361e-05/0.244, allocations: 23.78 kB / 408.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.634e-05/0.244, allocations: 83.64 kB / 408.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2441, allocations: 1.438 kB / 408.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001281/0.2442, allocations: 88.41 kB / 409 MB, free: 7.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/0.2442, allocations: 35.92 kB / 409 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.2442, allocations: 1.281 kB / 409 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2443, allocations: 64 / 409 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.285e-05/0.2443, allocations: 9.719 kB / 409 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.271e-06/0.2443, allocations: 2.391 kB / 409 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.473e-05/0.2444, allocations: 4.828 kB / 409.1 MB, free: 7.867 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.2444, allocations: 1.125 kB / 409.1 MB, free: 7.867 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 6.198e-05/0.2445, allocations: 140.3 kB / 409.2 MB, free: 7.719 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.415e-05/0.2445, allocations: 6.781 kB / 409.2 MB, free: 7.715 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.821e-05/0.2445, allocations: 9.141 kB / 409.2 MB, free: 7.703 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.2445, allocations: 5.734 kB / 409.2 MB, free: 7.699 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2445, allocations: 0 / 409.2 MB, free: 7.699 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.2445, allocations: 5.125 kB / 409.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.481e-05/0.2446, allocations: 156.6 kB / 409.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2446, allocations: 4.312 kB / 409.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.026e-05/0.2446, allocations: 4.516 kB / 409.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.2447, allocations: 12.23 kB / 409.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.443e-06/0.2447, allocations: 1.25 kB / 409.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2447, allocations: 0 / 409.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2447, allocations: 0.6094 kB / 409.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.2448, allocations: 116.5 kB / 409.5 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.909e-05/0.2449, allocations: 79 kB / 409.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.2449, allocations: 6.141 kB / 409.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.263e-05/0.2449, allocations: 5.234 kB / 409.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.143e-05/0.245, allocations: 2.297 kB / 409.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.922e-06/0.245, allocations: 5.812 kB / 409.6 MB, free: 7.285 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.416e-05/0.245, allocations: 93.3 kB / 409.7 MB, free: 7.203 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.245, allocations: 0 / 409.7 MB, free: 7.203 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00023/0.2453, allocations: 13.16 kB / 409.7 MB, free: 7.203 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.000378/0.2456, allocations: 187.8 kB / 409.9 MB, free: 7.094 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001574/0.2458, allocations: 85.94 kB / 410 MB, free: 7.02 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2458, allocations: 0 / 410 MB, free: 7.02 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.503e-05/0.2459, allocations: 67.31 kB / 410 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.246, allocations: 5.703 kB / 410 MB, free: 6.953 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002363/0.2463, allocations: 142.3 kB / 410.2 MB, free: 6.805 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2464, allocations: 0.6776 MB / 410.9 MB, free: 6.109 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.62e-05/0.2464, allocations: 12.47 kB / 410.9 MB, free: 6.098 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2464, allocations: 0 / 410.9 MB, free: 6.098 MB / 286.1 MB Notification: Performance of Templates: time 0.002572/0.249, allocations: 0.8683 MB / 411.7 MB, free: 6.008 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)