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.001816/0.001816, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.00818/0.00818, allocations: 0.9744 MB / 14.23 MB, free: 1.062 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.202/1.202, allocations: 221.4 MB / 236.3 MB, free: 13.26 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.0008435/0.0008435, allocations: 99.59 kB / 287.5 MB, free: 11.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.22e-05/2.223e-05, allocations: 0 / 346 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2262, allocations: 50.62 MB / 396.6 MB, free: 33.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08182/0.308, allocations: 76.55 MB / 473.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001786/0.3083, allocations: 71.91 kB / 473.3 MB, free: 4.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004435/0.3127, allocations: 1.865 MB / 475.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3127, allocations: 0 / 475.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.3128, allocations: 4 kB / 475.1 MB, free: 2.629 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.0003309/0.3131, allocations: 376.1 kB / 475.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.3132, allocations: 8.031 kB / 475.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.3132, allocations: 0 / 475.5 MB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.3133, allocations: 174.9 kB / 475.7 MB, free: 1.992 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.3134, allocations: 4 kB / 475.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3134, allocations: 0 / 475.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.3135, allocations: 37.7 kB / 475.7 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3135, allocations: 3.953 kB / 475.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.3135, allocations: 0 / 475.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.3135, allocations: 4 kB / 475.7 MB, free: 1.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.41e-05/0.3136, allocations: 15.98 kB / 475.7 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001602/0.3137, allocations: 157.6 kB / 475.9 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.949e-05/0.3138, allocations: 30.52 kB / 475.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.976e-05/0.3138, allocations: 12.89 kB / 475.9 MB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.3139, allocations: 4 kB / 475.9 MB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001443/0.314, allocations: 136.5 kB / 476.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.253e-06/0.314, allocations: 4 kB / 476.1 MB, free: 1.492 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002044/0.3142, allocations: 103.3 kB / 476.2 MB, free: 1.379 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/0.3143, allocations: 136.5 kB / 476.3 MB, free: 1.215 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.787e-05/0.3144, allocations: 101 kB / 476.4 MB, free: 1.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.3144, allocations: 29.69 kB / 476.4 MB, free: 1.074 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.936e-05/0.3145, allocations: 92.08 kB / 476.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.574e-05/0.3145, allocations: 7.812 kB / 476.5 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.096e-06/0.3145, allocations: 0 / 476.5 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.3147, allocations: 322.9 kB / 476.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.84e-05/0.3147, allocations: 4 kB / 476.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.825e-05/0.3147, allocations: 21.7 kB / 476.9 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.847e-05/0.3148, allocations: 37.7 kB / 476.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3148, allocations: 0 / 476.9 MB, free: 0.5742 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001277/0.3149, allocations: 87.33 kB / 477 MB, free: 488 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.932e-05/0.315, allocations: 43.25 kB / 477 MB, free: 440 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.315, allocations: 4.062 kB / 477 MB, free: 436 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.315, allocations: 3.938 kB / 477.1 MB, free: 432 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.854e-05/0.3151, allocations: 11.95 kB / 477.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.3151, allocations: 0 / 477.1 MB, free: 420 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.888e-05/0.3152, allocations: 4 kB / 477.1 MB, free: 416 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.3152, allocations: 4 kB / 477.1 MB, free: 412 kB / 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.0001472/0.3153, allocations: 134.7 kB / 477.2 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.3154, allocations: 11.91 kB / 477.2 MB, free: 252 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.113e-05/0.3154, allocations: 8.094 kB / 477.2 MB, free: 248 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3154, allocations: 4 kB / 477.2 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.3154, allocations: 3.953 kB / 477.2 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3154, allocations: 0 / 477.2 MB, free: 240 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001309/0.3155, allocations: 161.7 kB / 477.4 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.3156, allocations: 11.98 kB / 477.4 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.86e-05/0.3156, allocations: 4 kB / 477.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3156, allocations: 0 / 477.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.3156, allocations: 0 / 477.4 MB, free: 12 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3156, allocations: 4 kB / 477.4 MB, free: 8 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3156, allocations: 4 kB / 477.4 MB, free: 4 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000186/0.3158, allocations: 138.8 kB / 477.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.3159, allocations: 84.95 kB / 477.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.3159, allocations: 4 kB / 477.6 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.908e-05/0.316, allocations: 4 kB / 477.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.316, allocations: 7.984 kB / 477.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.316, allocations: 7.969 kB / 477.7 MB, free: 15.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.544e-05/0.3161, allocations: 90.56 kB / 477.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3161, allocations: 0 / 477.7 MB, free: 15.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.3164, allocations: 35.94 kB / 477.8 MB, free: 15.6 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) * 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.0004635/0.3168, allocations: 191.1 kB / 478 MB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001569/0.317, allocations: 87.41 kB / 478 MB, free: 15.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.317, allocations: 3.938 kB / 478.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.345e-05/0.3171, allocations: 99.45 kB / 478.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001079/0.3172, allocations: 5.875 kB / 478.2 MB, free: 15.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002438/0.3175, allocations: 80.59 kB / 478.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.3178, allocations: 0.6809 MB / 478.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.905e-05/0.3178, allocations: 0 / 478.9 MB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.63e-05/0.3178, allocations: 11.44 kB / 478.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3178, allocations: 0 / 478.9 MB, free: 14.41 MB / 362.7 MB Notification: Performance of Templates: time 0.003184/0.321, allocations: 0.8094 MB / 479.7 MB, free: 13.61 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)