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.12.0/package.mo", uses=false) Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.001229/0.001229, allocations: 111.2 kB / 15.99 MB, free: 5.91 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.00129/0.00129, allocations: 193.3 kB / 16.91 MB, free: 5.754 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.393/1.393, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.007048/0.007048, allocations: 1.02 MB / 291.8 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 67.89 kB / 352.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2327, allocations: 49.64 MB / 401.9 MB, free: 35.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002146/0.2349, allocations: 1.424 MB / 403.3 MB, free: 34.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009102/0.2358, allocations: 0.7812 MB / 404.1 MB, free: 33.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.228e-05/0.2359, allocations: 0 / 404.1 MB, free: 33.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.2359, allocations: 0 / 404.1 MB, free: 33.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.2361, allocations: 11.91 kB / 404.1 MB, free: 33.5 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0001828/0.2363, allocations: 31.97 kB / 404.1 MB, free: 33.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 5.133e-05/0.2364, allocations: 23.91 kB / 404.2 MB, free: 33.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.2364, allocations: 0 / 404.2 MB, free: 33.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.775e-05/0.2364, allocations: 11.94 kB / 404.2 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.2365, allocations: 15.92 kB / 404.2 MB, free: 33.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.796e-06/0.2366, allocations: 0 / 404.2 MB, free: 33.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.2e-05/0.2366, allocations: 47.89 kB / 404.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-06/0.2367, allocations: 0 / 404.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.268e-05/0.2367, allocations: 11.94 kB / 404.2 MB, free: 33.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.151e-05/0.2368, allocations: 29.08 kB / 404.3 MB, free: 33.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2368, allocations: 0 / 404.3 MB, free: 33.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2368, allocations: 0 / 404.3 MB, free: 33.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.826e-06/0.2368, allocations: 0 / 404.3 MB, free: 33.33 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.0003209/0.2371, allocations: 379 kB / 404.6 MB, free: 32.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.2372, allocations: 8.031 kB / 404.6 MB, free: 32.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.99e-05/0.2372, allocations: 4.938 kB / 404.6 MB, free: 32.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.508e-05/0.2373, allocations: 168.3 kB / 404.8 MB, free: 32.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.274e-06/0.2373, allocations: 384 / 404.8 MB, free: 32.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.2373, allocations: 8.359 kB / 404.8 MB, free: 32.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.467e-05/0.2374, allocations: 42.19 kB / 404.9 MB, free: 32.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.2374, allocations: 4.188 kB / 404.9 MB, free: 32.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2375, allocations: 3.938 kB / 404.9 MB, free: 32.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2375, allocations: 0 / 404.9 MB, free: 32.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.126e-05/0.2375, allocations: 15.92 kB / 404.9 MB, free: 32.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001112/0.2376, allocations: 153.7 kB / 405 MB, free: 32.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.159e-05/0.2377, allocations: 30.59 kB / 405.1 MB, free: 32.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.19e-05/0.2377, allocations: 8.922 kB / 405.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.2377, allocations: 4 kB / 405.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001151/0.2379, allocations: 114.6 kB / 405.2 MB, free: 32.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.2379, allocations: 0 / 405.2 MB, free: 32.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002003/0.2381, allocations: 87.31 kB / 405.3 MB, free: 32.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.184e-05/0.2381, allocations: 77.11 kB / 405.4 MB, free: 32.03 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.374e-05/0.2382, allocations: 114 kB / 405.5 MB, free: 31.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.2382, allocations: 29.64 kB / 405.5 MB, free: 31.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.863e-05/0.2382, allocations: 80.14 kB / 405.6 MB, free: 31.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.032e-05/0.2382, allocations: 11.91 kB / 405.6 MB, free: 31.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.2383, allocations: 13.7 kB / 405.6 MB, free: 31.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.961e-05/0.2383, allocations: 314.8 kB / 405.9 MB, free: 31.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.315e-05/0.2383, allocations: 4 kB / 405.9 MB, free: 31.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.387e-05/0.2384, allocations: 25.7 kB / 405.9 MB, free: 31.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.583e-05/0.2385, allocations: 85.05 kB / 406 MB, free: 31.31 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.2385, allocations: 4 kB / 406 MB, free: 31.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.441e-05/0.2386, allocations: 75.33 kB / 406.1 MB, free: 31.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.2386, allocations: 37.64 kB / 406.1 MB, free: 31.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2386, allocations: 128 / 406.1 MB, free: 31.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2386, allocations: 4 kB / 406.1 MB, free: 31.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.332e-05/0.2387, allocations: 7.984 kB / 406.1 MB, free: 31.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.2387, allocations: 0 / 406.1 MB, free: 31.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.765e-05/0.2387, allocations: 4 kB / 406.1 MB, free: 31.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.2387, allocations: 0 / 406.1 MB, free: 31.16 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 5.489e-05/0.2388, allocations: 143.5 kB / 406.3 MB, free: 31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.156e-05/0.2388, allocations: 3.938 kB / 406.3 MB, free: 31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.2388, allocations: 7.531 kB / 406.3 MB, free: 30.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2388, allocations: 4 kB / 406.3 MB, free: 30.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2388, allocations: 0 / 406.3 MB, free: 30.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-06/0.2388, allocations: 3.938 kB / 406.3 MB, free: 30.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.744e-05/0.2389, allocations: 153.7 kB / 406.5 MB, free: 30.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2389, allocations: 0 / 406.5 MB, free: 30.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.321e-05/0.2389, allocations: 7.984 kB / 406.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.239, allocations: 3.938 kB / 406.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.239, allocations: 0 / 406.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.239, allocations: 4 kB / 406.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.239, allocations: 0 / 406.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.2391, allocations: 114.7 kB / 406.6 MB, free: 30.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.877e-05/0.2391, allocations: 81.09 kB / 406.7 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.2391, allocations: 3.938 kB / 406.7 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.823e-05/0.2392, allocations: 4 kB / 406.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.2392, allocations: 0 / 406.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.2392, allocations: 4 kB / 406.7 MB, free: 30.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.572e-05/0.2392, allocations: 87.27 kB / 406.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2393, allocations: 4.031 kB / 406.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001979/0.2395, allocations: 20 kB / 406.8 MB, free: 30.41 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.0003977/0.2399, allocations: 222 kB / 407 MB, free: 30.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.24, allocations: 75.33 kB / 407.1 MB, free: 30.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.24, allocations: 0 / 407.1 MB, free: 30.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.216e-05/0.2401, allocations: 59.41 kB / 407.1 MB, free: 30.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.2402, allocations: 12.17 kB / 407.1 MB, free: 30.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002076/0.2404, allocations: 127.2 kB / 407.3 MB, free: 29.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.008e-05/0.2405, allocations: 0.6806 MB / 407.9 MB, free: 29.2 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.426e-05/0.2405, allocations: 11.44 kB / 408 MB, free: 29.19 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2405, allocations: 0 / 408 MB, free: 29.19 MB / 302.1 MB Notification: Performance of Templates: time 0.00206/0.2426, allocations: 0.8706 MB / 408.8 MB, free: 28.31 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)