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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001928/0.001928, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003194/0.003194, allocations: 212.9 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.639/1.639, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.01048/0.01048, allocations: 1.017 MB / 313.5 MB, free: 1.875 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") [Timeout 660] "Notification: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 59.91 kB / 436.1 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1039, allocations: 53.59 MB / 489.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002583/0.1065, allocations: 1.373 MB / 491.1 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1079, allocations: 0.888 MB / 492 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.191e-05/0.108, allocations: 4 kB / 492 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.85e-05/0.108, allocations: 3.938 kB / 492 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1082, allocations: 11.94 kB / 492 MB, free: 7.965 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002112/0.1084, allocations: 43.88 kB / 492.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.121e-05/0.1085, allocations: 23.92 kB / 492.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.325e-05/0.1085, allocations: 0 / 492.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.331e-05/0.1086, allocations: 7.938 kB / 492.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.1086, allocations: 23.91 kB / 492.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.1087, allocations: 0 / 492.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.344e-05/0.1088, allocations: 31.98 kB / 492.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.439e-05/0.1088, allocations: 4 kB / 492.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.147e-05/0.1088, allocations: 11.88 kB / 492.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.1089, allocations: 51.86 kB / 492.2 MB, free: 7.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.109, allocations: 7.938 kB / 492.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.109, allocations: 0 / 492.2 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.109, allocations: 0 / 492.2 MB, free: 7.762 MB / 350.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.0004847/0.1094, allocations: 291.9 kB / 492.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1095, allocations: 16.03 kB / 492.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.77e-05/0.1095, allocations: 4.891 kB / 492.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1097, allocations: 106.5 kB / 492.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.1097, allocations: 384 / 492.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.434e-06/0.1097, allocations: 384 / 492.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.1098, allocations: 67.95 kB / 492.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.1098, allocations: 192 / 492.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1098, allocations: 3.938 kB / 492.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1098, allocations: 0 / 492.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.988e-05/0.1099, allocations: 15.92 kB / 492.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.11, allocations: 113.3 kB / 492.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.56e-05/0.1101, allocations: 22.56 kB / 492.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.447e-05/0.1102, allocations: 16.91 kB / 492.9 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.281e-06/0.1102, allocations: 3.938 kB / 492.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.1104, allocations: 162.2 kB / 493 MB, free: 6.801 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.1104, allocations: 0 / 493 MB, free: 6.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002628/0.1106, allocations: 142.7 kB / 493.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.1107, allocations: 81.23 kB / 493.2 MB, free: 6.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.651e-05/0.1108, allocations: 109.8 kB / 493.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.1108, allocations: 25.7 kB / 493.4 MB, free: 6.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.068e-05/0.1109, allocations: 80.14 kB / 493.5 MB, free: 6.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.1109, allocations: 11.89 kB / 493.5 MB, free: 6.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.1109, allocations: 13.72 kB / 493.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1111, allocations: 314.8 kB / 493.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.71e-05/0.1111, allocations: 37.7 kB / 493.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.918e-05/0.1112, allocations: 47.34 kB / 493.9 MB, free: 5.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.1113, allocations: 89.11 kB / 494 MB, free: 5.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1113, allocations: 0 / 494 MB, free: 5.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001527/0.1115, allocations: 109 kB / 494.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.1115, allocations: 29.7 kB / 494.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1115, allocations: 0 / 494.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1115, allocations: 3.938 kB / 494.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.686e-05/0.1116, allocations: 7.984 kB / 494.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.838e-06/0.1116, allocations: 4.062 kB / 494.1 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.055e-05/0.1116, allocations: 4 kB / 494.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.1116, allocations: 0 / 494.1 MB, free: 5.574 MB / 350.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 9.443e-05/0.1117, allocations: 135.5 kB / 494.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.1117, allocations: 7.984 kB / 494.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.1117, allocations: 15.52 kB / 494.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.1118, allocations: 0 / 494.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1118, allocations: 0 / 494.3 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1118, allocations: 8 kB / 494.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.1119, allocations: 109.3 kB / 494.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1119, allocations: 4 kB / 494.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.691e-05/0.1119, allocations: 4 kB / 494.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.1119, allocations: 0 / 494.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.1119, allocations: 0 / 494.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.1119, allocations: 3.938 kB / 494.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1119, allocations: 320 / 494.4 MB, free: 5.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.1121, allocations: 132.5 kB / 494.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.975e-06/0.1121, allocations: 4 kB / 494.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.279e-05/0.1121, allocations: 0 / 494.5 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.445e-05/0.1121, allocations: 7.969 kB / 494.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.1122, allocations: 7.984 kB / 494.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.909e-06/0.1122, allocations: 8 kB / 494.6 MB, free: 5.055 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.179e-05/0.1122, allocations: 91.19 kB / 494.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1122, allocations: 0 / 494.6 MB, free: 4.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002115/0.1125, allocations: 19.98 kB / 494.7 MB, free: 4.945 MB / 350.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.0004288/0.1129, allocations: 179.3 kB / 494.8 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001988/0.1131, allocations: 126.7 kB / 495 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.1131, allocations: 0 / 495 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.659e-05/0.1132, allocations: 89.09 kB / 495 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001469/0.1133, allocations: 18.94 kB / 495.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.1136, allocations: 139.3 kB / 495.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.802e-05/0.1136, allocations: 59.34 kB / 495.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.793e-05/0.1137, allocations: 0 / 495.3 MB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.003e-05/0.1137, allocations: 11.44 kB / 495.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1137, allocations: 0 / 495.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of Templates: time 0.003593/0.1173, allocations: 0.7755 MB / 496 MB, free: 3.5 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.772537335753441] Failed to read output from testmodel.py, exit status != 0: 0.12464412488043308 0.140681428 0.028587289000000002 Calling exit ...