Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00563/0.00563, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001601/0.001601, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.006089/0.006089, allocations: 1.02 MB / 291.5 MB, free: 13.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 67.88 kB / 403 MB, free: 31.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1109, allocations: 49.64 MB / 452.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.003283/0.1143, allocations: 1.367 MB / 454 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.1156, allocations: 0.7974 MB / 454.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.688e-05/0.1156, allocations: 0 / 454.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.703e-05/0.1157, allocations: 0 / 454.8 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1159, allocations: 15.94 kB / 454.8 MB, free: 11.83 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.1161, allocations: 43.88 kB / 454.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.368e-05/0.1162, allocations: 15.94 kB / 454.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.683e-05/0.1162, allocations: 11.98 kB / 454.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.644e-05/0.1163, allocations: 7.938 kB / 454.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.1164, allocations: 11.98 kB / 454.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.789e-06/0.1164, allocations: 0 / 454.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.381e-05/0.1165, allocations: 47.91 kB / 454.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.348e-05/0.1165, allocations: 3.938 kB / 454.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.064e-05/0.1166, allocations: 3.938 kB / 454.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.1167, allocations: 59.92 kB / 455 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1167, allocations: 0 / 455 MB, free: 11.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1167, allocations: 0 / 455 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.1167, allocations: 3.938 kB / 455 MB, free: 11.62 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000485/0.1172, allocations: 377 kB / 455.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1173, allocations: 8.031 kB / 455.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.592e-05/0.1173, allocations: 4.938 kB / 455.4 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.1175, allocations: 164.4 kB / 455.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.1175, allocations: 384 / 455.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.638e-06/0.1175, allocations: 8.375 kB / 455.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/0.1177, allocations: 34.2 kB / 455.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1177, allocations: 192 / 455.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1177, allocations: 7.875 kB / 455.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1177, allocations: 4 kB / 455.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.766e-05/0.1178, allocations: 11.98 kB / 455.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.118, allocations: 153.7 kB / 455.7 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.501e-05/0.118, allocations: 30.59 kB / 455.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.515e-05/0.1181, allocations: 8.922 kB / 455.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.1182, allocations: 0 / 455.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002462/0.1184, allocations: 114.6 kB / 455.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.673e-06/0.1184, allocations: 0 / 455.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002549/0.1187, allocations: 87.33 kB / 456 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.1188, allocations: 81.11 kB / 456.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.1188, allocations: 106.1 kB / 456.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1189, allocations: 25.7 kB / 456.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.538e-05/0.1189, allocations: 88.12 kB / 456.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.119, allocations: 7.906 kB / 456.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.728e-05/0.119, allocations: 9.719 kB / 456.3 MB, free: 10.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1191, allocations: 319 kB / 456.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.156e-05/0.1192, allocations: 15.92 kB / 456.6 MB, free: 9.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.054e-05/0.1192, allocations: 13.72 kB / 456.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.1193, allocations: 81.11 kB / 456.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1194, allocations: 3.938 kB / 456.7 MB, free: 9.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001263/0.1195, allocations: 83.39 kB / 456.8 MB, free: 9.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.622e-05/0.1195, allocations: 41.62 kB / 456.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1195, allocations: 0 / 456.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1196, allocations: 0 / 456.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.798e-05/0.1196, allocations: 4 kB / 456.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.1197, allocations: 4.062 kB / 456.8 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.1197, allocations: 4 kB / 456.8 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.1197, allocations: 0 / 456.8 MB, free: 9.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001222/0.1198, allocations: 143.6 kB / 457 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.478e-05/0.1199, allocations: 7.938 kB / 457 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.1199, allocations: 7.531 kB / 457 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1199, allocations: 0 / 457 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1199, allocations: 0 / 457 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1199, allocations: 4 kB / 457 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001109/0.12, allocations: 157.7 kB / 457.2 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.12, allocations: 4 kB / 457.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.324e-05/0.1201, allocations: 0 / 457.2 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.1201, allocations: 3.938 kB / 457.2 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.1201, allocations: 11.94 kB / 457.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1201, allocations: 0 / 457.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1201, allocations: 0 / 457.2 MB, free: 9.066 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.1203, allocations: 110.7 kB / 457.3 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.297e-05/0.1203, allocations: 81.05 kB / 457.4 MB, free: 8.836 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.1203, allocations: 3.938 kB / 457.4 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.068e-05/0.1204, allocations: 4 kB / 457.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.1204, allocations: 16 kB / 457.4 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.737e-06/0.1204, allocations: 7.984 kB / 457.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.063e-05/0.1205, allocations: 79.28 kB / 457.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1205, allocations: 0 / 457.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.1207, allocations: 23.98 kB / 457.5 MB, free: 8.703 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0003779/0.1211, allocations: 189.5 kB / 457.7 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000178/0.1213, allocations: 79.33 kB / 457.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1213, allocations: 0 / 457.8 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.336e-05/0.1214, allocations: 63.39 kB / 457.8 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.1215, allocations: 8 kB / 457.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002613/0.1218, allocations: 97.62 kB / 457.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.122, allocations: 0.6843 MB / 458.6 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.616e-05/0.122, allocations: 4 kB / 458.6 MB, free: 7.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.562e-05/0.1221, allocations: 11.62 kB / 458.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1221, allocations: 0 / 458.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of Templates: time 0.003039/0.1251, allocations: 0.7652 MB / 459.4 MB, free: 6.77 MB / 334.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)