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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.000804/0.000804, allocations: 91.22 kB / 15.06 MB, free: 1.094 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.001054/0.001054, allocations: 172.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.00523/0.00523, allocations: 0.9887 MB / 292.1 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003432, allocations: 8 kB / 353.2 MB, free: 2.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2805, allocations: 50.63 MB / 403.8 MB, free: 9.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002469/0.283, allocations: 1.08 MB / 404.9 MB, free: 9.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001896/0.2849, allocations: 0.7687 MB / 405.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.852e-05/0.285, allocations: 0 / 405.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.321e-05/0.285, allocations: 5.891 kB / 405.7 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.2852, allocations: 3.297 kB / 405.7 MB, free: 9.5 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.000224/0.2854, allocations: 39.88 kB / 405.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.944e-05/0.2855, allocations: 19.86 kB / 405.7 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.612e-05/0.2855, allocations: 4.344 kB / 405.7 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.722e-05/0.2855, allocations: 12.56 kB / 405.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.2857, allocations: 23.84 kB / 405.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.2857, allocations: 2.609 kB / 405.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001277/0.2858, allocations: 43.09 kB / 405.8 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.307e-06/0.2858, allocations: 0.7188 kB / 405.8 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.914e-05/0.2859, allocations: 33.34 kB / 405.9 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.286, allocations: 35.03 kB / 405.9 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.286, allocations: 0.6094 kB / 405.9 MB, free: 9.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.286, allocations: 4 kB / 405.9 MB, free: 9.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.286, allocations: 0 / 405.9 MB, free: 9.406 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.0003745/0.2864, allocations: 375.1 kB / 406.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.2865, allocations: 11.27 kB / 406.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.2865, allocations: 1.219 kB / 406.3 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.2866, allocations: 165 kB / 406.4 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.2867, allocations: 6.469 kB / 406.4 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.134e-05/0.2867, allocations: 1.219 kB / 406.4 MB, free: 8.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001361/0.2868, allocations: 51.31 kB / 406.5 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.2868, allocations: 0 / 406.5 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.2869, allocations: 1.625 kB / 406.5 MB, free: 8.77 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.2869, allocations: 5.469 kB / 406.5 MB, free: 8.766 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.595e-05/0.2869, allocations: 21.05 kB / 406.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001258/0.2871, allocations: 160.4 kB / 406.7 MB, free: 8.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.557e-05/0.2872, allocations: 36.5 kB / 406.7 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.691e-05/0.2872, allocations: 21.84 kB / 406.7 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.2873, allocations: 2.078 kB / 406.7 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.2875, allocations: 153.3 kB / 406.9 MB, free: 8.371 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.2875, allocations: 4 kB / 406.9 MB, free: 8.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003541/0.2879, allocations: 129 kB / 407 MB, free: 8.289 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.2879, allocations: 136.8 kB / 407.1 MB, free: 8.133 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.611e-05/0.288, allocations: 114.6 kB / 407.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.2881, allocations: 27.3 kB / 407.3 MB, free: 7.992 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.718e-05/0.2881, allocations: 83.12 kB / 407.4 MB, free: 7.91 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.979e-05/0.2881, allocations: 10.16 kB / 407.4 MB, free: 7.902 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.2881, allocations: 5.469 kB / 407.4 MB, free: 7.898 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.108e-05/0.2882, allocations: 313.9 kB / 407.7 MB, free: 7.586 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.834e-05/0.2882, allocations: 13.72 kB / 407.7 MB, free: 7.582 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.986e-05/0.2883, allocations: 27 kB / 407.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.987e-05/0.2884, allocations: 51.41 kB / 407.8 MB, free: 7.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2884, allocations: 0.7031 kB / 407.8 MB, free: 7.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001704/0.2886, allocations: 107.4 kB / 407.9 MB, free: 7.441 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.2886, allocations: 34.59 kB / 407.9 MB, free: 7.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2886, allocations: 3.953 kB / 407.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.2887, allocations: 1.062 kB / 407.9 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.48e-05/0.2887, allocations: 15.78 kB / 407.9 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2888, allocations: 64 / 407.9 MB, free: 7.398 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.469e-05/0.2888, allocations: 10.8 kB / 407.9 MB, free: 7.395 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.2888, allocations: 2.875 kB / 408 MB, free: 7.395 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,$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.0001515/0.289, allocations: 148.5 kB / 408.1 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.698e-05/0.289, allocations: 7.578 kB / 408.1 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.289, allocations: 5.719 kB / 408.1 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.289, allocations: 4.609 kB / 408.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2891, allocations: 2.156 kB / 408.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2891, allocations: 4 kB / 408.1 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001153/0.2892, allocations: 163.4 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2892, allocations: 1.656 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/0.2892, allocations: 3.562 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.2892, allocations: 1.25 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.2893, allocations: 3.016 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2893, allocations: 1.219 kB / 408.3 MB, free: 7.031 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2893, allocations: 3.953 kB / 408.3 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.2895, allocations: 159.1 kB / 408.4 MB, free: 6.906 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.088e-05/0.2895, allocations: 82.83 kB / 408.5 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.981e-05/0.2896, allocations: 8.062 kB / 408.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.408e-05/0.2896, allocations: 6.641 kB / 408.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.586e-05/0.2896, allocations: 7.125 kB / 408.6 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.359e-05/0.2897, allocations: 2.469 kB / 408.6 MB, free: 6.801 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.07e-05/0.2897, allocations: 91.94 kB / 408.6 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2897, allocations: 0 / 408.6 MB, free: 6.719 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002338/0.2899, allocations: 22.75 kB / 408.7 MB, free: 6.715 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 (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.000375/0.2903, allocations: 199.5 kB / 408.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001786/0.2905, allocations: 105.6 kB / 409 MB, free: 6.52 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.2905, allocations: 128 / 409 MB, free: 6.52 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.62e-05/0.2906, allocations: 104.2 kB / 409.1 MB, free: 6.434 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.2908, allocations: 5.297 kB / 409.1 MB, free: 6.434 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.291, allocations: 128.8 kB / 409.2 MB, free: 6.316 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001045/0.2911, allocations: 0.6809 MB / 409.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.831e-05/0.2912, allocations: 5.547 kB / 409.9 MB, free: 5.617 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.437e-05/0.2912, allocations: 10.03 kB / 409.9 MB, free: 5.609 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2912, allocations: 0 / 409.9 MB, free: 5.609 MB / 286.1 MB Notification: Performance of Templates: time 0.00333/0.2945, allocations: 0.7988 MB / 410.7 MB, free: 5.5 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: