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.001062/0.001062, allocations: 105 kB / 16.41 MB, free: 6.465 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.0011/0.0011, allocations: 187 kB / 17.34 MB, free: 5.719 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005942/0.005942, allocations: 1.005 MB / 292.2 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 55.91 kB / 403.6 MB, free: 31.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07567/0.07689, allocations: 49.65 MB / 453.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002451/0.07939, allocations: 1.371 MB / 454.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001107/0.08052, allocations: 0.7897 MB / 455.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.08057, allocations: 0 / 455.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.428e-05/0.0806, allocations: 3.938 kB / 455.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.08079, allocations: 7.938 kB / 455.5 MB, free: 11.84 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.0001724/0.08097, allocations: 39.89 kB / 455.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.835e-05/0.08105, allocations: 23.92 kB / 455.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.255e-05/0.0811, allocations: 8 kB / 455.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.887e-05/0.08113, allocations: 11.92 kB / 455.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.08125, allocations: 15.98 kB / 455.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.378e-06/0.08127, allocations: 0 / 455.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.054e-05/0.08136, allocations: 39.91 kB / 455.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.433e-05/0.08139, allocations: 7.938 kB / 455.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.811e-05/0.08142, allocations: 11.92 kB / 455.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.08155, allocations: 47.94 kB / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.08156, allocations: 3.938 kB / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08157, allocations: 0 / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.08158, allocations: 0 / 455.7 MB, free: 11.63 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.0005043/0.08209, allocations: 377 kB / 456 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.08213, allocations: 8.031 kB / 456 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.531e-05/0.08217, allocations: 0.9375 kB / 456 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.08231, allocations: 168.4 kB / 456.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.08233, allocations: 8.312 kB / 456.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.825e-06/0.08234, allocations: 384 / 456.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.08245, allocations: 38.25 kB / 456.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.08247, allocations: 192 / 456.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.08249, allocations: 11.88 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.0825, allocations: 0 / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.054e-05/0.08256, allocations: 11.98 kB / 456.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.08273, allocations: 157.7 kB / 456.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.212e-05/0.08279, allocations: 22.61 kB / 456.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.806e-05/0.08284, allocations: 16.91 kB / 456.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.08286, allocations: 4 kB / 456.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.08304, allocations: 110.7 kB / 456.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.08305, allocations: 0 / 456.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002332/0.08328, allocations: 87.31 kB / 456.7 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.08334, allocations: 77.11 kB / 456.7 MB, free: 10.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.292e-05/0.08343, allocations: 110 kB / 456.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.08345, allocations: 29.7 kB / 456.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.08349, allocations: 80.14 kB / 456.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.08351, allocations: 11.91 kB / 457 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.837e-05/0.08355, allocations: 9.719 kB / 457 MB, free: 10.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.08366, allocations: 310.8 kB / 457.3 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.5e-05/0.08371, allocations: 15.98 kB / 457.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.239e-05/0.08376, allocations: 29.59 kB / 457.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.068e-05/0.08386, allocations: 81.11 kB / 457.4 MB, free: 9.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.08386, allocations: 0 / 457.4 MB, free: 9.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001417/0.08401, allocations: 79.31 kB / 457.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.08406, allocations: 37.64 kB / 457.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.08407, allocations: 3.984 kB / 457.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.08408, allocations: 4.125 kB / 457.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.519e-05/0.08414, allocations: 4 kB / 457.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.08416, allocations: 0 / 457.5 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.569e-05/0.0842, allocations: 11.98 kB / 457.5 MB, free: 9.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.08421, allocations: 0 / 457.5 MB, free: 9.457 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.48e-05/0.0843, allocations: 135.5 kB / 457.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.08431, allocations: 3.938 kB / 457.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.896e-05/0.08434, allocations: 7.531 kB / 457.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.08434, allocations: 0 / 457.7 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.08436, allocations: 4 kB / 457.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.08436, allocations: 0 / 457.7 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000164/0.08453, allocations: 157.7 kB / 457.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.08454, allocations: 0 / 457.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.678e-05/0.08457, allocations: 4 kB / 457.8 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.08458, allocations: 7.875 kB / 457.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.08459, allocations: 0 / 457.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.676e-06/0.0846, allocations: 4 kB / 457.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.0846, allocations: 3.938 kB / 457.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.08477, allocations: 114.7 kB / 458 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.08481, allocations: 81.05 kB / 458 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.08483, allocations: 3.938 kB / 458.1 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.317e-05/0.08487, allocations: 7.984 kB / 458.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.0849, allocations: 0 / 458.1 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.173e-06/0.08492, allocations: 4 kB / 458.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.836e-05/0.08496, allocations: 83.28 kB / 458.1 MB, free: 8.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.08497, allocations: 4.031 kB / 458.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002206/0.08519, allocations: 23.98 kB / 458.2 MB, free: 8.707 MB / 334.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.0003428/0.08554, allocations: 198.8 kB / 458.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.0857, allocations: 75.33 kB / 458.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.08571, allocations: 0 / 458.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.597e-05/0.08578, allocations: 63.39 kB / 458.5 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.08595, allocations: 10.84 kB / 458.5 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002283/0.08619, allocations: 123.3 kB / 458.6 MB, free: 8.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.08641, allocations: 0.6843 MB / 459.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.763e-05/0.08643, allocations: 11.44 kB / 459.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.08644, allocations: 0 / 459.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of Templates: time 0.00234/0.08878, allocations: 0.8862 MB / 460.2 MB, free: 6.617 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)