Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.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.001686/0.001686, 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.002338/0.002338, allocations: 213.8 kB / 22.24 MB, free: 4.859 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.652/1.652, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06767/0.06767, allocations: 11.35 MB / 323.8 MB, free: 8.035 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.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(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") [Timeout 660] "Notification: IndustrialControlSystems 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.002235/0.002235, allocations: 67.89 kB / 451.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1213, allocations: 56.06 MB / 0.4956 GB, free: 1.664 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003994/0.1253, allocations: 1.562 MB / 0.4972 GB, free: 96 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1267, allocations: 0.5494 MB / 0.4977 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1269, allocations: 15.88 kB / 0.4977 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.921e-05/0.1269, allocations: 7.875 kB / 0.4977 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001006/0.127, allocations: 19.78 kB / 0.4977 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004013/0.1274, allocations: 79.84 kB / 0.4978 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.1277, allocations: 103.6 kB / 0.4979 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.1278, allocations: 13.3 kB / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001971/0.128, allocations: 59.77 kB / 0.498 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001046/0.1281, allocations: 39.77 kB / 0.498 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.1281, allocations: 4 kB / 0.498 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.282e-05/0.1282, allocations: 8 kB / 0.498 GB, free: 15.19 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.458e-05/0.1282, allocations: 23.86 kB / 0.4981 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.782e-05/0.1283, allocations: 31.8 kB / 0.4981 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002079/0.1285, allocations: 99.5 kB / 0.4982 GB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1285, allocations: 4 kB / 0.4982 GB, free: 15.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1285, allocations: 0 / 0.4982 GB, free: 15.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.1285, allocations: 0 / 0.4982 GB, free: 15.04 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0007256/0.1292, allocations: 414.9 kB / 0.4986 GB, free: 14.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1293, allocations: 12.03 kB / 0.4986 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001783/0.1295, allocations: 20.88 kB / 0.4986 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003868/0.1298, allocations: 198.1 kB / 0.4988 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.13, allocations: 111.4 kB / 0.4989 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.13, allocations: 8.375 kB / 0.4989 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.1303, allocations: 81.69 kB / 0.499 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1303, allocations: 0 / 0.499 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.1303, allocations: 4 kB / 0.499 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.1303, allocations: 7.984 kB / 0.499 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001441/0.1305, allocations: 35.97 kB / 0.499 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.131, allocations: 248.4 kB / 0.4993 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.1312, allocations: 62.48 kB / 0.4993 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.87e-05/0.1313, allocations: 25.09 kB / 0.4994 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.991e-05/0.1313, allocations: 0 / 0.4994 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002625/0.1316, allocations: 115.3 kB / 0.4995 GB, free: 13.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.1316, allocations: 3.938 kB / 0.4995 GB, free: 13.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004662/0.132, allocations: 145.5 kB / 0.4996 GB, free: 13.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.1321, allocations: 55.41 kB / 0.4997 GB, free: 13.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.1322, allocations: 146.2 kB / 0.4998 GB, free: 13.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1323, allocations: 29.7 kB / 0.4998 GB, free: 13.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.1323, allocations: 108.1 kB / 0.4999 GB, free: 13.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.1324, allocations: 23.84 kB / 0.5 GB, free: 13.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.1324, allocations: 29.72 kB / 0.5 GB, free: 12.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1326, allocations: 326.8 kB / 0.5003 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.154e-05/0.1327, allocations: 23.98 kB / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.1328, allocations: 65.12 kB / 0.5004 GB, free: 12.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.133, allocations: 105 kB / 0.5005 GB, free: 12.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.133, allocations: 4 kB / 0.5005 GB, free: 12.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002507/0.1332, allocations: 129.4 kB / 0.5006 GB, free: 12.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1332, allocations: 9.875 kB / 0.5006 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1332, allocations: 0 / 0.5006 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.1333, allocations: 4 kB / 0.5006 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.1333, allocations: 11.98 kB / 0.5006 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.1334, allocations: 8.156 kB / 0.5006 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.403e-05/0.1334, allocations: 4 kB / 0.5006 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.1334, allocations: 12.06 kB / 0.5007 GB, free: 12.25 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(flow=false fixed = true ) \"output\" type: Real Rhyst_DIGITAL.y:DISCRETE(flow=false fixed = true ) \"output\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.R_DIGITAL.y,R_DIGITAL.y,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,Rhyst.state,$PRE.Rhyst.state,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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.0001484/0.1336, allocations: 126.6 kB / 0.5008 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/0.1336, allocations: 15.89 kB / 0.5008 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.184e-05/0.1337, allocations: 16.72 kB / 0.5008 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1337, allocations: 0 / 0.5008 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.1337, allocations: 0 / 0.5008 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1337, allocations: 4 kB / 0.5008 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001488/0.1338, allocations: 145.2 kB / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1338, allocations: 0 / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.234e-05/0.1339, allocations: 8 kB / 0.501 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1339, allocations: 0 / 0.501 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1339, allocations: 3.984 kB / 0.501 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.1339, allocations: 3.938 kB / 0.501 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.1339, allocations: 3.938 kB / 0.501 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.1342, allocations: 153.2 kB / 0.5011 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.1342, allocations: 7.953 kB / 0.5011 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.1342, allocations: 12 kB / 0.5011 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.7e-05/0.1343, allocations: 3.938 kB / 0.5011 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.1344, allocations: 11.97 kB / 0.5011 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.1344, allocations: 8 kB / 0.5012 GB, free: 11.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1345, allocations: 119.1 kB / 0.5013 GB, free: 11.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1345, allocations: 0 / 0.5013 GB, free: 11.56 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.1347, allocations: 27.89 kB / 0.5013 GB, free: 11.54 MB / 382.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: 7 ($whenCondition3,$whenCondition2,$whenCondition1,Rhyst_DIGITAL.y,Rhyst_DIGITAL.state,R_DIGITAL.y,Rhyst.state) * Number of discrete states: 3 (Rhyst_DIGITAL.state,R_DIGITAL.u,Rhyst.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001221/0.1348, allocations: 103.2 kB / 0.5014 GB, free: 11.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002722/0.1351, allocations: 79.84 kB / 0.5015 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.1351, allocations: 0 / 0.5015 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.1352, allocations: 31.97 kB / 0.5015 GB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.1354, allocations: 15.94 kB / 0.5015 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006525/0.136, allocations: 223.8 kB / 0.5017 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.1361, allocations: 93.5 kB / 0.5018 GB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.232e-05/0.1362, allocations: 20.59 kB / 0.5018 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.581e-05/0.1363, allocations: 19.44 kB / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1363, allocations: 0 / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of Templates: time 0.003998/0.1403, allocations: 1.003 MB / 0.5028 GB, free: 9.914 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.194894291460514] Failed to read output from testmodel.py, exit status != 0: 0.1495385393500328 0.37409527899999995 0.24236574100000002 Calling exit ...