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.001502/0.001502, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001329/0.001329, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.386/1.386, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.0614/0.0614, allocations: 11.35 MB / 324.6 MB, free: 8.238 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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="cs",version="2.0",platforms={"static"}) [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.00187/0.00187, allocations: 63.91 kB / 451.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1031, allocations: 56.08 MB / 0.496 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002736/0.1058, allocations: 1.586 MB / 0.4975 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1068, allocations: 0.5922 MB / 0.4981 GB, free: 160 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.412e-05/0.1069, allocations: 11.88 kB / 0.4981 GB, free: 148 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.625e-05/0.1069, allocations: 7.875 kB / 0.4981 GB, free: 140 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.738e-05/0.107, allocations: 11.81 kB / 0.4982 GB, free: 128 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002616/0.1073, allocations: 79.83 kB / 0.4982 GB, free: 48 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.1075, allocations: 103.7 kB / 0.4983 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001052/0.1076, allocations: 17.3 kB / 0.4983 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.1077, allocations: 67.7 kB / 0.4984 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.415e-05/0.1078, allocations: 39.72 kB / 0.4984 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.69e-05/0.1078, allocations: 4 kB / 0.4985 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.988e-05/0.1079, allocations: 8 kB / 0.4985 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.248e-05/0.1079, allocations: 27.91 kB / 0.4985 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.957e-05/0.108, allocations: 43.67 kB / 0.4985 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001535/0.1081, allocations: 91.8 kB / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1081, allocations: 0 / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1081, allocations: 0 / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1081, allocations: 0 / 0.4986 GB, free: 15.65 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.0005967/0.1087, allocations: 425.1 kB / 0.499 GB, free: 15.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.1088, allocations: 12.03 kB / 0.499 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.1e-05/0.1088, allocations: 192 / 0.499 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.1088, allocations: 46.67 kB / 0.4991 GB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.109, allocations: 16.89 kB / 0.4991 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.1093, allocations: 198.1 kB / 0.4993 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.1094, allocations: 115.4 kB / 0.4994 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.1094, allocations: 16.11 kB / 0.4994 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.1096, allocations: 69.64 kB / 0.4995 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1096, allocations: 4 kB / 0.4995 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.1096, allocations: 4 kB / 0.4995 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.1097, allocations: 4 kB / 0.4995 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.1098, allocations: 31.97 kB / 0.4995 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005186/0.1103, allocations: 291.8 kB / 0.4998 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002/0.1105, allocations: 58.55 kB / 0.4999 GB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.602e-05/0.1106, allocations: 28.94 kB / 0.4999 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.235e-05/0.1106, allocations: 0 / 0.4999 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.1109, allocations: 103.2 kB / 0.5 GB, free: 14.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.1109, allocations: 0 / 0.5 GB, free: 14.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003968/0.1112, allocations: 145.5 kB / 0.5001 GB, free: 13.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.1113, allocations: 55.39 kB / 0.5002 GB, free: 13.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.1114, allocations: 154.2 kB / 0.5003 GB, free: 13.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.1115, allocations: 29.81 kB / 0.5003 GB, free: 13.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.141e-05/0.1115, allocations: 112.4 kB / 0.5005 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.226e-05/0.1116, allocations: 24 kB / 0.5005 GB, free: 13.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/0.1116, allocations: 29.7 kB / 0.5005 GB, free: 13.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1117, allocations: 326.8 kB / 0.5008 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.761e-05/0.1118, allocations: 27.92 kB / 0.5008 GB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.452e-05/0.1119, allocations: 61.08 kB / 0.5009 GB, free: 13.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002177/0.1121, allocations: 108.9 kB / 0.501 GB, free: 12.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.1121, allocations: 4 kB / 0.501 GB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002381/0.1124, allocations: 129.5 kB / 0.5011 GB, free: 12.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.1124, allocations: 8 kB / 0.5011 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1124, allocations: 0 / 0.5011 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.1124, allocations: 0 / 0.5011 GB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.48e-05/0.1125, allocations: 19.92 kB / 0.5012 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1125, allocations: 7.984 kB / 0.5012 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.271e-05/0.1126, allocations: 11.92 kB / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.1126, allocations: 8 kB / 0.5012 GB, free: 12.75 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.0001401/0.1127, allocations: 122 kB / 0.5013 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.163e-05/0.1127, allocations: 11.91 kB / 0.5013 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.107e-05/0.1128, allocations: 20.7 kB / 0.5013 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1128, allocations: 0 / 0.5013 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1128, allocations: 0 / 0.5013 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.1128, allocations: 4 kB / 0.5013 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001695/0.1129, allocations: 168.7 kB / 0.5015 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.113, allocations: 4 kB / 0.5015 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.165e-05/0.113, allocations: 15.92 kB / 0.5015 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.113, allocations: 0 / 0.5015 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.113, allocations: 4 kB / 0.5015 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.113, allocations: 0 / 0.5015 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.113, allocations: 0 / 0.5015 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.1133, allocations: 148.9 kB / 0.5017 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.731e-05/0.1133, allocations: 7.953 kB / 0.5017 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.1134, allocations: 8 kB / 0.5017 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.082e-05/0.1134, allocations: 11.92 kB / 0.5017 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.1135, allocations: 11.92 kB / 0.5017 GB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.1135, allocations: 7.984 kB / 0.5017 GB, free: 12.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.504e-05/0.1136, allocations: 124.1 kB / 0.5018 GB, free: 12.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1136, allocations: 3.938 kB / 0.5018 GB, free: 12.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002076/0.1138, allocations: 19.89 kB / 0.5018 GB, free: 12 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.0007539/0.1145, allocations: 0.6904 MB / 0.5025 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003173/0.1148, allocations: 71.84 kB / 0.5026 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1149, allocations: 0 / 0.5026 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.115, allocations: 36.28 kB / 0.5026 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002476/0.1153, allocations: 15.94 kB / 0.5026 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.1177, allocations: 1.607 MB / 0.5042 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.118, allocations: 0.7002 MB / 0.5049 GB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.904e-05/0.1181, allocations: 20.59 kB / 0.5049 GB, free: 8.684 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.403e-05/0.1182, allocations: 39.42 kB / 0.505 GB, free: 8.645 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1182, allocations: 4 kB / 0.505 GB, free: 8.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02194/0.1401, allocations: 2.672 MB / 0.5076 GB, free: 6.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.75, allocations: 4.062 kB / 0.5076 GB, free: 6.113 MB / 382.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay_fmu --startTime=0 --stopTime=4 --stepSize=0.0016 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.47458727704361] Failed to read output from testmodel.py, exit status != 0: 10.91158944205381 11.140330204 11.029900975 Calling exit ...