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.001812/0.001812, allocations: 108.1 kB / 16.36 MB, free: 5.824 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.00191/0.001911, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.694/1.694, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.007674/0.007674, allocations: 1.016 MB / 292.2 MB, free: 13.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002089, allocations: 59.91 kB / 353.5 MB, free: 416 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4483/0.4505, allocations: 49.65 MB / 403.1 MB, free: 35.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.003144/0.4537, allocations: 1.357 MB / 404.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.4551, allocations: 0.8075 MB / 405.3 MB, free: 33.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.775e-05/0.4551, allocations: 7.406 kB / 405.3 MB, free: 33.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.569e-05/0.4552, allocations: 3.938 kB / 405.3 MB, free: 33.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002548/0.4555, allocations: 11.94 kB / 405.3 MB, free: 33.23 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.0002856/0.4558, allocations: 43.88 kB / 405.4 MB, free: 33.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001112/0.4559, allocations: 27.92 kB / 405.4 MB, free: 33.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.524e-05/0.456, allocations: 3.984 kB / 405.4 MB, free: 33.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.897e-05/0.456, allocations: 11.94 kB / 405.4 MB, free: 33.14 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.4562, allocations: 19.91 kB / 405.4 MB, free: 33.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.197e-05/0.4562, allocations: 3.438 kB / 405.4 MB, free: 33.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.4563, allocations: 43.91 kB / 405.5 MB, free: 33.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.658e-05/0.4563, allocations: 4 kB / 405.5 MB, free: 33.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.4564, allocations: 15.86 kB / 405.5 MB, free: 33.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001786/0.4565, allocations: 63.86 kB / 405.6 MB, free: 33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.4566, allocations: 0 / 405.6 MB, free: 33 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4566, allocations: 0 / 405.6 MB, free: 33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.4566, allocations: 0 / 405.6 MB, free: 33 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.0005211/0.4571, allocations: 374.5 kB / 405.9 MB, free: 32.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.4572, allocations: 12.02 kB / 405.9 MB, free: 32.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.4572, allocations: 4.938 kB / 405.9 MB, free: 32.56 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001498/0.4574, allocations: 176.1 kB / 406.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.4574, allocations: 384 / 406.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.4574, allocations: 384 / 406.1 MB, free: 32.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.4576, allocations: 50.19 kB / 406.2 MB, free: 32.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4576, allocations: 192 / 406.2 MB, free: 32.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.4576, allocations: 6.75 kB / 406.2 MB, free: 32.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4576, allocations: 0 / 406.2 MB, free: 32.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.416e-05/0.4577, allocations: 23.97 kB / 406.2 MB, free: 32.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001645/0.4579, allocations: 157.7 kB / 406.3 MB, free: 32.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.928e-05/0.458, allocations: 30.56 kB / 406.4 MB, free: 32.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.151e-05/0.458, allocations: 24.89 kB / 406.4 MB, free: 32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.4581, allocations: 0 / 406.4 MB, free: 32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.4583, allocations: 140.5 kB / 406.5 MB, free: 31.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.4583, allocations: 0 / 406.5 MB, free: 31.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003401/0.4586, allocations: 131.3 kB / 406.7 MB, free: 31.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.4587, allocations: 136.5 kB / 406.8 MB, free: 31.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.149e-05/0.4588, allocations: 105.8 kB / 406.9 MB, free: 31.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.4588, allocations: 29.7 kB / 406.9 MB, free: 31.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.295e-05/0.4588, allocations: 96.06 kB / 407 MB, free: 31.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.221e-05/0.4589, allocations: 15.75 kB / 407 MB, free: 31.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.464e-05/0.4589, allocations: 17.72 kB / 407.1 MB, free: 31.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.29e-05/0.459, allocations: 314.8 kB / 407.4 MB, free: 30.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.34e-05/0.459, allocations: 15.98 kB / 407.4 MB, free: 30.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.351e-05/0.4591, allocations: 29.7 kB / 407.4 MB, free: 30.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.4592, allocations: 97.14 kB / 407.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4592, allocations: 0 / 407.5 MB, free: 30.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001372/0.4594, allocations: 103.3 kB / 407.6 MB, free: 30.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.4594, allocations: 33.64 kB / 407.6 MB, free: 30.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.4594, allocations: 8.047 kB / 407.6 MB, free: 30.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.4595, allocations: 4 kB / 407.7 MB, free: 30.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.845e-05/0.4596, allocations: 8 kB / 407.7 MB, free: 30.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4596, allocations: 0 / 407.7 MB, free: 30.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.32e-05/0.4596, allocations: 7.906 kB / 407.7 MB, free: 30.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.4596, allocations: 0 / 407.7 MB, free: 30.59 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 0.0001544/0.4598, allocations: 155.6 kB / 407.8 MB, free: 30.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.438e-05/0.4598, allocations: 7.938 kB / 407.8 MB, free: 30.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.4599, allocations: 11.97 kB / 407.8 MB, free: 30.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.4599, allocations: 0 / 407.8 MB, free: 30.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.4599, allocations: 4 kB / 407.8 MB, free: 30.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4599, allocations: 0 / 407.8 MB, free: 30.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.318e-05/0.46, allocations: 165.6 kB / 408 MB, free: 30.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.46, allocations: 0 / 408 MB, free: 30.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.376e-05/0.46, allocations: 256 / 408 MB, free: 30.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.46, allocations: 3.938 kB / 408 MB, free: 30.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.46, allocations: 8 kB / 408 MB, free: 30.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.4601, allocations: 0 / 408 MB, free: 30.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4601, allocations: 4 kB / 408 MB, free: 30.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001898/0.4603, allocations: 154.7 kB / 408.2 MB, free: 29.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.648e-05/0.4603, allocations: 77.11 kB / 408.2 MB, free: 29.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.958e-05/0.4603, allocations: 7.938 kB / 408.3 MB, free: 29.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.067e-05/0.4603, allocations: 4 kB / 408.3 MB, free: 29.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.4604, allocations: 7.922 kB / 408.3 MB, free: 29.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.567e-05/0.4604, allocations: 4 kB / 408.3 MB, free: 29.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.108e-05/0.4605, allocations: 87.31 kB / 408.4 MB, free: 29.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.4605, allocations: 4 kB / 408.4 MB, free: 29.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.4607, allocations: 31.92 kB / 408.4 MB, free: 29.75 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.0004542/0.4612, allocations: 205.3 kB / 408.6 MB, free: 29.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.4614, allocations: 99.38 kB / 408.7 MB, free: 29.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4614, allocations: 0 / 408.7 MB, free: 29.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.91e-05/0.4615, allocations: 95.45 kB / 408.8 MB, free: 29.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.4617, allocations: 8 kB / 408.8 MB, free: 29.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003149/0.462, allocations: 125.4 kB / 408.9 MB, free: 29.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.4621, allocations: 0.6807 MB / 409.6 MB, free: 28.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.892e-05/0.4622, allocations: 0 / 409.6 MB, free: 28.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.4622, allocations: 11.44 kB / 409.6 MB, free: 28.49 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.4622, allocations: 0 / 409.6 MB, free: 28.49 MB / 302.1 MB Notification: Performance of Templates: time 0.003621/0.4658, allocations: 0.9028 MB / 410.5 MB, free: 27.59 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 cvode -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)