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.001681/0.001681, allocations: 119.5 kB / 16.42 MB, free: 6.488 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.001859/0.001859, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.323/1.323, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006136/0.006136, allocations: 1.009 MB / 292.2 MB, free: 13.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 59.91 kB / 403.6 MB, free: 31.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07608/0.07788, allocations: 49.65 MB / 453.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002128/0.08005, allocations: 1.367 MB / 454.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.08108, allocations: 0.7934 MB / 455.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.049e-05/0.08112, allocations: 0 / 455.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.347e-05/0.08116, allocations: 3.938 kB / 455.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.08131, allocations: 7.938 kB / 455.5 MB, free: 11.83 MB / 334.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.0001841/0.08151, allocations: 43.89 kB / 455.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.494e-05/0.08158, allocations: 19.92 kB / 455.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.667e-05/0.08162, allocations: 11.98 kB / 455.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.859e-05/0.08166, allocations: 11.94 kB / 455.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.08176, allocations: 7.984 kB / 455.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.08179, allocations: 0 / 455.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.79e-05/0.08188, allocations: 47.91 kB / 455.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.0819, allocations: 3.938 kB / 455.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.293e-05/0.08193, allocations: 7.938 kB / 455.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001134/0.08205, allocations: 51.88 kB / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.08207, allocations: 4 kB / 455.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08207, allocations: 3.938 kB / 455.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.08208, allocations: 0 / 455.7 MB, free: 11.62 MB / 334.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.0003662/0.08245, allocations: 381 kB / 456 MB, free: 11.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/0.08249, allocations: 8.031 kB / 456 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.053e-05/0.08253, allocations: 0.9375 kB / 456 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001149/0.08265, allocations: 168.4 kB / 456.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.08267, allocations: 384 / 456.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.051e-06/0.08268, allocations: 384 / 456.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.517e-05/0.08278, allocations: 42.27 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.08279, allocations: 192 / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.08281, allocations: 3.938 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.08282, allocations: 3.984 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.838e-05/0.08288, allocations: 11.94 kB / 456.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001447/0.08303, allocations: 157.7 kB / 456.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.365e-05/0.08309, allocations: 26.61 kB / 456.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.873e-05/0.08314, allocations: 12.92 kB / 456.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.08315, allocations: 0 / 456.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001301/0.08329, allocations: 106.7 kB / 456.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.0833, allocations: 0 / 456.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002116/0.08352, allocations: 87.27 kB / 456.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.08357, allocations: 85.22 kB / 456.7 MB, free: 10.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.852e-05/0.08364, allocations: 109.9 kB / 456.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.08367, allocations: 25.7 kB / 456.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.575e-05/0.08371, allocations: 84.12 kB / 457 MB, free: 10.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.08373, allocations: 7.906 kB / 457 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.779e-05/0.08377, allocations: 13.72 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.269e-05/0.08386, allocations: 310.8 kB / 457.3 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.098e-05/0.08391, allocations: 15.98 kB / 457.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.08396, allocations: 17.72 kB / 457.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.639e-05/0.08406, allocations: 84.98 kB / 457.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.08407, allocations: 0 / 457.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001262/0.0842, allocations: 87.45 kB / 457.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.08424, allocations: 33.7 kB / 457.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.08425, allocations: 3.938 kB / 457.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.08427, allocations: 3.938 kB / 457.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.243e-05/0.08432, allocations: 4 kB / 457.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.08434, allocations: 0 / 457.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.155e-05/0.08438, allocations: 7.938 kB / 457.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.554e-06/0.08439, allocations: 7.984 kB / 457.5 MB, free: 9.453 MB / 334.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 8.113e-05/0.08447, allocations: 139.5 kB / 457.7 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.08449, allocations: 4.031 kB / 457.7 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.905e-05/0.08452, allocations: 11.47 kB / 457.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.08452, allocations: 0 / 457.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.08453, allocations: 0 / 457.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.392e-05/0.08457, allocations: 81.02 kB / 457.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.322e-05/0.08459, allocations: 3.984 kB / 457.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.397e-05/0.08462, allocations: 4 kB / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.08466, allocations: 0 / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001799/0.08485, allocations: 218 kB / 458 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001949/0.08505, allocations: 252.5 kB / 458.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.179e-05/0.08511, allocations: 7.984 kB / 458.2 MB, free: 8.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.837e-05/0.08515, allocations: 87.28 kB / 458.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of Backend: time 2.71e-07/0.08516, allocations: 0 / 458.3 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000601/0.08576, allocations: 242.9 kB / 458.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of SimCode: time 0.0003729/0.08615, allocations: 0.5994 MB / 459.2 MB, free: 7.699 MB / 334.1 MB Notification: Performance of Templates: time 0.002929/0.08909, allocations: 0.8082 MB / 460 MB, free: 6.898 MB / 334.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)