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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001778/0.001778, allocations: 113.9 kB / 18.94 MB, free: 2.953 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002089/0.002089, allocations: 189.4 kB / 22.23 MB, free: 5.133 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.594/1.594, allocations: 225.6 MB / 251 MB, free: 13.04 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.06443/0.06443, allocations: 11.34 MB / 317.6 MB, free: 13.77 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.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(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: Performance of FrontEnd - loaded program: time 0.002637/0.002637, allocations: 59.89 kB / 443 MB, free: 6.418 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1199, allocations: 54.9 MB / 497.9 MB, free: 15.42 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003344/0.1232, allocations: 1.58 MB / 499.5 MB, free: 13.83 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.000988/0.1242, allocations: 0.5221 MB / 0.4883 GB, free: 13.3 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.12e-05/0.1243, allocations: 11.88 kB / 0.4883 GB, free: 13.29 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.348e-05/0.1243, allocations: 7.875 kB / 0.4883 GB, free: 13.28 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.466e-05/0.1244, allocations: 15.81 kB / 0.4883 GB, free: 13.27 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000264/0.1247, allocations: 63.84 kB / 0.4884 GB, free: 13.2 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001873/0.1249, allocations: 111.7 kB / 0.4885 GB, free: 13.09 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.125, allocations: 9.312 kB / 0.4885 GB, free: 13.08 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001181/0.1251, allocations: 55.77 kB / 0.4886 GB, free: 13.03 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.451e-05/0.1252, allocations: 35.78 kB / 0.4886 GB, free: 12.99 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.1252, allocations: 7.938 kB / 0.4886 GB, free: 12.98 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.975e-05/0.1252, allocations: 8 kB / 0.4886 GB, free: 12.98 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.906e-05/0.1253, allocations: 19.92 kB / 0.4886 GB, free: 12.96 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.615e-05/0.1253, allocations: 43.72 kB / 0.4887 GB, free: 12.91 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.1255, allocations: 87.58 kB / 0.4888 GB, free: 12.83 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1255, allocations: 0 / 0.4888 GB, free: 12.83 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.553e-06/0.1255, allocations: 4 kB / 0.4888 GB, free: 12.82 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 5.49e-06/0.1255, allocations: 0 / 0.4888 GB, free: 12.82 MB / 366.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.0007233/0.1262, allocations: 418.9 kB / 0.4892 GB, free: 12.37 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1263, allocations: 8.031 kB / 0.4892 GB, free: 12.36 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.23e-05/0.1263, allocations: 16.84 kB / 0.4892 GB, free: 12.34 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004093/0.1267, allocations: 190.1 kB / 0.4894 GB, free: 12.13 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/0.1269, allocations: 55.97 kB / 0.4894 GB, free: 12.07 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.209e-05/0.1269, allocations: 8.375 kB / 0.4894 GB, free: 12.06 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000256/0.1271, allocations: 81.77 kB / 0.4895 GB, free: 11.97 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.1272, allocations: 0 / 0.4895 GB, free: 11.97 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.948e-05/0.1272, allocations: 7.922 kB / 0.4895 GB, free: 11.96 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1272, allocations: 4 kB / 0.4895 GB, free: 11.96 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001625/0.1273, allocations: 31.98 kB / 0.4895 GB, free: 11.93 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007327/0.1281, allocations: 291.7 kB / 0.4898 GB, free: 11.6 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0002456/0.1283, allocations: 54.56 kB / 0.4899 GB, free: 11.54 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.1284, allocations: 32.92 kB / 0.4899 GB, free: 11.5 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.1284, allocations: 4 kB / 0.4899 GB, free: 11.5 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002779/0.1287, allocations: 103.2 kB / 0.49 GB, free: 11.39 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.1287, allocations: 0 / 0.49 GB, free: 11.39 MB / 366.1 MB
Notification: Performance of matching and sorting (n=10): time 0.0004932/0.1292, allocations: 141.5 kB / 0.4901 GB, free: 11.24 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.1293, allocations: 55.41 kB / 0.4902 GB, free: 11.18 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.1294, allocations: 150.2 kB / 0.4903 GB, free: 11.02 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.1295, allocations: 29.7 kB / 0.4904 GB, free: 10.98 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.662e-05/0.1296, allocations: 104.1 kB / 0.4905 GB, free: 10.88 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.1296, allocations: 23.8 kB / 0.4905 GB, free: 10.86 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.422e-05/0.1297, allocations: 29.7 kB / 0.4905 GB, free: 10.82 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001684/0.1298, allocations: 326.8 kB / 0.4908 GB, free: 10.49 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.403e-05/0.1299, allocations: 27.98 kB / 0.4909 GB, free: 10.46 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.13, allocations: 65.08 kB / 0.4909 GB, free: 10.38 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.1302, allocations: 109 kB / 0.491 GB, free: 10.26 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.1302, allocations: 0 / 0.491 GB, free: 10.26 MB / 366.1 MB
Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002495/0.1305, allocations: 117.7 kB / 0.4911 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1305, allocations: 12 kB / 0.4911 GB, free: 10.12 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1305, allocations: 0 / 0.4911 GB, free: 10.12 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.1305, allocations: 8.094 kB / 0.4912 GB, free: 10.12 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.1306, allocations: 19.88 kB / 0.4912 GB, free: 10.1 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.1307, allocations: 4 kB / 0.4912 GB, free: 10.09 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.76e-05/0.1307, allocations: 11.94 kB / 0.4912 GB, free: 10.08 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.416e-05/0.1308, allocations: 7.938 kB / 0.4912 GB, free: 10.07 MB / 366.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.0001894/0.1309, allocations: 130.7 kB / 0.4913 GB, free: 9.938 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.131, allocations: 7.953 kB / 0.4913 GB, free: 9.93 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.674e-05/0.131, allocations: 16.7 kB / 0.4913 GB, free: 9.914 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.131, allocations: 0 / 0.4913 GB, free: 9.914 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.131, allocations: 3.938 kB / 0.4913 GB, free: 9.91 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.131, allocations: 0 / 0.4913 GB, free: 9.91 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.1312, allocations: 176.8 kB / 0.4915 GB, free: 9.695 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1312, allocations: 0 / 0.4915 GB, free: 9.695 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-05/0.1313, allocations: 12.36 kB / 0.4915 GB, free: 9.684 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1313, allocations: 4 kB / 0.4915 GB, free: 9.68 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.1313, allocations: 7.984 kB / 0.4915 GB, free: 9.672 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1313, allocations: 4.062 kB / 0.4915 GB, free: 9.668 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1313, allocations: 3.938 kB / 0.4915 GB, free: 9.664 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.1316, allocations: 144.9 kB / 0.4917 GB, free: 9.504 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.886e-05/0.1317, allocations: 7.953 kB / 0.4917 GB, free: 9.496 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1317, allocations: 8 kB / 0.4917 GB, free: 9.488 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.347e-05/0.1318, allocations: 7.984 kB / 0.4917 GB, free: 9.48 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.785e-05/0.1318, allocations: 11.98 kB / 0.4917 GB, free: 9.469 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.1318, allocations: 7.984 kB / 0.4917 GB, free: 9.461 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001265/0.132, allocations: 119.1 kB / 0.4918 GB, free: 9.344 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.132, allocations: 0 / 0.4918 GB, free: 9.344 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0002189/0.1322, allocations: 19.95 kB / 0.4919 GB, free: 9.324 MB / 366.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.0001309/0.1323, allocations: 99.25 kB / 0.492 GB, free: 9.219 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0002686/0.1326, allocations: 83.83 kB / 0.492 GB, free: 9.137 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1326, allocations: 0 / 0.492 GB, free: 9.137 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.1327, allocations: 35.92 kB / 0.4921 GB, free: 9.102 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/0.1329, allocations: 12.06 kB / 0.4921 GB, free: 9.094 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.1335, allocations: 219.7 kB / 0.4923 GB, free: 8.848 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.1338, allocations: 0.7121 MB / 0.493 GB, free: 8.109 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 5.492e-05/0.1339, allocations: 12.64 kB / 0.493 GB, free: 8.098 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.077e-05/0.1339, allocations: 19.44 kB / 0.493 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of SimCode: time 3.01e-07/0.1339, allocations: 0 / 0.493 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of Templates: time 0.004789/0.1387, allocations: 0.9955 MB / 0.494 GB, free: 7.094 MB / 366.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.042154178954661]
Failed to read output from testmodel.py, exit status != 0:
0.14788387902081013 0.16268501400000002 0.033999798000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f5879f517b0>