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.0009072/0.0009072, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001056/0.001056, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9337/0.9337, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.04095/0.04095, allocations: 8.603 MB / 267.8 MB, free: 5.117 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.904e-06/1.904e-06, allocations: 3.938 kB / 395.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.85e-05/2.041e-05, allocations: 2.281 kB / 395.1 MB, free: 2.656 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002714/0.002735, allocations: 1.551 MB / 396.6 MB, free: 1.098 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.00378, allocations: 0.5537 MB / 397.2 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.00388, allocations: 11.88 kB / 397.2 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 3.876e-05/0.003919, allocations: 11.88 kB / 397.2 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 8.77e-05/0.004007, allocations: 15.81 kB / 397.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.004316, allocations: 71.83 kB / 397.3 MB, free: 440 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.004496, allocations: 115.5 kB / 397.4 MB, free: 324 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.004617, allocations: 13.31 kB / 397.4 MB, free: 312 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002066/0.004823, allocations: 71.73 kB / 397.5 MB, free: 240 kB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.297e-05/0.004886, allocations: 35.83 kB / 397.5 MB, free: 204 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.588e-05/0.004902, allocations: 4 kB / 397.5 MB, free: 200 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.81e-05/0.00494, allocations: 12 kB / 397.5 MB, free: 188 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.136e-05/0.004962, allocations: 19.92 kB / 397.5 MB, free: 168 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.548e-05/0.004997, allocations: 27.91 kB / 397.6 MB, free: 140 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.005127, allocations: 95.67 kB / 397.7 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.00513, allocations: 0 / 397.7 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.00513, allocations: 0 / 397.7 MB, free: 44 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.286e-06/0.005134, allocations: 0 / 397.7 MB, free: 44 kB / 362.7 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.0005298/0.005664, allocations: 425.2 kB / 398.1 MB, free: 15.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.005707, allocations: 8.031 kB / 398.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.045e-05/0.005748, allocations: 38.75 kB / 398.1 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001238/0.005871, allocations: 24.88 kB / 398.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.006127, allocations: 193.3 kB / 398.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.99e-05/0.006217, allocations: 115.4 kB / 398.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.00623, allocations: 12.38 kB / 398.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.006386, allocations: 82.14 kB / 398.5 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.006395, allocations: 192 / 398.5 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.006408, allocations: 3.938 kB / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.006413, allocations: 4 kB / 398.6 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.133e-05/0.006505, allocations: 31.97 kB / 398.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.006886, allocations: 275.8 kB / 398.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.007022, allocations: 66.53 kB / 398.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.142e-05/0.007074, allocations: 24.94 kB / 398.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.00709, allocations: 0 / 398.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.007274, allocations: 107.3 kB / 399.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 9.52e-07/0.007275, allocations: 0 / 399.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003101/0.007585, allocations: 137.8 kB / 399.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.007629, allocations: 63.48 kB / 399.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.925e-05/0.007729, allocations: 154.2 kB / 399.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.007744, allocations: 29.7 kB / 399.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.47e-05/0.007799, allocations: 112.1 kB / 399.5 MB, free: 13.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.007826, allocations: 23.8 kB / 399.6 MB, free: 13.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.007861, allocations: 29.7 kB / 399.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.148e-05/0.007943, allocations: 326.8 kB / 399.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.031e-05/0.007983, allocations: 19.98 kB / 399.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.978e-05/0.008043, allocations: 69.12 kB / 400 MB, free: 13.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001326/0.008175, allocations: 105.1 kB / 400.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.008178, allocations: 0 / 400.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000184/0.008362, allocations: 125.5 kB / 400.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.008376, allocations: 8.156 kB / 400.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.008382, allocations: 0 / 400.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.008397, allocations: 4 kB / 400.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.504e-05/0.008462, allocations: 19.92 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.008468, allocations: 4 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.072e-05/0.008508, allocations: 4 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.008517, allocations: 7.984 kB / 400.3 MB, free: 13.17 MB / 378.7 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.000117/0.008634, allocations: 134.7 kB / 400.4 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.604e-05/0.00865, allocations: 19.91 kB / 400.4 MB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.008678, allocations: 8.781 kB / 400.4 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.008682, allocations: 8.047 kB / 400.4 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.008687, allocations: 4 kB / 400.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-06/0.008691, allocations: 0 / 400.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.008806, allocations: 172.7 kB / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.008807, allocations: 0 / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.544e-05/0.008833, allocations: 8 kB / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.008834, allocations: 0 / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.008844, allocations: 3.984 kB / 400.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.008845, allocations: 4 kB / 400.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.008847, allocations: 4 kB / 400.6 MB, free: 12.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.009015, allocations: 148.8 kB / 400.8 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.24e-05/0.009027, allocations: 11.94 kB / 400.8 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.675e-05/0.009044, allocations: 4 kB / 400.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.511e-05/0.009069, allocations: 4 kB / 400.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.00911, allocations: 11.97 kB / 400.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.701e-06/0.009115, allocations: 4 kB / 400.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.885e-05/0.009174, allocations: 124 kB / 400.9 MB, free: 12.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.009174, allocations: 4 kB / 400.9 MB, free: 12.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001499/0.009324, allocations: 20 kB / 401 MB, free: 12.41 MB / 378.7 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.0003494/0.009674, allocations: 0.6864 MB / 401.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001554/0.009829, allocations: 79.83 kB / 401.7 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.00983, allocations: 3.938 kB / 401.7 MB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.053e-05/0.009891, allocations: 32.3 kB / 401.8 MB, free: 11.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.01002, allocations: 18.75 kB / 401.8 MB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.01123, allocations: 1.607 MB / 403.4 MB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.059e-05/0.01128, allocations: 93.17 kB / 403.5 MB, free: 9.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.002e-05/0.01132, allocations: 16.59 kB / 403.5 MB, free: 9.715 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.207e-05/0.01137, allocations: 40.48 kB / 403.5 MB, free: 9.676 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01137, allocations: 0 / 403.5 MB, free: 9.676 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01548/0.02685, allocations: 3.173 MB / 406.7 MB, free: 6.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.111/7.138, allocations: 15.09 kB / 406.7 MB, free: 6.617 MB / 378.7 MB " [Timeout remaining time 653] (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: 9.015464055351913] Failed to read output from testmodel.py, exit status != 0: 7.221708648838103 7.233508351 7.225652743 Calling exit ...