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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003035/0.003035, allocations: 180.8 kB / 7.456 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.01151/0.01151, allocations: 0.9721 MB / 8.84 MB, free: 1.398 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.4 MB / 230.8 MB, free: 6.633 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008933/0.0008933, allocations: 84.7 kB / 281.9 MB, free: 4.199 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.893e-06/6.923e-06, allocations: 0 / 338.6 MB, free: 8.574 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1055, allocations: 50.63 MB / 389.2 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2463/0.3518, allocations: 75.85 MB / 465.1 MB, free: 1.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001673/0.352, allocations: 75.89 kB / 465.1 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009513/0.3615, allocations: 3.042 MB / 468.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.3616, allocations: 4 kB / 468.2 MB, free: 13.91 MB / 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.0004139/0.362, allocations: 400 kB / 468.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3621, allocations: 8.031 kB / 468.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.3621, allocations: 7.906 kB / 468.6 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.3623, allocations: 167 kB / 468.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.178e-05/0.3623, allocations: 4 kB / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.3623, allocations: 3.984 kB / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.463e-05/0.3624, allocations: 8 kB / 468.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.329e-05/0.3624, allocations: 33.7 kB / 468.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.3625, allocations: 0 / 468.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.233e-05/0.3625, allocations: 3.906 kB / 468.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3625, allocations: 0 / 468.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.3626, allocations: 142.3 kB / 468.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.802e-05/0.3627, allocations: 30.52 kB / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.015e-05/0.3627, allocations: 12.89 kB / 469 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.3627, allocations: 0 / 469 MB, free: 12.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001078/0.3629, allocations: 136.5 kB / 469.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3629, allocations: 0 / 469.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001753/0.363, allocations: 61.53 kB / 469.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.361e-05/0.3631, allocations: 132.5 kB / 469.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.491e-05/0.3632, allocations: 109 kB / 469.4 MB, free: 12.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3633, allocations: 25.7 kB / 469.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.526e-05/0.3633, allocations: 88.08 kB / 469.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.561e-05/0.3633, allocations: 11.81 kB / 469.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.3633, allocations: 0 / 469.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3634, allocations: 318.8 kB / 469.8 MB, free: 12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.587e-05/0.3635, allocations: 4 kB / 469.9 MB, free: 12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.649e-05/0.3635, allocations: 17.72 kB / 469.9 MB, free: 11.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.841e-05/0.3635, allocations: 16 kB / 469.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3635, allocations: 0 / 469.9 MB, free: 11.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.716e-05/0.3636, allocations: 57.53 kB / 469.9 MB, free: 11.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.3637, allocations: 10.28 kB / 470 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.3637, allocations: 4 kB / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.3637, allocations: 0 / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.412e-05/0.3638, allocations: 12.05 kB / 470 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.3638, allocations: 0 / 470 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.269e-05/0.3638, allocations: 12.06 kB / 470 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.803e-06/0.3639, allocations: 0 / 470 MB, free: 11.86 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = false ) "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 () * 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.0001355/0.364, allocations: 138.6 kB / 470.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.555e-05/0.364, allocations: 4 kB / 470.1 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.411e-05/0.364, allocations: 12.06 kB / 470.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.3641, allocations: 0 / 470.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3641, allocations: 0 / 470.1 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.3641, allocations: 7.906 kB / 470.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.849e-05/0.3642, allocations: 142.3 kB / 470.3 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3642, allocations: 3.984 kB / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.182e-05/0.3642, allocations: 4 kB / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3642, allocations: 0 / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.3642, allocations: 0 / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3643, allocations: 0 / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.3643, allocations: 4 kB / 470.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001442/0.3644, allocations: 101 kB / 470.4 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.806e-05/0.3645, allocations: 84.95 kB / 470.5 MB, free: 11.28 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.194e-05/0.3645, allocations: 4 kB / 470.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.552e-05/0.3645, allocations: 4 kB / 470.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.472e-05/0.3646, allocations: 3.984 kB / 470.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.3646, allocations: 4 kB / 470.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.629e-05/0.3647, allocations: 83.28 kB / 470.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000227/0.3649, allocations: 32.02 kB / 470.6 MB, free: 11.15 MB / 346.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) * 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.0003528/0.3653, allocations: 189.4 kB / 470.8 MB, free: 10.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.3654, allocations: 53.64 kB / 470.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3654, allocations: 0 / 470.8 MB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.553e-05/0.3655, allocations: 65.62 kB / 470.9 MB, free: 10.85 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001009/0.3656, allocations: 7.906 kB / 470.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002132/0.3658, allocations: 79.97 kB / 471 MB, free: 10.74 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/0.3661, allocations: 0.688 MB / 471.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3661, allocations: 0 / 471.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of Templates: time 0.002947/0.369, allocations: 0.8113 MB / 472.5 MB, free: 9.219 MB / 346.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)