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.001213/0.001213, allocations: 107.8 kB / 16.36 MB, free: 6.285 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.001222/0.001222, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.229/1.229, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005902/0.005902, allocations: 1.02 MB / 292.2 MB, free: 13.81 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 59.91 kB / 353.5 MB, free: 448 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.1752, allocations: 49.65 MB / 403.1 MB, free: 35.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001948/0.1771, allocations: 1.364 MB / 404.5 MB, free: 34.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000817/0.178, allocations: 0.8103 MB / 405.3 MB, free: 33.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.56e-05/0.178, allocations: 4 kB / 405.3 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.373e-05/0.178, allocations: 3.938 kB / 405.3 MB, free: 33.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.1782, allocations: 3.938 kB / 405.3 MB, free: 33.27 MB / 302.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.0001958/0.1784, allocations: 47.89 kB / 405.4 MB, free: 33.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.743e-05/0.1785, allocations: 31.84 kB / 405.4 MB, free: 33.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.404e-05/0.1785, allocations: 7.375 kB / 405.4 MB, free: 33.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.526e-05/0.1785, allocations: 7.984 kB / 405.4 MB, free: 33.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1787, allocations: 11.94 kB / 405.4 MB, free: 33.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.949e-06/0.1787, allocations: 4 kB / 405.4 MB, free: 33.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.464e-05/0.1788, allocations: 47.89 kB / 405.5 MB, free: 33.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.1788, allocations: 3.984 kB / 405.5 MB, free: 33.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.571e-05/0.1788, allocations: 15.88 kB / 405.5 MB, free: 33.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.1789, allocations: 55.88 kB / 405.6 MB, free: 33.04 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1789, allocations: 0 / 405.6 MB, free: 33.04 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1789, allocations: 7.984 kB / 405.6 MB, free: 33.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1789, allocations: 0 / 405.6 MB, free: 33.03 MB / 302.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.0002752/0.1792, allocations: 370.9 kB / 405.9 MB, free: 32.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.587e-05/0.1793, allocations: 12.03 kB / 405.9 MB, free: 32.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.918e-05/0.1793, allocations: 0.9375 kB / 405.9 MB, free: 32.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.813e-05/0.1794, allocations: 180.1 kB / 406.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.1794, allocations: 384 / 406.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.295e-06/0.1794, allocations: 8.312 kB / 406.1 MB, free: 32.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.901e-05/0.1795, allocations: 46.25 kB / 406.2 MB, free: 32.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.1795, allocations: 192 / 406.2 MB, free: 32.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1795, allocations: 11.94 kB / 406.2 MB, free: 32.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.1795, allocations: 0 / 406.2 MB, free: 32.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.794e-05/0.1796, allocations: 11.98 kB / 406.2 MB, free: 32.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.497e-05/0.1797, allocations: 161.7 kB / 406.3 MB, free: 32.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.644e-05/0.1798, allocations: 26.58 kB / 406.4 MB, free: 32.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.019e-05/0.1798, allocations: 28.86 kB / 406.4 MB, free: 32.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-06/0.1798, allocations: 0 / 406.4 MB, free: 32.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000129/0.18, allocations: 148.4 kB / 406.5 MB, free: 31.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.18, allocations: 0 / 406.5 MB, free: 31.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002346/0.1802, allocations: 123.3 kB / 406.7 MB, free: 31.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.1803, allocations: 140.5 kB / 406.8 MB, free: 31.56 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.767e-05/0.1803, allocations: 113.8 kB / 406.9 MB, free: 31.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.143e-06/0.1803, allocations: 25.7 kB / 406.9 MB, free: 31.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.416e-05/0.1803, allocations: 84.14 kB / 407 MB, free: 31.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.1804, allocations: 19.8 kB / 407 MB, free: 31.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.5e-05/0.1804, allocations: 13.72 kB / 407.1 MB, free: 31.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.401e-05/0.1804, allocations: 318.8 kB / 407.4 MB, free: 30.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.933e-05/0.1805, allocations: 11.98 kB / 407.4 MB, free: 30.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.744e-05/0.1805, allocations: 25.7 kB / 407.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1806, allocations: 101.1 kB / 407.5 MB, free: 30.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1806, allocations: 7.938 kB / 407.5 MB, free: 30.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000124/0.1808, allocations: 95.38 kB / 407.6 MB, free: 30.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.1808, allocations: 37.64 kB / 407.6 MB, free: 30.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1808, allocations: 4.062 kB / 407.6 MB, free: 30.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.1808, allocations: 48 / 407.6 MB, free: 30.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.457e-05/0.1809, allocations: 11.97 kB / 407.7 MB, free: 30.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.1809, allocations: 4 kB / 407.7 MB, free: 30.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.376e-05/0.1809, allocations: 11.84 kB / 407.7 MB, free: 30.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.1809, allocations: 0 / 407.7 MB, free: 30.61 MB / 302.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 8.524e-05/0.181, allocations: 151.5 kB / 407.8 MB, free: 30.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.321e-05/0.1811, allocations: 7.938 kB / 407.8 MB, free: 30.44 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.508e-05/0.1811, allocations: 7.969 kB / 407.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1811, allocations: 0 / 407.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.1811, allocations: 0 / 407.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.1811, allocations: 0 / 407.8 MB, free: 30.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.416e-05/0.1812, allocations: 165.7 kB / 408 MB, free: 30.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1812, allocations: 256 / 408 MB, free: 30.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.36e-05/0.1812, allocations: 7.984 kB / 408 MB, free: 30.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1812, allocations: 7.938 kB / 408 MB, free: 30.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.1812, allocations: 4 kB / 408 MB, free: 30.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.1812, allocations: 0 / 408 MB, free: 30.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1812, allocations: 0 / 408 MB, free: 30.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.1814, allocations: 150.7 kB / 408.2 MB, free: 30.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.522e-05/0.1814, allocations: 85.09 kB / 408.2 MB, free: 29.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.1814, allocations: 3.938 kB / 408.2 MB, free: 29.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.984e-05/0.1815, allocations: 4 kB / 408.3 MB, free: 29.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.1815, allocations: 8 kB / 408.3 MB, free: 29.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.1815, allocations: 7.922 kB / 408.3 MB, free: 29.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.191e-05/0.1815, allocations: 91.31 kB / 408.4 MB, free: 29.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1815, allocations: 3.938 kB / 408.4 MB, free: 29.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002003/0.1817, allocations: 20 kB / 408.4 MB, free: 29.79 MB / 302.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.0002966/0.182, allocations: 215.9 kB / 408.6 MB, free: 29.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001483/0.1822, allocations: 91.38 kB / 408.7 MB, free: 29.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1822, allocations: 4 kB / 408.7 MB, free: 29.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.997e-05/0.1823, allocations: 99.45 kB / 408.8 MB, free: 29.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001297/0.1824, allocations: 4 kB / 408.8 MB, free: 29.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002033/0.1826, allocations: 125.4 kB / 408.9 MB, free: 29.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.105e-05/0.1827, allocations: 0.6846 MB / 409.6 MB, free: 28.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.389e-05/0.1827, allocations: 0 / 409.6 MB, free: 28.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.088e-05/0.1828, allocations: 7.438 kB / 409.6 MB, free: 28.52 MB / 302.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1828, allocations: 0 / 409.6 MB, free: 28.52 MB / 302.1 MB Notification: Performance of Templates: time 0.002646/0.1854, allocations: 0.9027 MB / 410.5 MB, free: 27.62 MB / 302.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 -s gbode -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)