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.00137/0.00137, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001596/0.001596, allocations: 213.2 kB / 22.25 MB, free: 5.086 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.443/1.443, allocations: 230.6 MB / 256 MB, free: 8.031 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.06587/0.06587, allocations: 11.34 MB / 323.8 MB, free: 8.367 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.002056/0.002056, allocations: 71.89 kB / 451 MB, free: 10.63 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1123, allocations: 56.07 MB / 0.4952 GB, free: 2.461 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002802/0.1151, allocations: 1.599 MB / 0.4968 GB, free: 0.8516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001034/0.1161, allocations: 0.5806 MB / 0.4974 GB, free: 272 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.685e-05/0.1162, allocations: 11.88 kB / 0.4974 GB, free: 260 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.894e-05/0.1163, allocations: 11.86 kB / 0.4974 GB, free: 248 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.243e-05/0.1164, allocations: 19.81 kB / 0.4974 GB, free: 228 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002726/0.1166, allocations: 79.77 kB / 0.4975 GB, free: 148 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000168/0.1168, allocations: 99.75 kB / 0.4976 GB, free: 48 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.1169, allocations: 13.31 kB / 0.4976 GB, free: 32 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001859/0.1171, allocations: 63.7 kB / 0.4976 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.336e-05/0.1172, allocations: 39.72 kB / 0.4977 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.1172, allocations: 8 kB / 0.4977 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.466e-05/0.1172, allocations: 8 kB / 0.4977 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.1173, allocations: 31.89 kB / 0.4977 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.595e-05/0.1173, allocations: 39.73 kB / 0.4978 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000165/0.1175, allocations: 91.8 kB / 0.4978 GB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1175, allocations: 3.984 kB / 0.4978 GB, free: 15.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1175, allocations: 0 / 0.4978 GB, free: 15.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.1175, allocations: 4 kB / 0.4979 GB, free: 15.75 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.0006721/0.1182, allocations: 414.9 kB / 0.4982 GB, free: 15.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.1182, allocations: 8.031 kB / 0.4983 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000101/0.1183, allocations: 38.75 kB / 0.4983 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.1185, allocations: 24.88 kB / 0.4983 GB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003383/0.1188, allocations: 198 kB / 0.4985 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.1189, allocations: 115.3 kB / 0.4986 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.1189, allocations: 8.375 kB / 0.4986 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.1191, allocations: 85.52 kB / 0.4987 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1191, allocations: 3.938 kB / 0.4987 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1192, allocations: 3.984 kB / 0.4987 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.1192, allocations: 3.984 kB / 0.4987 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.1193, allocations: 35.97 kB / 0.4988 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.1198, allocations: 287.8 kB / 0.499 GB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.12, allocations: 58.55 kB / 0.4991 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.046e-05/0.1201, allocations: 28.94 kB / 0.4991 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.1201, allocations: 0 / 0.4991 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.1203, allocations: 115.2 kB / 0.4992 GB, free: 14.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.453e-06/0.1204, allocations: 0 / 0.4992 GB, free: 14.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004236/0.1208, allocations: 137.5 kB / 0.4994 GB, free: 14.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1208, allocations: 51.41 kB / 0.4994 GB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.121, allocations: 150.2 kB / 0.4995 GB, free: 13.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.319e-05/0.121, allocations: 33.7 kB / 0.4996 GB, free: 13.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.1211, allocations: 108.1 kB / 0.4997 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.1211, allocations: 27.98 kB / 0.4997 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/0.1211, allocations: 25.83 kB / 0.4997 GB, free: 13.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.1213, allocations: 330.7 kB / 0.5 GB, free: 13.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.221e-05/0.1214, allocations: 23.98 kB / 0.5001 GB, free: 13.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.856e-05/0.1215, allocations: 69.06 kB / 0.5001 GB, free: 13.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.1217, allocations: 101 kB / 0.5002 GB, free: 13.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1217, allocations: 0 / 0.5002 GB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002461/0.1219, allocations: 133.4 kB / 0.5004 GB, free: 12.91 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.1219, allocations: 4 kB / 0.5004 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1219, allocations: 4 kB / 0.5004 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.1219, allocations: 0 / 0.5004 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.442e-05/0.122, allocations: 19.92 kB / 0.5004 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.122, allocations: 4.156 kB / 0.5004 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.685e-05/0.1221, allocations: 8.312 kB / 0.5004 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.1221, allocations: 8 kB / 0.5004 GB, free: 12.86 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.0001566/0.1223, allocations: 124 kB / 0.5005 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.35e-05/0.1223, allocations: 19.89 kB / 0.5005 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.218e-05/0.1223, allocations: 20.66 kB / 0.5006 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1223, allocations: 0 / 0.5006 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1223, allocations: 4 kB / 0.5006 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1224, allocations: 3.938 kB / 0.5006 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.1225, allocations: 168.7 kB / 0.5007 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1225, allocations: 0 / 0.5007 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.502e-05/0.1226, allocations: 8 kB / 0.5007 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1226, allocations: 0 / 0.5007 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.1226, allocations: 4.047 kB / 0.5007 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1226, allocations: 8 kB / 0.5007 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1226, allocations: 0 / 0.5007 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.1229, allocations: 148.9 kB / 0.5009 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.929e-05/0.1229, allocations: 11.94 kB / 0.5009 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.1229, allocations: 0 / 0.5009 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.4e-05/0.123, allocations: 8 kB / 0.5009 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/0.1231, allocations: 11.97 kB / 0.5009 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1231, allocations: 7.938 kB / 0.5009 GB, free: 12.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.418e-05/0.1232, allocations: 124 kB / 0.501 GB, free: 12.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1232, allocations: 7.938 kB / 0.5011 GB, free: 12.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.1234, allocations: 23.89 kB / 0.5011 GB, free: 12.1 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.0005943/0.124, allocations: 0.6787 MB / 0.5017 GB, free: 11.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002473/0.1242, allocations: 87.95 kB / 0.5018 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1242, allocations: 0 / 0.5018 GB, free: 11.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.1243, allocations: 31.92 kB / 0.5019 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.1245, allocations: 11.94 kB / 0.5019 GB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.1265, allocations: 1.6 MB / 0.5034 GB, free: 9.547 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003248/0.1268, allocations: 0.708 MB / 0.5041 GB, free: 8.812 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.36e-05/0.1269, allocations: 20.59 kB / 0.5041 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.448e-05/0.127, allocations: 35.42 kB / 0.5042 GB, free: 8.758 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.127, allocations: 4 kB / 0.5042 GB, free: 8.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.1557, allocations: 2.635 MB / 0.5067 GB, free: 6.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.14, allocations: 21.38 kB / 0.5068 GB, free: 6.238 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: 14.112269484001445] Failed to read output from testmodel.py, exit status != 0: 11.248142699005257 11.448704539 11.328756187 Calling exit ...