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.001266/0.001266, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.001396/0.001396, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.509/1.509, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.0688/0.0688, allocations: 11.32 MB / 320.2 MB, free: 9.406 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.002082/0.002082, allocations: 63.89 kB / 445.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1279, allocations: 56.02 MB / 0.4901 GB, free: 5.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003092/0.131, allocations: 1.581 MB / 0.4916 GB, free: 4.012 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001095/0.1321, allocations: 0.5922 MB / 0.4922 GB, free: 3.414 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.545e-05/0.1322, allocations: 15.88 kB / 0.4922 GB, free: 3.398 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.248e-05/0.1322, allocations: 11.88 kB / 0.4922 GB, free: 3.387 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.008e-05/0.1323, allocations: 15.8 kB / 0.4922 GB, free: 3.371 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.1327, allocations: 79.78 kB / 0.4923 GB, free: 3.293 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001857/0.1329, allocations: 103.7 kB / 0.4924 GB, free: 3.191 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.133, allocations: 9.125 kB / 0.4924 GB, free: 3.18 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001624/0.1332, allocations: 59.77 kB / 0.4925 GB, free: 3.121 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.501e-05/0.1333, allocations: 39.72 kB / 0.4925 GB, free: 3.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.056e-05/0.1333, allocations: 12 kB / 0.4925 GB, free: 3.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.701e-05/0.1333, allocations: 11.98 kB / 0.4925 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.129e-05/0.1334, allocations: 19.92 kB / 0.4925 GB, free: 3.039 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.759e-05/0.1334, allocations: 43.72 kB / 0.4926 GB, free: 2.996 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1336, allocations: 95.8 kB / 0.4927 GB, free: 2.902 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1336, allocations: 0 / 0.4927 GB, free: 2.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1336, allocations: 0 / 0.4927 GB, free: 2.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1336, allocations: 0 / 0.4927 GB, free: 2.902 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.0007411/0.1344, allocations: 492 kB / 0.4931 GB, free: 2.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.1344, allocations: 12.03 kB / 0.4932 GB, free: 2.344 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.809e-05/0.1345, allocations: 46.67 kB / 0.4932 GB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001603/0.1347, allocations: 16.89 kB / 0.4932 GB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.1351, allocations: 257.7 kB / 0.4935 GB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.05e-05/0.1352, allocations: 63.91 kB / 0.4935 GB, free: 1.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.1352, allocations: 4.375 kB / 0.4935 GB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.1354, allocations: 81.56 kB / 0.4936 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1354, allocations: 0 / 0.4936 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.1355, allocations: 0 / 0.4936 GB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1355, allocations: 4 kB / 0.4936 GB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.1356, allocations: 39.91 kB / 0.4937 GB, free: 1.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005632/0.1362, allocations: 316.7 kB / 0.494 GB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1364, allocations: 58.55 kB / 0.494 GB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.1365, allocations: 28.88 kB / 0.494 GB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.439e-05/0.1365, allocations: 0 / 0.494 GB, free: 1.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.1368, allocations: 111.3 kB / 0.4941 GB, free: 1.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1368, allocations: 0 / 0.4941 GB, free: 1.199 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004702/0.1373, allocations: 137.5 kB / 0.4943 GB, free: 1.059 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/0.1373, allocations: 59.39 kB / 0.4943 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.1375, allocations: 154.2 kB / 0.4945 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.953e-05/0.1375, allocations: 33.69 kB / 0.4945 GB, free: 0.7891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.094e-05/0.1376, allocations: 100.1 kB / 0.4946 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.707e-05/0.1376, allocations: 27.84 kB / 0.4946 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.1377, allocations: 29.75 kB / 0.4947 GB, free: 0.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002509/0.1379, allocations: 330.8 kB / 0.495 GB, free: 300 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.347e-05/0.138, allocations: 23.92 kB / 0.495 GB, free: 276 kB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001127/0.1381, allocations: 65.14 kB / 0.4951 GB, free: 192 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002133/0.1383, allocations: 105.1 kB / 0.4952 GB, free: 68 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.1383, allocations: 4 kB / 0.4952 GB, free: 64 kB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002606/0.1386, allocations: 121.5 kB / 0.4953 GB, free: 15.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1386, allocations: 8 kB / 0.4953 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1386, allocations: 0 / 0.4953 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1386, allocations: 4 kB / 0.4953 GB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.346e-05/0.1387, allocations: 20.08 kB / 0.4953 GB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.1387, allocations: 4 kB / 0.4953 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.1388, allocations: 19.86 kB / 0.4953 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.1388, allocations: 4 kB / 0.4953 GB, free: 15.88 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.0002831/0.1391, allocations: 134.3 kB / 0.4955 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.1391, allocations: 11.91 kB / 0.4955 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.1392, allocations: 16.72 kB / 0.4955 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1392, allocations: 0 / 0.4955 GB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.1392, allocations: 4 kB / 0.4955 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.1392, allocations: 7.922 kB / 0.4955 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.1394, allocations: 197.8 kB / 0.4957 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1394, allocations: 0 / 0.4957 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.343e-05/0.1394, allocations: 7.984 kB / 0.4957 GB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1394, allocations: 4 kB / 0.4957 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.1395, allocations: 4 kB / 0.4957 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1395, allocations: 384 / 0.4957 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1395, allocations: 0 / 0.4957 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003441/0.1398, allocations: 152.8 kB / 0.4959 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.066e-05/0.1399, allocations: 85.06 kB / 0.4959 GB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.1399, allocations: 8 kB / 0.4959 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.085e-05/0.14, allocations: 3.984 kB / 0.4959 GB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.079e-05/0.14, allocations: 11.98 kB / 0.496 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/0.14, allocations: 7.938 kB / 0.496 GB, free: 15.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.024e-05/0.1401, allocations: 123.1 kB / 0.4961 GB, free: 15.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1401, allocations: 0 / 0.4961 GB, free: 15.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002127/0.1403, allocations: 23.95 kB / 0.4961 GB, free: 14.99 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.0006658/0.141, allocations: 0.6826 MB / 0.4968 GB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002481/0.1413, allocations: 75.91 kB / 0.4968 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1413, allocations: 0 / 0.4968 GB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000128/0.1414, allocations: 31.92 kB / 0.4969 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000176/0.1416, allocations: 18.17 kB / 0.4969 GB, free: 14.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002062/0.1436, allocations: 1.611 MB / 0.4985 GB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.144, allocations: 0.7002 MB / 0.4992 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.14e-05/0.144, allocations: 20.59 kB / 0.4992 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.56e-05/0.1441, allocations: 43.36 kB / 0.4992 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1441, allocations: 0 / 0.4992 GB, free: 11.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02753/0.1716, allocations: 2.524 MB / 0.5017 GB, free: 9.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.28, allocations: 10.62 kB / 0.5017 GB, free: 9.258 MB / 382.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: 11.218326053000055] Failed to read output from testmodel.py, exit status != 0: 8.353453770992928 8.549494581 8.412945776 Calling exit ...