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.001246/0.001246, allocations: 110.5 kB / 16.41 MB, free: 6.441 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.001111/0.001111, allocations: 189.5 kB / 17.34 MB, free: 5.711 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006032/0.006032, allocations: 1.015 MB / 292.2 MB, free: 13.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 67.88 kB / 403.6 MB, free: 31.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1039, allocations: 49.64 MB / 453.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.004203/0.1082, allocations: 1.379 MB / 454.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.1098, allocations: 0.8092 MB / 455.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.52e-05/0.1099, allocations: 0 / 455.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.46e-05/0.1099, allocations: 3.938 kB / 455.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.1102, allocations: 7.938 kB / 455.5 MB, free: 11.81 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.0003151/0.1105, allocations: 47.88 kB / 455.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001094/0.1106, allocations: 27.92 kB / 455.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.631e-05/0.1107, allocations: 7.984 kB / 455.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.797e-05/0.1107, allocations: 11.94 kB / 455.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.1109, allocations: 11.92 kB / 455.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.212e-05/0.1109, allocations: 4 kB / 455.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1111, allocations: 47.89 kB / 455.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.624e-05/0.1111, allocations: 4 kB / 455.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.901e-05/0.1111, allocations: 7.938 kB / 455.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.1113, allocations: 63.84 kB / 455.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1114, allocations: 4 kB / 455.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1114, allocations: 4 kB / 455.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.162e-06/0.1114, allocations: 0 / 455.7 MB, free: 11.57 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.0006073/0.112, allocations: 381 kB / 456.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.1121, allocations: 8.031 kB / 456.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.898e-05/0.1121, allocations: 4.938 kB / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1124, allocations: 168.3 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.1124, allocations: 4.375 kB / 456.3 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.737e-05/0.1125, allocations: 4.312 kB / 456.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.1127, allocations: 54.19 kB / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1127, allocations: 192 / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.1127, allocations: 3.938 kB / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1127, allocations: 3.984 kB / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.57e-05/0.1128, allocations: 15.98 kB / 456.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002531/0.1131, allocations: 161.7 kB / 456.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.302e-05/0.1132, allocations: 30.56 kB / 456.5 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.766e-05/0.1133, allocations: 20.89 kB / 456.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.1133, allocations: 0 / 456.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002772/0.1136, allocations: 144.5 kB / 456.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.983e-06/0.1136, allocations: 0 / 456.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003729/0.1139, allocations: 131.3 kB / 456.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.475e-05/0.1141, allocations: 132.5 kB / 457 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.1142, allocations: 113.9 kB / 457.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1142, allocations: 25.7 kB / 457.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.936e-05/0.1143, allocations: 96.06 kB / 457.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.1143, allocations: 7.812 kB / 457.2 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/0.1143, allocations: 17.72 kB / 457.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.1145, allocations: 318.8 kB / 457.5 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.778e-05/0.1146, allocations: 8 kB / 457.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.515e-05/0.1146, allocations: 29.7 kB / 457.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.1148, allocations: 97.11 kB / 457.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1148, allocations: 0 / 457.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001877/0.115, allocations: 99.31 kB / 457.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.235e-05/0.1151, allocations: 41.62 kB / 457.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.1151, allocations: 4.062 kB / 457.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1151, allocations: 0 / 457.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.937e-05/0.1152, allocations: 8.25 kB / 457.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1152, allocations: 3.938 kB / 457.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.743e-05/0.1153, allocations: 15.91 kB / 457.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.1153, allocations: 0 / 457.8 MB, free: 9.152 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.0002145/0.1155, allocations: 147.5 kB / 458 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.1155, allocations: 7.938 kB / 458 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.009e-05/0.1156, allocations: 11.97 kB / 458 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1156, allocations: 0 / 458 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1156, allocations: 0 / 458 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.1156, allocations: 3.984 kB / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.1157, allocations: 161.7 kB / 458.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1158, allocations: 0 / 458.1 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-05/0.1158, allocations: 4 kB / 458.2 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1158, allocations: 3.984 kB / 458.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.1158, allocations: 11.92 kB / 458.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1158, allocations: 0 / 458.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.1158, allocations: 4 kB / 458.2 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.1161, allocations: 150.7 kB / 458.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.046e-05/0.1162, allocations: 81.11 kB / 458.4 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.156e-05/0.1162, allocations: 7.938 kB / 458.4 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.537e-05/0.1162, allocations: 4 kB / 458.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.1163, allocations: 7.922 kB / 458.4 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.1163, allocations: 4 kB / 458.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.489e-05/0.1164, allocations: 87.31 kB / 458.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1164, allocations: 0 / 458.5 MB, free: 8.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002334/0.1166, allocations: 27.98 kB / 458.5 MB, free: 8.328 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.0004154/0.117, allocations: 210.2 kB / 458.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002076/0.1172, allocations: 99.38 kB / 458.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1173, allocations: 0 / 458.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.1174, allocations: 95.45 kB / 458.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.1175, allocations: 10.28 kB / 458.9 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003146/0.1178, allocations: 147.2 kB / 459.1 MB, free: 7.754 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.1181, allocations: 0.6844 MB / 459.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.036e-05/0.1181, allocations: 7.438 kB / 459.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1181, allocations: 0 / 459.8 MB, free: 7.035 MB / 334.1 MB Notification: Performance of Templates: time 0.002566/0.1207, allocations: 1.019 MB / 460.8 MB, free: 6.02 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)