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.001296/0.001296, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001506/0.001506, allocations: 220.9 kB / 22.26 MB, free: 5.125 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.442/1.442, allocations: 230.6 MB / 256 MB, free: 7.996 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.066/0.066, allocations: 11.34 MB / 323.8 MB, free: 8.246 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: 79.86 kB / 451 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1098, allocations: 56.05 MB / 0.4952 GB, free: 2.371 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003029/0.1128, allocations: 1.604 MB / 0.4968 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001089/0.1139, allocations: 0.5844 MB / 0.4973 GB, free: 172 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.176e-05/0.114, allocations: 15.88 kB / 0.4974 GB, free: 156 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.101e-05/0.114, allocations: 11.88 kB / 0.4974 GB, free: 144 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 7.851e-05/0.1141, allocations: 11.81 kB / 0.4974 GB, free: 132 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.1144, allocations: 87.77 kB / 0.4975 GB, free: 44 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.1145, allocations: 99.8 kB / 0.4976 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.1146, allocations: 17.3 kB / 0.4976 GB, free: 15.92 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1148, allocations: 55.66 kB / 0.4976 GB, free: 15.87 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.852e-05/0.1149, allocations: 43.72 kB / 0.4977 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.1149, allocations: 4 kB / 0.4977 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.263e-05/0.1149, allocations: 12 kB / 0.4977 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.767e-05/0.115, allocations: 19.92 kB / 0.4977 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.115, allocations: 43.72 kB / 0.4978 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1152, allocations: 95.8 kB / 0.4978 GB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1152, allocations: 0 / 0.4978 GB, free: 15.66 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1152, allocations: 0 / 0.4978 GB, free: 15.66 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1152, allocations: 0 / 0.4978 GB, free: 15.66 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.0006204/0.1158, allocations: 422.8 kB / 0.4982 GB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1158, allocations: 12.03 kB / 0.4983 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.528e-05/0.1159, allocations: 38.75 kB / 0.4983 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001474/0.116, allocations: 24.81 kB / 0.4983 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000348/0.1164, allocations: 198 kB / 0.4985 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.1165, allocations: 119.4 kB / 0.4986 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.1165, allocations: 4.375 kB / 0.4986 GB, free: 14.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002093/0.1167, allocations: 77.58 kB / 0.4987 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.1167, allocations: 0 / 0.4987 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.1168, allocations: 0 / 0.4987 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1168, allocations: 4 kB / 0.4987 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001498/0.1169, allocations: 39.91 kB / 0.4987 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.1174, allocations: 287.8 kB / 0.499 GB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002005/0.1176, allocations: 58.55 kB / 0.4991 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.523e-05/0.1177, allocations: 28.92 kB / 0.4991 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.1177, allocations: 0 / 0.4991 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000237/0.1179, allocations: 115.2 kB / 0.4992 GB, free: 14.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.1179, allocations: 0 / 0.4992 GB, free: 14.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003947/0.1183, allocations: 133.5 kB / 0.4993 GB, free: 13.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.1184, allocations: 59.39 kB / 0.4994 GB, free: 13.87 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1185, allocations: 142.3 kB / 0.4995 GB, free: 13.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1185, allocations: 41.69 kB / 0.4996 GB, free: 13.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.781e-05/0.1186, allocations: 100.2 kB / 0.4997 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.941e-05/0.1186, allocations: 35.92 kB / 0.4997 GB, free: 13.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.1187, allocations: 25.7 kB / 0.4997 GB, free: 13.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1188, allocations: 330.8 kB / 0.5 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.739e-05/0.1189, allocations: 19.98 kB / 0.5001 GB, free: 13.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.119, allocations: 77.02 kB / 0.5001 GB, free: 13.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.1192, allocations: 109.4 kB / 0.5002 GB, free: 12.94 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1192, allocations: 0 / 0.5002 GB, free: 12.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002323/0.1195, allocations: 121.5 kB / 0.5004 GB, free: 12.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1195, allocations: 8 kB / 0.5004 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1195, allocations: 3.938 kB / 0.5004 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1195, allocations: 4 kB / 0.5004 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.587e-05/0.1196, allocations: 15.92 kB / 0.5004 GB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.1196, allocations: 8.156 kB / 0.5004 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.541e-05/0.1196, allocations: 11.94 kB / 0.5004 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.728e-06/0.1197, allocations: 4 kB / 0.5004 GB, free: 12.76 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.0001441/0.1198, allocations: 129.8 kB / 0.5005 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.135e-05/0.1198, allocations: 11.91 kB / 0.5005 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.66e-05/0.1199, allocations: 12.72 kB / 0.5006 GB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1199, allocations: 4 kB / 0.5006 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1199, allocations: 0 / 0.5006 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.1199, allocations: 11.92 kB / 0.5006 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001881/0.1201, allocations: 164.7 kB / 0.5007 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1201, allocations: 0 / 0.5007 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.408e-05/0.1201, allocations: 7.984 kB / 0.5007 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.1201, allocations: 4 kB / 0.5007 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.1201, allocations: 4 kB / 0.5007 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1201, allocations: 0 / 0.5007 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1201, allocations: 0 / 0.5007 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002876/0.1204, allocations: 148.9 kB / 0.5009 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.1205, allocations: 7.953 kB / 0.5009 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.1205, allocations: 8 kB / 0.5009 GB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.289e-05/0.1205, allocations: 12.05 kB / 0.5009 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.627e-05/0.1206, allocations: 15.92 kB / 0.5009 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.1206, allocations: 7.922 kB / 0.5009 GB, free: 12.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.828e-05/0.1207, allocations: 120 kB / 0.501 GB, free: 12.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1207, allocations: 4 kB / 0.5011 GB, free: 12.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002183/0.1209, allocations: 27.89 kB / 0.5011 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.0006325/0.1215, allocations: 0.6856 MB / 0.5017 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002387/0.1218, allocations: 75.84 kB / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1218, allocations: 0 / 0.5018 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1219, allocations: 39.91 kB / 0.5019 GB, free: 11.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.1221, allocations: 11.94 kB / 0.5019 GB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.124, allocations: 1.604 MB / 0.5034 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1244, allocations: 0.7041 MB / 0.5041 GB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.865e-05/0.1244, allocations: 20.59 kB / 0.5041 GB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.781e-05/0.1245, allocations: 35.42 kB / 0.5042 GB, free: 8.656 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1245, allocations: 0 / 0.5042 GB, free: 8.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.1541, allocations: 2.636 MB / 0.5067 GB, free: 6.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.15, allocations: 17.64 kB / 0.5068 GB, free: 6.141 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 sys.exit(0), Time elapsed: 13.891525123035535] Failed to read output from testmodel.py, exit status != 0: 11.258245640899986 11.468312098 11.350615351 Calling exit ...