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.001172/0.001172, allocations: 111.6 kB / 16.41 MB, free: 6.477 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.001182/0.001182, allocations: 183 kB / 17.34 MB, free: 5.754 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.365/1.365, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006124/0.006124, allocations: 0.9988 MB / 292.2 MB, free: 13.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 67.89 kB / 403.6 MB, free: 31.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06837/0.06953, allocations: 49.64 MB / 453.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002156/0.07172, allocations: 1.375 MB / 454.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.07281, allocations: 0.813 MB / 455.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.442e-05/0.07285, allocations: 4 kB / 455.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.926e-05/0.07288, allocations: 0 / 455.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.07304, allocations: 11.94 kB / 455.5 MB, free: 11.79 MB / 334.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.0002206/0.07327, allocations: 51.81 kB / 455.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.163e-05/0.07335, allocations: 19.92 kB / 455.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.0734, allocations: 11.98 kB / 455.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.293e-05/0.07344, allocations: 15.92 kB / 455.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.07355, allocations: 7.938 kB / 455.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.07357, allocations: 4 kB / 455.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.07367, allocations: 43.95 kB / 455.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.908e-06/0.07369, allocations: 0 / 455.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.967e-05/0.07373, allocations: 15.92 kB / 455.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.07387, allocations: 67.8 kB / 455.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.07388, allocations: 0 / 455.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.07389, allocations: 0 / 455.7 MB, free: 11.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.227e-06/0.0739, allocations: 4 kB / 455.7 MB, free: 11.55 MB / 334.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.0003977/0.0743, allocations: 381 kB / 456.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.07434, allocations: 8.031 kB / 456.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.07437, allocations: 0.9375 kB / 456.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.07449, allocations: 172.3 kB / 456.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.07451, allocations: 4.375 kB / 456.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.07453, allocations: 4.375 kB / 456.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001163/0.07465, allocations: 42.25 kB / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.07467, allocations: 4.188 kB / 456.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.07469, allocations: 3.938 kB / 456.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.0747, allocations: 0 / 456.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.321e-05/0.07478, allocations: 19.86 kB / 456.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001466/0.07493, allocations: 169.6 kB / 456.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.61e-05/0.07502, allocations: 30.58 kB / 456.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.075e-05/0.07507, allocations: 16.92 kB / 456.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.07509, allocations: 0 / 456.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001785/0.07527, allocations: 144.5 kB / 456.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.07528, allocations: 0 / 456.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002853/0.07557, allocations: 131.4 kB / 456.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.389e-05/0.07565, allocations: 136.5 kB / 457 MB, free: 10.08 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.9e-05/0.07573, allocations: 109.8 kB / 457.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.07575, allocations: 25.7 kB / 457.1 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.177e-05/0.07579, allocations: 88.14 kB / 457.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.07582, allocations: 7.812 kB / 457.2 MB, free: 9.832 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.279e-05/0.07586, allocations: 21.7 kB / 457.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.375e-05/0.07596, allocations: 314.8 kB / 457.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.482e-05/0.07602, allocations: 15.98 kB / 457.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.934e-05/0.07607, allocations: 29.7 kB / 457.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001422/0.07622, allocations: 101 kB / 457.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.07623, allocations: 0 / 457.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001647/0.0764, allocations: 99.31 kB / 457.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.023e-05/0.07644, allocations: 41.7 kB / 457.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.546e-06/0.07645, allocations: 0 / 457.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.07647, allocations: 0 / 457.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.198e-05/0.07654, allocations: 7.984 kB / 457.8 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.07655, allocations: 7.938 kB / 457.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.015e-05/0.07659, allocations: 7.906 kB / 457.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.07661, allocations: 4 kB / 457.8 MB, free: 9.137 MB / 334.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.0001305/0.07674, allocations: 151.2 kB / 458 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.07677, allocations: 11.94 kB / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.714e-05/0.07679, allocations: 7.969 kB / 458 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.0768, allocations: 0 / 458 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.0768, allocations: 0 / 458 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.07681, allocations: 0 / 458 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.07692, allocations: 161.7 kB / 458.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.07693, allocations: 48 / 458.1 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.179e-05/0.07697, allocations: 11.97 kB / 458.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.07698, allocations: 3.938 kB / 458.2 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.07699, allocations: 4 kB / 458.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.077, allocations: 4 kB / 458.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.077, allocations: 3.938 kB / 458.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.07722, allocations: 146.7 kB / 458.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.277e-05/0.07727, allocations: 81.09 kB / 458.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.896e-05/0.07729, allocations: 11.94 kB / 458.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.536e-05/0.07734, allocations: 8 kB / 458.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-05/0.07738, allocations: 4 kB / 458.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.0774, allocations: 8.031 kB / 458.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.99e-05/0.07744, allocations: 91.56 kB / 458.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.07745, allocations: 0 / 458.5 MB, free: 8.332 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002287/0.07769, allocations: 20 kB / 458.5 MB, free: 8.312 MB / 334.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.0003347/0.07803, allocations: 208.1 kB / 458.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001911/0.07823, allocations: 103.3 kB / 458.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.07825, allocations: 4.125 kB / 458.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.705e-05/0.07835, allocations: 87.39 kB / 458.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.0785, allocations: 11.88 kB / 458.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002567/0.07876, allocations: 143.2 kB / 459.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000212/0.07899, allocations: 0.6844 MB / 459.8 MB, free: 7.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.536e-05/0.07901, allocations: 7.438 kB / 459.8 MB, free: 7.023 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.07901, allocations: 0 / 459.8 MB, free: 7.023 MB / 334.1 MB Notification: Performance of Templates: time 0.002214/0.08123, allocations: 1.015 MB / 460.8 MB, free: 6.012 MB / 334.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)