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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001933/0.001933, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002283/0.002283, allocations: 190 kB / 22.1 MB, free: 5.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06378/0.06378, allocations: 11.36 MB / 317.4 MB, free: 13.82 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002156/0.002156, allocations: 63.89 kB / 442.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1135, allocations: 54.89 MB / 497.1 MB, free: 76 kB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.004525/0.1181, allocations: 1.572 MB / 498.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.1195, allocations: 0.5299 MB / 499.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.1197, allocations: 11.88 kB / 499.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 5.365e-05/0.1197, allocations: 7.875 kB / 499.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000122/0.1199, allocations: 15.81 kB / 499.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.1202, allocations: 63.84 kB / 499.3 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002663/0.1205, allocations: 99.69 kB / 499.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.1207, allocations: 21.23 kB / 499.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001687/0.1208, allocations: 55.77 kB / 499.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001206/0.121, allocations: 39.78 kB / 499.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.121, allocations: 8 kB / 499.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.495e-05/0.121, allocations: 4 kB / 499.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.347e-05/0.1211, allocations: 15.92 kB / 499.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.288e-05/0.1212, allocations: 47.72 kB / 499.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.1214, allocations: 83.86 kB / 499.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1214, allocations: 0 / 499.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1214, allocations: 0 / 499.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.1214, allocations: 4 kB / 499.6 MB, free: 13.48 MB / 366.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.0008674/0.1223, allocations: 422.8 kB / 0.4883 GB, free: 13.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.1223, allocations: 12.03 kB / 0.4883 GB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.095e-05/0.1224, allocations: 34.75 kB / 0.4884 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.28e-05/0.1224, allocations: 16.84 kB / 0.4884 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000482/0.1229, allocations: 186.1 kB / 0.4886 GB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.123, allocations: 59.97 kB / 0.4886 GB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.123, allocations: 8.375 kB / 0.4886 GB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.1233, allocations: 85.5 kB / 0.4887 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1234, allocations: 0 / 0.4887 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.1234, allocations: 0 / 0.4887 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1234, allocations: 0 / 0.4887 GB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002174/0.1236, allocations: 39.91 kB / 0.4888 GB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007301/0.1243, allocations: 287.8 kB / 0.489 GB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.1246, allocations: 58.55 kB / 0.4891 GB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001335/0.1248, allocations: 28.94 kB / 0.4891 GB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.1248, allocations: 7.922 kB / 0.4891 GB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003444/0.1251, allocations: 107.3 kB / 0.4892 GB, free: 11.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.1251, allocations: 0 / 0.4892 GB, free: 11.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006417/0.1258, allocations: 137.5 kB / 0.4894 GB, free: 11.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.062e-05/0.1258, allocations: 51.41 kB / 0.4894 GB, free: 11.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002533/0.1261, allocations: 158.2 kB / 0.4895 GB, free: 11.62 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.1261, allocations: 29.7 kB / 0.4896 GB, free: 11.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.233e-05/0.1262, allocations: 100.1 kB / 0.4897 GB, free: 11.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.51e-05/0.1263, allocations: 27.78 kB / 0.4897 GB, free: 11.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.099e-05/0.1263, allocations: 29.72 kB / 0.4897 GB, free: 11.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1265, allocations: 322.8 kB / 0.49 GB, free: 11.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1266, allocations: 27.98 kB / 0.4901 GB, free: 11.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.1268, allocations: 73.17 kB / 0.4901 GB, free: 10.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.1271, allocations: 105 kB / 0.4902 GB, free: 10.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1271, allocations: 0 / 0.4902 GB, free: 10.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003764/0.1274, allocations: 129.5 kB / 0.4904 GB, free: 10.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1275, allocations: 6.812 kB / 0.4904 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1275, allocations: 0 / 0.4904 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.1275, allocations: 4.156 kB / 0.4904 GB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.1276, allocations: 19.92 kB / 0.4904 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.1276, allocations: 4 kB / 0.4904 GB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.1277, allocations: 11.89 kB / 0.4904 GB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.1278, allocations: 8 kB / 0.4904 GB, free: 10.68 MB / 366.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.0001989/0.128, allocations: 131.8 kB / 0.4905 GB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.303e-05/0.128, allocations: 11.94 kB / 0.4905 GB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.785e-05/0.128, allocations: 20.72 kB / 0.4906 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.1281, allocations: 4 kB / 0.4906 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1281, allocations: 0 / 0.4906 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1281, allocations: 3.938 kB / 0.4906 GB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002445/0.1283, allocations: 172.8 kB / 0.4907 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1283, allocations: 384 / 0.4907 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.946e-05/0.1284, allocations: 4 kB / 0.4907 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1284, allocations: 4 kB / 0.4907 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.947e-05/0.1284, allocations: 3.984 kB / 0.4907 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1284, allocations: 4 kB / 0.4908 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1284, allocations: 8 kB / 0.4908 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004654/0.1289, allocations: 148.9 kB / 0.4909 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.692e-05/0.1289, allocations: 11.94 kB / 0.4909 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.1289, allocations: 0 / 0.4909 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.915e-05/0.129, allocations: 8 kB / 0.4909 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.1291, allocations: 11.97 kB / 0.4909 GB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1291, allocations: 7.938 kB / 0.4909 GB, free: 10.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001225/0.1293, allocations: 120.1 kB / 0.4911 GB, free: 9.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1293, allocations: 0 / 0.4911 GB, free: 9.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003804/0.1296, allocations: 19.95 kB / 0.4911 GB, free: 9.926 MB / 366.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.0008147/0.1304, allocations: 0.6772 MB / 0.4917 GB, free: 9.223 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003102/0.1308, allocations: 83.83 kB / 0.4918 GB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.1308, allocations: 4 kB / 0.4918 GB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.1309, allocations: 31.92 kB / 0.4919 GB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002381/0.1311, allocations: 15.88 kB / 0.4919 GB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.1336, allocations: 1.615 MB / 0.4934 GB, free: 7.359 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1339, allocations: 0.7002 MB / 0.4941 GB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.454e-05/0.134, allocations: 16.64 kB / 0.4941 GB, free: 6.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.067e-05/0.1341, allocations: 35.42 kB / 0.4942 GB, free: 6.582 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1341, allocations: 0 / 0.4942 GB, free: 6.582 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.1596, allocations: 2.518 MB / 0.4966 GB, free: 4.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.971/8.13, allocations: 4.594 kB / 0.4966 GB, free: 4.156 MB / 366.1 MB " [Timeout remaining time 652] (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: 10.724733885988826] Failed to read output from testmodel.py, exit status != 0: 8.201519668014953 8.225136197 8.100516866 Calling exit ...