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.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.005638/0.005638, allocations: 100.3 kB / 15.87 MB, free: 5.867 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.001362/0.001362, allocations: 192.5 kB / 16.79 MB, free: 5.809 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.343/1.343, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005926/0.005926, allocations: 1.008 MB / 291.6 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.91 kB / 352 MB, free: 2.32 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1057, allocations: 49.65 MB / 401.7 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.1626/0.2684, allocations: 1.428 MB / 403.1 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.2695, allocations: 0.7855 MB / 403.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.2696, allocations: 1.312 kB / 403.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.117e-05/0.2696, allocations: 1.75 kB / 403.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.2698, allocations: 10.2 kB / 403.9 MB, free: 9.492 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002285/0.27, allocations: 41.91 kB / 404 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.614e-05/0.2701, allocations: 24.2 kB / 404 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.15e-05/0.2701, allocations: 3.125 kB / 404 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.371e-05/0.2702, allocations: 9.219 kB / 404 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.2703, allocations: 19.47 kB / 404 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.103e-05/0.2703, allocations: 2.219 kB / 404 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.2704, allocations: 45.02 kB / 404.1 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.376e-05/0.2705, allocations: 5.75 kB / 404.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.401e-05/0.2705, allocations: 17.02 kB / 404.1 MB, free: 9.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001175/0.2706, allocations: 39.75 kB / 404.1 MB, free: 9.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2706, allocations: 3.938 kB / 404.1 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2706, allocations: 0 / 404.1 MB, free: 9.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.2707, allocations: 0 / 404.1 MB, free: 9.41 MB / 286.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.0003516/0.271, allocations: 374.2 kB / 404.5 MB, free: 9.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.2711, allocations: 11.03 kB / 404.5 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.2711, allocations: 3 kB / 404.5 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.099e-05/0.2712, allocations: 173.3 kB / 404.7 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.2712, allocations: 1.75 kB / 404.7 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.2712, allocations: 3.688 kB / 404.7 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001266/0.2714, allocations: 45.56 kB / 404.7 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2714, allocations: 192 / 404.7 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.2714, allocations: 5.219 kB / 404.7 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.2714, allocations: 4.562 kB / 404.7 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.775e-05/0.2715, allocations: 18.48 kB / 404.7 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001144/0.2716, allocations: 160 kB / 404.9 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.439e-05/0.2717, allocations: 31.42 kB / 404.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.128e-05/0.2718, allocations: 23.62 kB / 405 MB, free: 8.523 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.224e-06/0.2718, allocations: 1.781 kB / 405 MB, free: 8.523 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.272, allocations: 138.5 kB / 405.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.253e-06/0.272, allocations: 0 / 405.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002931/0.2723, allocations: 135.2 kB / 405.2 MB, free: 8.289 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.2723, allocations: 134.6 kB / 405.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.449e-05/0.2724, allocations: 115.5 kB / 405.5 MB, free: 8.02 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.707e-06/0.2724, allocations: 27.2 kB / 405.5 MB, free: 7.988 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.006e-05/0.2724, allocations: 81.83 kB / 405.6 MB, free: 7.906 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.2725, allocations: 12.42 kB / 405.6 MB, free: 7.898 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.2725, allocations: 14.92 kB / 405.6 MB, free: 7.883 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.2725, allocations: 317.7 kB / 405.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.863e-05/0.2726, allocations: 8.984 kB / 405.9 MB, free: 7.566 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.336e-05/0.2727, allocations: 29.34 kB / 405.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001342/0.2728, allocations: 106.6 kB / 406.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2728, allocations: 0 / 406.1 MB, free: 7.449 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001591/0.273, allocations: 105.9 kB / 406.2 MB, free: 7.371 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.857e-05/0.273, allocations: 37.08 kB / 406.2 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.273, allocations: 4.672 kB / 406.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.273, allocations: 1.219 kB / 406.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.774e-05/0.2731, allocations: 6.609 kB / 406.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.2731, allocations: 1.484 kB / 406.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.122e-05/0.2732, allocations: 5.75 kB / 406.2 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.2732, allocations: 1.5 kB / 406.2 MB, free: 7.332 MB / 286.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.0001089/0.2733, allocations: 152.8 kB / 406.4 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.712e-05/0.2733, allocations: 7.906 kB / 406.4 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.066e-05/0.2734, allocations: 10.5 kB / 406.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.2734, allocations: 0 / 406.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2734, allocations: 1.844 kB / 406.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2734, allocations: 0 / 406.4 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.499e-05/0.2735, allocations: 161.7 kB / 406.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2735, allocations: 0 / 406.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.859e-05/0.2735, allocations: 8.453 kB / 406.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2735, allocations: 5.812 kB / 406.6 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.2735, allocations: 6.734 kB / 406.6 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2735, allocations: 0.7031 kB / 406.6 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2735, allocations: 4 kB / 406.6 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002041/0.2737, allocations: 153 kB / 406.7 MB, free: 6.836 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.879e-05/0.2738, allocations: 79.59 kB / 406.8 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.2738, allocations: 6.156 kB / 406.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.684e-05/0.2738, allocations: 4.984 kB / 406.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.2739, allocations: 3.891 kB / 406.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.2739, allocations: 6.312 kB / 406.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.989e-05/0.2739, allocations: 88.77 kB / 406.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.274, allocations: 0 / 406.9 MB, free: 6.656 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.2742, allocations: 27.03 kB / 406.9 MB, free: 6.648 MB / 286.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.0003744/0.2746, allocations: 197 kB / 407.1 MB, free: 6.539 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001777/0.2748, allocations: 103.9 kB / 407.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2748, allocations: 0 / 407.2 MB, free: 6.461 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.755e-05/0.2749, allocations: 96.39 kB / 407.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001456/0.275, allocations: 6.203 kB / 407.3 MB, free: 6.379 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/0.2753, allocations: 162.8 kB / 407.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.751e-05/0.2754, allocations: 0.6805 MB / 408.2 MB, free: 5.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.519e-05/0.2754, allocations: 9.562 kB / 408.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2754, allocations: 0 / 408.2 MB, free: 5.512 MB / 286.1 MB Notification: Performance of Templates: time 0.002441/0.2779, allocations: 1.007 MB / 409.2 MB, free: 5.41 MB / 286.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)