Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 103.9 kB / 16.27 MB, free: 6.414 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.001298/0.001298, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006904/0.006904, allocations: 1.02 MB / 292.1 MB, free: 13.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001929, allocations: 55.91 kB / 352.7 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2766, allocations: 49.65 MB / 402.4 MB, free: 35.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.00219/0.2788, allocations: 1.353 MB / 403.7 MB, free: 34.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009577/0.2798, allocations: 0.8113 MB / 404.6 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.791e-05/0.2798, allocations: 0 / 404.6 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.278e-05/0.2799, allocations: 4 kB / 404.6 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.2801, allocations: 15.92 kB / 404.6 MB, free: 33.38 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0002463/0.2803, allocations: 47.83 kB / 404.6 MB, free: 33.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.447e-05/0.2804, allocations: 27.86 kB / 404.7 MB, free: 33.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.316e-05/0.2805, allocations: 5.469 kB / 404.7 MB, free: 33.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.07e-05/0.2805, allocations: 11.98 kB / 404.7 MB, free: 33.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.2806, allocations: 11.92 kB / 404.7 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.119e-05/0.2806, allocations: 8 kB / 404.7 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.2807, allocations: 39.97 kB / 404.7 MB, free: 33.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.2808, allocations: 3.984 kB / 404.7 MB, free: 33.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.087e-05/0.2808, allocations: 19.86 kB / 404.8 MB, free: 33.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.2809, allocations: 55.88 kB / 404.8 MB, free: 33.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2809, allocations: 0 / 404.8 MB, free: 33.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.281, allocations: 0 / 404.8 MB, free: 33.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.281, allocations: 3.938 kB / 404.8 MB, free: 33.14 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003688/0.2813, allocations: 383 kB / 405.2 MB, free: 32.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.2814, allocations: 16.03 kB / 405.2 MB, free: 32.7 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.329e-05/0.2814, allocations: 0.9375 kB / 405.2 MB, free: 32.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.455e-05/0.2815, allocations: 172.3 kB / 405.4 MB, free: 32.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.2815, allocations: 384 / 405.4 MB, free: 32.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.2815, allocations: 4.375 kB / 405.4 MB, free: 32.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.2817, allocations: 42.25 kB / 405.4 MB, free: 32.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2817, allocations: 192 / 405.4 MB, free: 32.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.2817, allocations: 7.938 kB / 405.4 MB, free: 32.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.2817, allocations: 0 / 405.4 MB, free: 32.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.673e-05/0.2818, allocations: 15.98 kB / 405.4 MB, free: 32.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.2819, allocations: 165.7 kB / 405.6 MB, free: 32.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.319e-05/0.282, allocations: 30.52 kB / 405.6 MB, free: 32.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.594e-05/0.282, allocations: 16.92 kB / 405.6 MB, free: 32.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.2821, allocations: 3.984 kB / 405.7 MB, free: 32.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001528/0.2822, allocations: 152.5 kB / 405.8 MB, free: 31.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.212e-06/0.2822, allocations: 0 / 405.8 MB, free: 31.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002784/0.2825, allocations: 131.2 kB / 405.9 MB, free: 31.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.2826, allocations: 128.5 kB / 406.1 MB, free: 31.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.379e-05/0.2826, allocations: 113.8 kB / 406.2 MB, free: 31.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.385e-06/0.2826, allocations: 33.58 kB / 406.2 MB, free: 31.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.002e-05/0.2827, allocations: 88.14 kB / 406.3 MB, free: 31.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.2827, allocations: 15.8 kB / 406.3 MB, free: 31.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.2827, allocations: 21.75 kB / 406.3 MB, free: 31.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.2828, allocations: 314.8 kB / 406.6 MB, free: 31.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.173e-05/0.2828, allocations: 11.98 kB / 406.6 MB, free: 31.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.035e-05/0.2829, allocations: 25.7 kB / 406.7 MB, free: 31.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.283, allocations: 101 kB / 406.8 MB, free: 30.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.283, allocations: 0 / 406.8 MB, free: 30.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001324/0.2831, allocations: 103.3 kB / 406.9 MB, free: 30.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.2832, allocations: 37.64 kB / 406.9 MB, free: 30.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.2832, allocations: 0 / 406.9 MB, free: 30.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2832, allocations: 0 / 406.9 MB, free: 30.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.622e-05/0.2833, allocations: 7.984 kB / 406.9 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.2833, allocations: 0 / 406.9 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.669e-05/0.2833, allocations: 8.156 kB / 406.9 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.326e-06/0.2833, allocations: 12.06 kB / 406.9 MB, free: 30.71 MB / 302.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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 0.000101/0.2835, allocations: 151.5 kB / 407.1 MB, free: 30.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.362e-05/0.2835, allocations: 3.938 kB / 407.1 MB, free: 30.55 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.706e-05/0.2835, allocations: 11.97 kB / 407.1 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.2835, allocations: 0 / 407.1 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2835, allocations: 0 / 407.1 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2835, allocations: 0 / 407.1 MB, free: 30.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.965e-05/0.2836, allocations: 161.7 kB / 407.2 MB, free: 30.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.2836, allocations: 4 kB / 407.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.535e-05/0.2836, allocations: 7.984 kB / 407.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.2836, allocations: 3.938 kB / 407.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2836, allocations: 0 / 407.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2837, allocations: 4 kB / 407.3 MB, free: 30.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.2837, allocations: 0 / 407.3 MB, free: 30.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.2838, allocations: 146.7 kB / 407.4 MB, free: 30.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.2839, allocations: 85.09 kB / 407.5 MB, free: 30.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.2839, allocations: 11.97 kB / 407.5 MB, free: 30.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.218e-05/0.2839, allocations: 4 kB / 407.5 MB, free: 30.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.284, allocations: 4 kB / 407.5 MB, free: 30.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.284, allocations: 3.984 kB / 407.5 MB, free: 30.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.556e-05/0.284, allocations: 95.2 kB / 407.6 MB, free: 29.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.284, allocations: 0 / 407.6 MB, free: 29.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002145/0.2842, allocations: 16 kB / 407.6 MB, free: 29.9 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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0004129/0.2847, allocations: 213.5 kB / 407.8 MB, free: 29.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001778/0.2848, allocations: 103.3 kB / 407.9 MB, free: 29.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2849, allocations: 0 / 407.9 MB, free: 29.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.686e-05/0.2849, allocations: 87.39 kB / 408 MB, free: 29.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.2851, allocations: 6.188 kB / 408 MB, free: 29.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002595/0.2854, allocations: 159.3 kB / 408.2 MB, free: 29.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001019/0.2855, allocations: 0.6806 MB / 408.9 MB, free: 28.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.593e-05/0.2855, allocations: 11.44 kB / 408.9 MB, free: 28.6 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2855, allocations: 0 / 408.9 MB, free: 28.6 MB / 302.1 MB Notification: Performance of Templates: time 0.002597/0.2881, allocations: 1.011 MB / 409.9 MB, free: 27.59 MB / 302.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)