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.001062/0.001062, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.004918/0.004918, allocations: 1.002 MB / 17.74 MB, free: 4 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.213/1.213, allocations: 222.9 MB / 241.6 MB, free: 9.84 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.0009701/0.00097, allocations: 95.55 kB / 292 MB, free: 9.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 55.91 kB / 352.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.196, allocations: 49.63 MB / 402.1 MB, free: 32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001881/0.1979, allocations: 1.432 MB / 403.5 MB, free: 30.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008257/0.1987, allocations: 0.7922 MB / 404.3 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.061e-05/0.1988, allocations: 0 / 404.3 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.423e-05/0.1988, allocations: 0 / 404.3 MB, free: 29.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001234/0.1989, allocations: 3.938 kB / 404.3 MB, free: 29.78 MB / 298.7 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.0001762/0.1991, allocations: 43.89 kB / 404.4 MB, free: 29.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.863e-05/0.1992, allocations: 27.86 kB / 404.4 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.39e-05/0.1992, allocations: 0 / 404.4 MB, free: 29.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.546e-05/0.1992, allocations: 11.98 kB / 404.4 MB, free: 29.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.344e-05/0.1993, allocations: 19.92 kB / 404.4 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.1993, allocations: 0 / 404.4 MB, free: 29.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.1994, allocations: 47.95 kB / 404.5 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.1994, allocations: 0 / 404.5 MB, free: 29.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.938e-05/0.1995, allocations: 15.88 kB / 404.5 MB, free: 29.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.1996, allocations: 55.86 kB / 404.6 MB, free: 29.56 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1996, allocations: 3.938 kB / 404.6 MB, free: 29.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1996, allocations: 3.938 kB / 404.6 MB, free: 29.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.685e-06/0.1996, allocations: 4 kB / 404.6 MB, free: 29.55 MB / 298.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.0002979/0.1999, allocations: 375.2 kB / 404.9 MB, free: 29.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.2, allocations: 12.03 kB / 404.9 MB, free: 29.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.2, allocations: 0.9375 kB / 404.9 MB, free: 29.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.871e-05/0.2001, allocations: 176.2 kB / 405.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.2001, allocations: 4.375 kB / 405.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.947e-06/0.2001, allocations: 384 / 405.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.2002, allocations: 42.23 kB / 405.2 MB, free: 28.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.2002, allocations: 4.188 kB / 405.2 MB, free: 28.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.2002, allocations: 3.938 kB / 405.2 MB, free: 28.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2002, allocations: 0 / 405.2 MB, free: 28.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.341e-05/0.2003, allocations: 19.98 kB / 405.2 MB, free: 28.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.2004, allocations: 165.6 kB / 405.4 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.481e-05/0.2005, allocations: 30.61 kB / 405.4 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.388e-05/0.2005, allocations: 20.92 kB / 405.4 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.101e-06/0.2006, allocations: 0 / 405.4 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000157/0.2007, allocations: 148.5 kB / 405.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.203e-06/0.2007, allocations: 0 / 405.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000241/0.201, allocations: 123.2 kB / 405.7 MB, free: 28.24 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.201, allocations: 136.5 kB / 405.8 MB, free: 28.08 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.09e-05/0.2011, allocations: 113.8 kB / 405.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.055e-06/0.2011, allocations: 25.7 kB / 405.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.836e-05/0.2011, allocations: 84.14 kB / 406 MB, free: 27.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.787e-05/0.2011, allocations: 15.84 kB / 406 MB, free: 27.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.486e-05/0.2012, allocations: 13.72 kB / 406 MB, free: 27.8 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.557e-05/0.2012, allocations: 322.8 kB / 406.4 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.877e-05/0.2013, allocations: 7.984 kB / 406.4 MB, free: 27.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.012e-05/0.2013, allocations: 21.72 kB / 406.4 MB, free: 27.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.2014, allocations: 113.1 kB / 406.5 MB, free: 27.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.2014, allocations: 4 kB / 406.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000127/0.2016, allocations: 99.31 kB / 406.6 MB, free: 27.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.2016, allocations: 40.14 kB / 406.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.2016, allocations: 0 / 406.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.2016, allocations: 0 / 406.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.506e-05/0.2017, allocations: 4 kB / 406.6 MB, free: 27.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.2017, allocations: 4.312 kB / 406.7 MB, free: 27.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.825e-05/0.2017, allocations: 15.95 kB / 406.7 MB, free: 27.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.2017, allocations: 0 / 406.7 MB, free: 27.14 MB / 298.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,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 8.066e-05/0.2018, allocations: 151.5 kB / 406.8 MB, free: 26.97 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.343e-05/0.2018, allocations: 12.17 kB / 406.8 MB, free: 26.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.459e-05/0.2019, allocations: 7.906 kB / 406.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.2019, allocations: 0 / 406.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2019, allocations: 4 kB / 406.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.2019, allocations: 0 / 406.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.229e-05/0.202, allocations: 173.6 kB / 407 MB, free: 26.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.202, allocations: 0 / 407 MB, free: 26.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.47e-05/0.202, allocations: 4 kB / 407 MB, free: 26.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.202, allocations: 3.938 kB / 407 MB, free: 26.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.202, allocations: 4 kB / 407 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.202, allocations: 3.984 kB / 407 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.202, allocations: 0 / 407 MB, free: 26.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003043/0.2023, allocations: 0.7154 MB / 407.7 MB, free: 25.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.778e-05/0.2024, allocations: 85.02 kB / 407.8 MB, free: 25.83 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.2024, allocations: 3.938 kB / 407.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.247e-05/0.2024, allocations: 4 kB / 407.8 MB, free: 25.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.826e-05/0.2024, allocations: 7.984 kB / 407.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.2025, allocations: 3.938 kB / 407.8 MB, free: 25.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.26e-05/0.2025, allocations: 87.28 kB / 407.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2025, allocations: 0 / 407.9 MB, free: 25.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002895/0.2028, allocations: 31.98 kB / 408 MB, free: 25.69 MB / 298.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 (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.0002863/0.2031, allocations: 196.1 kB / 408.1 MB, free: 25.53 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.2032, allocations: 99.31 kB / 408.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2032, allocations: 4 kB / 408.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.239e-05/0.2033, allocations: 91.33 kB / 408.3 MB, free: 25.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.2035, allocations: 11.94 kB / 408.3 MB, free: 25.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002546/0.2037, allocations: 238.4 kB / 408.6 MB, free: 25.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.971e-05/0.2038, allocations: 0.6887 MB / 409.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 1.711e-05/0.2038, allocations: 4 kB / 409.3 MB, free: 24.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.069e-05/0.2039, allocations: 7.438 kB / 409.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2039, allocations: 3.938 kB / 409.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of Templates: time 0.002462/0.2063, allocations: 0.8529 MB / 410.1 MB, free: 23.45 MB / 298.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)