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.001314/0.001314, 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.00201/0.00201, allocations: 214.7 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.369/1.369, allocations: 230.6 MB / 256 MB, free: 7.773 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.06431/0.06431, allocations: 11.34 MB / 323.8 MB, free: 8.008 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.00197/0.00197, allocations: 67.91 kB / 451 MB, free: 10.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1036, allocations: 56.07 MB / 0.4952 GB, free: 2.133 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002923/0.1066, allocations: 1.561 MB / 0.4967 GB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009931/0.1076, allocations: 0.5455 MB / 0.4972 GB, free: 12 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.059e-05/0.1076, allocations: 11.88 kB / 0.4972 GB, free: 0 / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.176e-05/0.1077, allocations: 11.92 kB / 0.4972 GB, free: 15.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.1077, allocations: 15.8 kB / 0.4972 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.108, allocations: 75.84 kB / 0.4973 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001625/0.1082, allocations: 103.6 kB / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1083, allocations: 21.3 kB / 0.4974 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.1084, allocations: 59.7 kB / 0.4975 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.078e-05/0.1085, allocations: 31.78 kB / 0.4975 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.1085, allocations: 4 kB / 0.4975 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.998e-05/0.1086, allocations: 19.94 kB / 0.4975 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.767e-05/0.1086, allocations: 15.92 kB / 0.4976 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.491e-05/0.1087, allocations: 39.78 kB / 0.4976 GB, free: 15.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001692/0.1088, allocations: 91.8 kB / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.1088, allocations: 0 / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1088, allocations: 0 / 0.4977 GB, free: 15.51 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1089, allocations: 4 kB / 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.0006502/0.1095, allocations: 422.8 kB / 0.4981 GB, free: 15.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.1095, allocations: 8.031 kB / 0.4981 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.1096, allocations: 42.73 kB / 0.4981 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.1098, allocations: 24.88 kB / 0.4982 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.1101, allocations: 182.2 kB / 0.4983 GB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.1103, allocations: 123.3 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.1103, allocations: 8.375 kB / 0.4985 GB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.1105, allocations: 77.58 kB / 0.4985 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.1105, allocations: 0 / 0.4985 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1105, allocations: 0 / 0.4985 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.1105, allocations: 4 kB / 0.4985 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001427/0.1107, allocations: 31.97 kB / 0.4986 GB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004804/0.1111, allocations: 283.8 kB / 0.4988 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.1113, allocations: 62.55 kB / 0.4989 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.531e-05/0.1114, allocations: 24.94 kB / 0.4989 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.1114, allocations: 112 / 0.4989 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002495/0.1117, allocations: 115.1 kB / 0.499 GB, free: 13.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.372e-06/0.1117, allocations: 0 / 0.499 GB, free: 13.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004042/0.1121, allocations: 137.5 kB / 0.4992 GB, free: 13.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.1122, allocations: 63.41 kB / 0.4992 GB, free: 13.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.1123, allocations: 150.2 kB / 0.4994 GB, free: 13.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.449e-05/0.1123, allocations: 26.08 kB / 0.4994 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.793e-05/0.1124, allocations: 112.1 kB / 0.4995 GB, free: 13.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.347e-05/0.1124, allocations: 24 kB / 0.4995 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.1125, allocations: 29.7 kB / 0.4996 GB, free: 13.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1126, allocations: 330.7 kB / 0.4999 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.956e-05/0.1127, allocations: 23.98 kB / 0.4999 GB, free: 13.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.348e-05/0.1128, allocations: 61.12 kB / 0.5 GB, free: 12.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.113, allocations: 109 kB / 0.5001 GB, free: 12.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.113, allocations: 0 / 0.5001 GB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002342/0.1132, allocations: 133.7 kB / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1132, allocations: 8 kB / 0.5002 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.1132, allocations: 0 / 0.5002 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.1132, allocations: 4 kB / 0.5002 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.305e-05/0.1133, allocations: 12 kB / 0.5002 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1133, allocations: 11.92 kB / 0.5002 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.197e-05/0.1134, allocations: 7.938 kB / 0.5002 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-06/0.1134, allocations: 4 kB / 0.5002 GB, free: 12.63 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.0001444/0.1136, allocations: 132 kB / 0.5004 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.346e-05/0.1136, allocations: 15.91 kB / 0.5004 GB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.747e-05/0.1136, allocations: 12.7 kB / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.1136, allocations: 4 kB / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.1136, allocations: 0 / 0.5004 GB, free: 12.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.1136, allocations: 3.938 kB / 0.5004 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001581/0.1138, allocations: 160.7 kB / 0.5005 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1138, allocations: 0 / 0.5005 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.494e-05/0.1139, allocations: 15.92 kB / 0.5006 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1139, allocations: 0 / 0.5006 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.1139, allocations: 7.938 kB / 0.5006 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1139, allocations: 4 kB / 0.5006 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1139, allocations: 0 / 0.5006 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002831/0.1142, allocations: 148.9 kB / 0.5007 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.529e-05/0.1142, allocations: 7.953 kB / 0.5007 GB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.1142, allocations: 8 kB / 0.5007 GB, free: 12.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.525e-05/0.1142, allocations: 3.984 kB / 0.5007 GB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/0.1143, allocations: 11.98 kB / 0.5007 GB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.1143, allocations: 12.02 kB / 0.5008 GB, free: 12.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.277e-05/0.1144, allocations: 120 kB / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1144, allocations: 4 kB / 0.5009 GB, free: 11.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002089/0.1146, allocations: 31.88 kB / 0.5009 GB, free: 11.88 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.0005908/0.1152, allocations: 0.6858 MB / 0.5016 GB, free: 11.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000222/0.1154, allocations: 71.84 kB / 0.5016 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1154, allocations: 0 / 0.5016 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.1155, allocations: 36.28 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.0001571/0.1157, allocations: 15.94 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.001775/0.1175, allocations: 1.604 MB / 0.5033 GB, free: 9.324 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.718e-05/0.1175, allocations: 97.05 kB / 0.5034 GB, free: 9.211 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.411e-05/0.1176, allocations: 16.59 kB / 0.5034 GB, free: 9.195 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.532e-05/0.1177, allocations: 35.42 kB / 0.5034 GB, free: 9.16 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1177, allocations: 4 kB / 0.5034 GB, free: 9.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0279/0.1456, allocations: 3.03 MB / 0.5064 GB, free: 6.258 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.78, allocations: 6.047 kB / 0.5064 GB, free: 6.254 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.38460996421054] Failed to read output from testmodel.py, exit status != 0: 10.879243041854352 11.041276013 10.930066899 Calling exit ...