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.001755/0.001755, allocations: 110.2 kB / 19.69 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.002268/0.002268, allocations: 217.9 kB / 23.01 MB, free: 4.566 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.06328/0.06328, allocations: 11.35 MB / 324.5 MB, free: 8.262 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.002031/0.002031, allocations: 68.17 kB / 452.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.114, allocations: 56.07 MB / 0.4965 GB, free: 1.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003025/0.1171, allocations: 1.591 MB / 0.498 GB, free: 284 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1182, allocations: 0.5923 MB / 0.4986 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.666e-05/0.1183, allocations: 11.88 kB / 0.4986 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.986e-05/0.1183, allocations: 7.875 kB / 0.4986 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.181e-05/0.1184, allocations: 11.81 kB / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003215/0.1187, allocations: 87.75 kB / 0.4987 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.1189, allocations: 99.77 kB / 0.4988 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.119, allocations: 21.23 kB / 0.4988 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001662/0.1192, allocations: 59.77 kB / 0.4989 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.769e-05/0.1193, allocations: 35.72 kB / 0.4989 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.953e-05/0.1193, allocations: 4 kB / 0.4989 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.937e-05/0.1194, allocations: 15.94 kB / 0.4989 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/0.1194, allocations: 23.91 kB / 0.4989 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.369e-05/0.1195, allocations: 43.73 kB / 0.499 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.1196, allocations: 95.5 kB / 0.4991 GB, free: 15.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1196, allocations: 0 / 0.4991 GB, free: 15.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1196, allocations: 4 kB / 0.4991 GB, free: 15.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.1197, allocations: 0 / 0.4991 GB, free: 15.16 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.0006867/0.1203, allocations: 410.9 kB / 0.4995 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1204, allocations: 12.03 kB / 0.4995 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.1205, allocations: 20.88 kB / 0.4995 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1209, allocations: 206 kB / 0.4997 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.121, allocations: 111.4 kB / 0.4998 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.1211, allocations: 12.31 kB / 0.4998 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.1213, allocations: 73.77 kB / 0.4999 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1213, allocations: 0 / 0.4999 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.1213, allocations: 11.98 kB / 0.4999 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1213, allocations: 7.984 kB / 0.4999 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.1214, allocations: 23.98 kB / 0.4999 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004853/0.1219, allocations: 295.7 kB / 0.5002 GB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.1221, allocations: 54.55 kB / 0.5003 GB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.564e-05/0.1222, allocations: 28.94 kB / 0.5003 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.1222, allocations: 0 / 0.5003 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002506/0.1225, allocations: 103.2 kB / 0.5004 GB, free: 13.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.1225, allocations: 0 / 0.5004 GB, free: 13.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004142/0.1229, allocations: 145.5 kB / 0.5005 GB, free: 13.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.1229, allocations: 55.41 kB / 0.5006 GB, free: 13.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.1231, allocations: 150.2 kB / 0.5007 GB, free: 13.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.1231, allocations: 29.7 kB / 0.5008 GB, free: 13.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.538e-05/0.1232, allocations: 108.6 kB / 0.5009 GB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.1232, allocations: 27.83 kB / 0.5009 GB, free: 13.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.266e-05/0.1233, allocations: 25.72 kB / 0.5009 GB, free: 13.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.1234, allocations: 330.9 kB / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.13e-05/0.1235, allocations: 31.86 kB / 0.5013 GB, free: 12.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.779e-05/0.1236, allocations: 68.06 kB / 0.5013 GB, free: 12.63 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1238, allocations: 101 kB / 0.5014 GB, free: 12.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.529e-06/0.1238, allocations: 4 kB / 0.5014 GB, free: 12.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002397/0.124, allocations: 133.6 kB / 0.5015 GB, free: 12.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.124, allocations: 8 kB / 0.5016 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.124, allocations: 0 / 0.5016 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.124, allocations: 0 / 0.5016 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.814e-05/0.1241, allocations: 15.94 kB / 0.5016 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/0.1241, allocations: 7.984 kB / 0.5016 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.148e-05/0.1242, allocations: 4 kB / 0.5016 GB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.1242, allocations: 8 kB / 0.5016 GB, free: 12.33 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.0001464/0.1244, allocations: 131.5 kB / 0.5017 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.1244, allocations: 11.91 kB / 0.5017 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.118e-05/0.1244, allocations: 20.7 kB / 0.5017 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1244, allocations: 0 / 0.5017 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.1244, allocations: 0 / 0.5017 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1244, allocations: 3.938 kB / 0.5018 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001736/0.1246, allocations: 176.6 kB / 0.5019 GB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1246, allocations: 4 kB / 0.5019 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.012e-05/0.1247, allocations: 4 kB / 0.5019 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1247, allocations: 4 kB / 0.5019 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.1247, allocations: 7.984 kB / 0.5019 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1247, allocations: 0 / 0.5019 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1247, allocations: 0 / 0.5019 GB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002823/0.125, allocations: 144.9 kB / 0.5021 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.125, allocations: 7.953 kB / 0.5021 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.125, allocations: 7.984 kB / 0.5021 GB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.839e-05/0.1251, allocations: 8 kB / 0.5021 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.1251, allocations: 11.97 kB / 0.5021 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-06/0.1251, allocations: 4 kB / 0.5021 GB, free: 11.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.276e-05/0.1252, allocations: 128 kB / 0.5022 GB, free: 11.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1252, allocations: 3.938 kB / 0.5022 GB, free: 11.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002122/0.1254, allocations: 23.83 kB / 0.5023 GB, free: 11.57 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.000117/0.1255, allocations: 111.2 kB / 0.5024 GB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.1258, allocations: 75.84 kB / 0.5024 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.1258, allocations: 0 / 0.5024 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1259, allocations: 35.92 kB / 0.5025 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.1261, allocations: 11.98 kB / 0.5025 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005822/0.1266, allocations: 249.6 kB / 0.5027 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.127, allocations: 0.7083 MB / 0.5034 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.194e-05/0.127, allocations: 11.44 kB / 0.5034 GB, free: 10.31 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.127, allocations: 0 / 0.5034 GB, free: 10.31 MB / 382.1 MB Notification: Performance of Templates: time 0.003241/0.1302, allocations: 1.434 MB / 0.5048 GB, free: 8.883 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: 7.026656050002202] Failed to read output from testmodel.py, exit status != 0: 0.13954551611095667 0.33458506200000004 0.21245065100000002 Calling exit ...