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.001337/0.001337, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001587/0.001587, allocations: 211.1 kB / 22.24 MB, free: 5.262 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.422/1.422, allocations: 230.6 MB / 256 MB, free: 7.793 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.06179/0.06179, allocations: 11.36 MB / 323.8 MB, free: 8 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",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.002123/0.002123, allocations: 59.91 kB / 451 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1094, allocations: 56.08 MB / 0.4952 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002989/0.1124, allocations: 1.553 MB / 0.4967 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.1135, allocations: 0.5572 MB / 0.4972 GB, free: 8 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.1136, allocations: 15.92 kB / 0.4972 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.1136, allocations: 11.88 kB / 0.4972 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.978e-05/0.1137, allocations: 11.81 kB / 0.4973 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.114, allocations: 79.83 kB / 0.4973 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001881/0.1142, allocations: 103.6 kB / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1143, allocations: 13.3 kB / 0.4974 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.1145, allocations: 55.77 kB / 0.4975 GB, free: 15.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.796e-05/0.1146, allocations: 35.8 kB / 0.4975 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.1146, allocations: 4 kB / 0.4975 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.145e-05/0.1146, allocations: 15.98 kB / 0.4975 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.107e-05/0.1147, allocations: 19.91 kB / 0.4976 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.179e-05/0.1147, allocations: 31.8 kB / 0.4976 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1149, allocations: 107.7 kB / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1149, allocations: 0 / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1149, allocations: 0 / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1149, allocations: 0 / 0.4977 GB, free: 15.51 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.0006291/0.1155, allocations: 418.9 kB / 0.4981 GB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.1156, allocations: 12.03 kB / 0.4981 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.1156, allocations: 34.75 kB / 0.4981 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.1158, allocations: 20.88 kB / 0.4982 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003414/0.1161, allocations: 198.1 kB / 0.4984 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.1162, allocations: 111.4 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.584e-05/0.1162, allocations: 4.375 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002039/0.1164, allocations: 93.44 kB / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.1164, allocations: 0 / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1165, allocations: 0 / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1165, allocations: 0 / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001338/0.1166, allocations: 35.97 kB / 0.4986 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.1171, allocations: 275.8 kB / 0.4988 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002039/0.1173, allocations: 66.48 kB / 0.4989 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.16e-05/0.1174, allocations: 24.94 kB / 0.4989 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.1174, allocations: 0 / 0.4989 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.1176, allocations: 103.3 kB / 0.499 GB, free: 13.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.1176, allocations: 0 / 0.499 GB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004115/0.118, allocations: 145.5 kB / 0.4992 GB, free: 13.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/0.1181, allocations: 63.34 kB / 0.4992 GB, free: 13.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.1182, allocations: 146.2 kB / 0.4994 GB, free: 13.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.655e-05/0.1182, allocations: 33.69 kB / 0.4994 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.872e-05/0.1183, allocations: 104.1 kB / 0.4995 GB, free: 13.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.301e-05/0.1183, allocations: 27.98 kB / 0.4995 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.895e-05/0.1184, allocations: 29.7 kB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1185, allocations: 326.8 kB / 0.4999 GB, free: 13.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.946e-05/0.1186, allocations: 23.98 kB / 0.4999 GB, free: 13.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.1187, allocations: 67.64 kB / 0.5 GB, free: 12.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.1189, allocations: 101 kB / 0.5001 GB, free: 12.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.1189, allocations: 4 kB / 0.5001 GB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002383/0.1192, allocations: 133.4 kB / 0.5002 GB, free: 12.69 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1192, allocations: 8 kB / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1192, allocations: 0 / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.1192, allocations: 0 / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.365e-05/0.1193, allocations: 15.98 kB / 0.5002 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.1193, allocations: 4 kB / 0.5002 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.713e-05/0.1193, allocations: 12 kB / 0.5002 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.1194, allocations: 4 kB / 0.5002 GB, free: 12.64 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.0001539/0.1195, allocations: 137.1 kB / 0.5004 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.1195, allocations: 15.84 kB / 0.5004 GB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.237e-05/0.1196, allocations: 20.7 kB / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.1196, allocations: 0 / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1196, allocations: 0 / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1196, allocations: 7.922 kB / 0.5004 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.1198, allocations: 156.7 kB / 0.5006 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1198, allocations: 0 / 0.5006 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.176e-05/0.1198, allocations: 11.98 kB / 0.5006 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1198, allocations: 0 / 0.5006 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1198, allocations: 8 kB / 0.5006 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1198, allocations: 3.984 kB / 0.5006 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1198, allocations: 0 / 0.5006 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002866/0.1201, allocations: 149.2 kB / 0.5007 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.671e-05/0.1201, allocations: 7.953 kB / 0.5007 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.1202, allocations: 7.984 kB / 0.5007 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.1202, allocations: 4 kB / 0.5007 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.1203, allocations: 19.91 kB / 0.5008 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.1203, allocations: 11.94 kB / 0.5008 GB, free: 12.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.927e-05/0.1204, allocations: 119.1 kB / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1204, allocations: 0 / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002141/0.1206, allocations: 23.89 kB / 0.5009 GB, free: 11.89 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.0005687/0.1212, allocations: 0.6826 MB / 0.5016 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002159/0.1214, allocations: 72.14 kB / 0.5016 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1214, allocations: 4.062 kB / 0.5016 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001067/0.1215, allocations: 39.92 kB / 0.5017 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001533/0.1216, allocations: 7.938 kB / 0.5017 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.1235, allocations: 1.604 MB / 0.5033 GB, free: 9.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.894e-05/0.1236, allocations: 93.05 kB / 0.5033 GB, free: 9.223 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.854e-05/0.1236, allocations: 20.59 kB / 0.5034 GB, free: 9.203 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.959e-05/0.1237, allocations: 35.42 kB / 0.5034 GB, free: 9.168 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1237, allocations: 3.938 kB / 0.5034 GB, free: 9.164 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03717/0.1609, allocations: 3.034 MB / 0.5064 GB, free: 6.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/10.75, allocations: 11.17 kB / 0.5064 GB, free: 6.258 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.594677472952753] Failed to read output from testmodel.py, exit status != 0: 10.852831037249416 11.025685937 10.908418834 Calling exit ...