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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001387/0.001387, allocations: 174.4 kB / 16.12 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.007989/0.00799, allocations: 0.9888 MB / 17.85 MB, free: 3.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 223.3 MB / 242.1 MB, free: 10.4 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007942/0.0007942, allocations: 87.02 kB / 293.5 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003964, allocations: 20 kB / 354.8 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2109, allocations: 50.62 MB / 405.4 MB, free: 31.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09004/0.301, allocations: 76.65 MB / 482 MB, free: 2.258 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.3012, allocations: 65.5 kB / 482.1 MB, free: 2.195 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005158/0.3064, allocations: 2.056 MB / 484.2 MB, free: 144 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3064, allocations: 0 / 484.2 MB, free: 144 kB / 346.7 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.3064, allocations: 0 / 484.2 MB, free: 144 kB / 346.7 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.000392/0.3068, allocations: 385.1 kB / 484.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.3068, allocations: 12.03 kB / 484.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.907e-05/0.3069, allocations: 4.844 kB / 484.6 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.307, allocations: 168.4 kB / 484.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3071, allocations: 384 / 484.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.426e-05/0.3071, allocations: 8.375 kB / 484.7 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001516/0.3072, allocations: 50.19 kB / 484.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.918e-06/0.3073, allocations: 192 / 484.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.3073, allocations: 3.938 kB / 484.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3073, allocations: 4 kB / 484.8 MB, free: 15.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.606e-05/0.3074, allocations: 19.98 kB / 484.8 MB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001844/0.3076, allocations: 161.7 kB / 485 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.119e-05/0.3077, allocations: 30.58 kB / 485 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.569e-05/0.3077, allocations: 24.91 kB / 485 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.3077, allocations: 7.938 kB / 485 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002144/0.308, allocations: 148.4 kB / 485.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.353e-06/0.308, allocations: 0 / 485.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003253/0.3083, allocations: 139.3 kB / 485.3 MB, free: 14.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/0.3084, allocations: 128.5 kB / 485.4 MB, free: 14.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.639e-05/0.3085, allocations: 109.8 kB / 485.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.3085, allocations: 29.64 kB / 485.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.796e-05/0.3085, allocations: 84.14 kB / 485.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.3086, allocations: 7.906 kB / 485.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.3086, allocations: 0 / 485.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.3087, allocations: 318.8 kB / 486 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.497e-05/0.3088, allocations: 12.03 kB / 486 MB, free: 14.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.265e-05/0.3088, allocations: 33.64 kB / 486 MB, free: 14.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.309, allocations: 112.9 kB / 486.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.309, allocations: 4 kB / 486.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000171/0.3092, allocations: 103.3 kB / 486.2 MB, free: 13.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.3092, allocations: 37.62 kB / 486.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3092, allocations: 0 / 486.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.3092, allocations: 4 kB / 486.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.801e-05/0.3093, allocations: 4 kB / 486.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3094, allocations: 0 / 486.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.637e-05/0.3094, allocations: 19.98 kB / 486.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.3094, allocations: 0 / 486.3 MB, free: 13.7 MB / 362.7 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,$whenCondition1,$whenCondition2,y_start) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001474/0.3096, allocations: 151.4 kB / 486.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.3096, allocations: 15.83 kB / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.899e-05/0.3096, allocations: 3.969 kB / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3096, allocations: 0 / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.3096, allocations: 0 / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3096, allocations: 0 / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.3098, allocations: 165.7 kB / 486.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3098, allocations: 4 kB / 486.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.812e-05/0.3098, allocations: 4 kB / 486.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.3098, allocations: 3.938 kB / 486.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.3098, allocations: 4.25 kB / 486.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3098, allocations: 4 kB / 486.6 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3099, allocations: 3.984 kB / 486.7 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.3101, allocations: 146.8 kB / 486.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.592e-05/0.3101, allocations: 85.02 kB / 486.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.3102, allocations: 3.938 kB / 486.9 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.275e-05/0.3102, allocations: 11.98 kB / 486.9 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.3102, allocations: 3.938 kB / 486.9 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.566e-05/0.3103, allocations: 8 kB / 486.9 MB, free: 12.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.231e-05/0.3103, allocations: 91.55 kB / 487 MB, free: 12.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3103, allocations: 0 / 487 MB, free: 12.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002207/0.3106, allocations: 32.03 kB / 487 MB, free: 12.87 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003919/0.311, allocations: 204 kB / 487.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.3112, allocations: 103.4 kB / 487.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3112, allocations: 0 / 487.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.3113, allocations: 107.4 kB / 487.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.3114, allocations: 4 kB / 487.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002779/0.3117, allocations: 132.7 kB / 487.6 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.312, allocations: 0.677 MB / 488.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.217e-05/0.312, allocations: 4 kB / 488.2 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.362e-05/0.312, allocations: 7.438 kB / 488.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.312, allocations: 4.062 kB / 488.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of Templates: time 0.003055/0.3151, allocations: 0.7988 MB / 489.1 MB, free: 10.8 MB / 362.7 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)