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.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.001514/0.001514, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001752/0.001752, allocations: 218.1 kB / 23.01 MB, free: 4.605 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 8.031 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.007317/0.007317, allocations: 1.008 MB / 314.2 MB, free: 2.117 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.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [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.002074/0.002074, allocations: 63.91 kB / 437 MB, free: 16.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.11, allocations: 53.58 MB / 490.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002939/0.1129, allocations: 1.399 MB / 492 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.1145, allocations: 0.8997 MB / 492.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.196e-05/0.1146, allocations: 0 / 492.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.57e-05/0.1146, allocations: 7.938 kB / 492.9 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001893/0.1148, allocations: 3.938 kB / 492.9 MB, free: 8.164 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.000295/0.1151, allocations: 55.81 kB / 492.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.609e-05/0.1152, allocations: 27.86 kB / 492.9 MB, free: 8.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.1152, allocations: 4 kB / 493 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.446e-05/0.1153, allocations: 7.984 kB / 493 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.1154, allocations: 19.88 kB / 493 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.1154, allocations: 4 kB / 493 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1155, allocations: 47.95 kB / 493 MB, free: 8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.432e-05/0.1155, allocations: 3.984 kB / 493 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1156, allocations: 15.88 kB / 493.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1158, allocations: 59.8 kB / 493.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.1158, allocations: 4 kB / 493.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1158, allocations: 0 / 493.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.1158, allocations: 0 / 493.1 MB, free: 7.918 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006371/0.1164, allocations: 307.8 kB / 493.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.23e-05/0.1165, allocations: 8.031 kB / 493.4 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.1165, allocations: 4.938 kB / 493.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.1167, allocations: 126.4 kB / 493.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1167, allocations: 384 / 493.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.1167, allocations: 4.375 kB / 493.6 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.1169, allocations: 38.25 kB / 493.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1169, allocations: 192 / 493.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.1169, allocations: 3.938 kB / 493.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.1169, allocations: 4 kB / 493.6 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.163e-05/0.117, allocations: 19.98 kB / 493.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002068/0.1172, allocations: 128.8 kB / 493.7 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.617e-05/0.1173, allocations: 30.52 kB / 493.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.344e-05/0.1173, allocations: 20.92 kB / 493.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.718e-06/0.1173, allocations: 0 / 493.8 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.1176, allocations: 144.5 kB / 493.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.1176, allocations: 0 / 493.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003802/0.118, allocations: 127.3 kB / 494.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.984e-05/0.118, allocations: 132.5 kB / 494.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001053/0.1181, allocations: 117.7 kB / 494.3 MB, free: 6.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.1182, allocations: 25.7 kB / 494.3 MB, free: 6.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.1182, allocations: 84.17 kB / 494.4 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.1182, allocations: 15.94 kB / 494.4 MB, free: 6.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.935e-05/0.1183, allocations: 21.7 kB / 494.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.1185, allocations: 314.8 kB / 494.8 MB, free: 6.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.1185, allocations: 11.98 kB / 494.8 MB, free: 6.031 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.471e-05/0.1186, allocations: 25.7 kB / 494.8 MB, free: 6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.1187, allocations: 101 kB / 494.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1187, allocations: 0 / 494.9 MB, free: 5.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002174/0.1189, allocations: 107.3 kB / 495 MB, free: 5.766 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.88e-05/0.119, allocations: 37.64 kB / 495 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.119, allocations: 0 / 495 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.119, allocations: 0 / 495 MB, free: 5.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.241e-05/0.1191, allocations: 7.984 kB / 495 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.1191, allocations: 7.938 kB / 495 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.007e-05/0.1191, allocations: 12.25 kB / 495.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.1191, allocations: 4 kB / 495.1 MB, free: 5.691 MB / 350.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.0001686/0.1193, allocations: 147.5 kB / 495.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.1193, allocations: 7.938 kB / 495.2 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.144e-05/0.1193, allocations: 8.062 kB / 495.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.1193, allocations: 0 / 495.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1193, allocations: 0 / 495.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1193, allocations: 0 / 495.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001244/0.1195, allocations: 140.7 kB / 495.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1195, allocations: 0 / 495.4 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.657e-05/0.1195, allocations: 4 kB / 495.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.232e-06/0.1195, allocations: 7.922 kB / 495.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.138e-05/0.1195, allocations: 4 kB / 495.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1195, allocations: 0 / 495.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1195, allocations: 48 / 495.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002818/0.1198, allocations: 154.7 kB / 495.5 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.237e-05/0.1198, allocations: 7.953 kB / 495.5 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.1198, allocations: 11.92 kB / 495.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.205e-05/0.1199, allocations: 0 / 495.5 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.241e-05/0.1199, allocations: 4 kB / 495.6 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.797e-05/0.1199, allocations: 7.938 kB / 495.6 MB, free: 5.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.52e-05/0.12, allocations: 87.27 kB / 495.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.12, allocations: 0 / 495.6 MB, free: 5.023 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002443/0.1202, allocations: 27.94 kB / 495.7 MB, free: 4.996 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: 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.0004672/0.1207, allocations: 180.9 kB / 495.8 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000217/0.1209, allocations: 99.38 kB / 495.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1209, allocations: 0 / 495.9 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.121, allocations: 75.33 kB / 496 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001442/0.1212, allocations: 4 kB / 496 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.1215, allocations: 159.2 kB / 496.2 MB, free: 4.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.1219, allocations: 0.6807 MB / 496.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.219e-05/0.1219, allocations: 19.56 kB / 496.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1219, allocations: 0 / 496.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of Templates: time 0.002896/0.1248, allocations: 0.9953 MB / 497.9 MB, free: 2.734 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.025000220863149] Failed to read output from testmodel.py, exit status != 0: 0.1325775480363518 0.149582444 0.030328916 Calling exit ...