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.001686/0.001687, allocations: 108.5 kB / 15.99 MB, free: 6.367 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.001688/0.001688, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.335/1.335, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005981/0.005982, allocations: 1.006 MB / 291.7 MB, free: 13.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 352.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2599, allocations: 49.64 MB / 401.9 MB, free: 35.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002362/0.2624, allocations: 1.427 MB / 403.3 MB, free: 34.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009471/0.2633, allocations: 0.7724 MB / 404.1 MB, free: 33.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.49e-05/0.2634, allocations: 0 / 404.1 MB, free: 33.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.21e-05/0.2634, allocations: 0 / 404.1 MB, free: 33.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.2636, allocations: 7.938 kB / 404.1 MB, free: 33.53 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.0002023/0.2638, allocations: 47.89 kB / 404.1 MB, free: 33.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.525e-05/0.2639, allocations: 19.92 kB / 404.1 MB, free: 33.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.006e-05/0.264, allocations: 2.125 kB / 404.1 MB, free: 33.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.539e-05/0.264, allocations: 7.938 kB / 404.1 MB, free: 33.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001295/0.2641, allocations: 19.92 kB / 404.2 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.071e-05/0.2642, allocations: 0 / 404.2 MB, free: 33.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.477e-05/0.2642, allocations: 43.91 kB / 404.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.337e-05/0.2643, allocations: 3.984 kB / 404.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.2643, allocations: 8.656 kB / 404.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.547e-05/0.2644, allocations: 31.95 kB / 404.2 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.2644, allocations: 4 kB / 404.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2644, allocations: 0 / 404.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.2644, allocations: 0 / 404.3 MB, free: 33.35 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.0003482/0.2648, allocations: 375 kB / 404.6 MB, free: 32.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.2648, allocations: 8.031 kB / 404.6 MB, free: 32.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.148e-05/0.2649, allocations: 0.9375 kB / 404.6 MB, free: 32.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.779e-05/0.265, allocations: 168.3 kB / 404.8 MB, free: 32.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.265, allocations: 384 / 404.8 MB, free: 32.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.265, allocations: 384 / 404.8 MB, free: 32.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001027/0.2651, allocations: 46.19 kB / 404.8 MB, free: 32.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.2651, allocations: 4.125 kB / 404.8 MB, free: 32.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/0.2651, allocations: 3.938 kB / 404.8 MB, free: 32.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2651, allocations: 0 / 404.8 MB, free: 32.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.266e-05/0.2652, allocations: 15.98 kB / 404.9 MB, free: 32.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.2653, allocations: 153.7 kB / 405 MB, free: 32.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.243e-05/0.2654, allocations: 26.59 kB / 405 MB, free: 32.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.067e-05/0.2654, allocations: 12.92 kB / 405.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.2654, allocations: 0 / 405.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001257/0.2656, allocations: 114.6 kB / 405.2 MB, free: 32.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.2656, allocations: 0 / 405.2 MB, free: 32.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002168/0.2658, allocations: 91.41 kB / 405.3 MB, free: 32.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.2658, allocations: 77.11 kB / 405.3 MB, free: 32.06 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.469e-05/0.2659, allocations: 113.8 kB / 405.4 MB, free: 31.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.127e-06/0.2659, allocations: 25.7 kB / 405.5 MB, free: 31.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.808e-05/0.2659, allocations: 84.14 kB / 405.5 MB, free: 31.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.266, allocations: 7.906 kB / 405.6 MB, free: 31.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.391e-05/0.266, allocations: 9.719 kB / 405.6 MB, free: 31.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.785e-05/0.266, allocations: 318.8 kB / 405.9 MB, free: 31.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.283e-05/0.2661, allocations: 12.03 kB / 405.9 MB, free: 31.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.602e-05/0.2661, allocations: 21.64 kB / 405.9 MB, free: 31.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.423e-05/0.2662, allocations: 81.11 kB / 406 MB, free: 31.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2662, allocations: 3.938 kB / 406 MB, free: 31.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001123/0.2663, allocations: 83.39 kB / 406.1 MB, free: 31.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.2664, allocations: 33.64 kB / 406.1 MB, free: 31.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.2664, allocations: 4 kB / 406.1 MB, free: 31.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.2664, allocations: 0 / 406.1 MB, free: 31.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.073e-05/0.2665, allocations: 7.984 kB / 406.1 MB, free: 31.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2665, allocations: 0 / 406.1 MB, free: 31.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.904e-05/0.2665, allocations: 4 kB / 406.1 MB, free: 31.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-06/0.2665, allocations: 0 / 406.1 MB, free: 31.19 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 6.269e-05/0.2666, allocations: 135.5 kB / 406.3 MB, free: 31.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.172e-05/0.2666, allocations: 8 kB / 406.3 MB, free: 31.03 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.654e-05/0.2666, allocations: 15.52 kB / 406.3 MB, free: 31.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2666, allocations: 0 / 406.3 MB, free: 31.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2667, allocations: 0 / 406.3 MB, free: 31.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2667, allocations: 3.938 kB / 406.3 MB, free: 31.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.394e-05/0.2667, allocations: 153.7 kB / 406.4 MB, free: 30.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2668, allocations: 0 / 406.4 MB, free: 30.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.563e-05/0.2668, allocations: 11.98 kB / 406.4 MB, free: 30.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2668, allocations: 3.938 kB / 406.4 MB, free: 30.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.2668, allocations: 0 / 406.4 MB, free: 30.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.2668, allocations: 4 kB / 406.4 MB, free: 30.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2668, allocations: 7.938 kB / 406.5 MB, free: 30.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.2669, allocations: 98.73 kB / 406.6 MB, free: 30.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.447e-05/0.267, allocations: 89.08 kB / 406.6 MB, free: 30.55 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.267, allocations: 3.938 kB / 406.6 MB, free: 30.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.868e-05/0.267, allocations: 4 kB / 406.6 MB, free: 30.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.086e-05/0.2671, allocations: 8.031 kB / 406.7 MB, free: 30.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.2671, allocations: 4 kB / 406.7 MB, free: 30.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.746e-05/0.2671, allocations: 83.27 kB / 406.7 MB, free: 30.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2671, allocations: 0 / 406.7 MB, free: 30.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002068/0.2673, allocations: 20 kB / 406.8 MB, free: 30.43 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.0003953/0.2677, allocations: 207.8 kB / 407 MB, free: 30.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001501/0.2679, allocations: 75.33 kB / 407 MB, free: 30.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2679, allocations: 4.125 kB / 407 MB, free: 30.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.766e-05/0.268, allocations: 59.41 kB / 407.1 MB, free: 30.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.2681, allocations: 8 kB / 407.1 MB, free: 30.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.2684, allocations: 131.2 kB / 407.2 MB, free: 29.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.2685, allocations: 0.6806 MB / 407.9 MB, free: 29.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.746e-05/0.2685, allocations: 11.44 kB / 407.9 MB, free: 29.21 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2686, allocations: 4.062 kB / 407.9 MB, free: 29.21 MB / 302.1 MB Notification: Performance of Templates: time 0.002135/0.2707, allocations: 0.8744 MB / 408.8 MB, free: 28.33 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 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)