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.001269/0.001269, allocations: 116.1 kB / 17.17 MB, free: 6 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.001323/0.001323, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.401/1.401, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.05938/0.05938, allocations: 11.34 MB / 320.9 MB, free: 14.15 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="cs",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.001821/0.001821, allocations: 66.42 kB / 446.5 MB, free: 38.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08229/0.08412, allocations: 56.01 MB / 0.4908 GB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002119/0.08623, allocations: 1.582 MB / 0.4923 GB, free: 1.891 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000717/0.08695, allocations: 0.5766 MB / 0.4929 GB, free: 1.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.602e-05/0.08703, allocations: 19.81 kB / 0.4929 GB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.08706, allocations: 7.875 kB / 0.4929 GB, free: 1.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.716e-05/0.08712, allocations: 19.8 kB / 0.4929 GB, free: 1.262 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.08735, allocations: 75.83 kB / 0.493 GB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.08747, allocations: 103.6 kB / 0.4931 GB, free: 1.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.08758, allocations: 21.09 kB / 0.4931 GB, free: 1.062 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.0877, allocations: 55.78 kB / 0.4932 GB, free: 1.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.884e-05/0.08776, allocations: 35.77 kB / 0.4932 GB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.08777, allocations: 12 kB / 0.4932 GB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.77e-05/0.08781, allocations: 12 kB / 0.4932 GB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.938e-05/0.08783, allocations: 15.92 kB / 0.4932 GB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.727e-05/0.08787, allocations: 39.73 kB / 0.4933 GB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.08799, allocations: 95.78 kB / 0.4934 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.08799, allocations: 3.938 kB / 0.4934 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08799, allocations: 3.938 kB / 0.4934 GB, free: 0.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.088, allocations: 0 / 0.4934 GB, free: 0.793 MB / 350.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.000466/0.08846, allocations: 0.4921 MB / 0.4938 GB, free: 240 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.08849, allocations: 12.03 kB / 0.4939 GB, free: 228 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.085e-05/0.08851, allocations: 192 / 0.4939 GB, free: 228 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.147e-05/0.08853, allocations: 38.75 kB / 0.4939 GB, free: 180 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.08866, allocations: 20.88 kB / 0.4939 GB, free: 160 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002863/0.08895, allocations: 257.7 kB / 0.4942 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.491e-05/0.08902, allocations: 59.95 kB / 0.4942 GB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.936e-05/0.08904, allocations: 12.12 kB / 0.4942 GB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001947/0.08924, allocations: 73.64 kB / 0.4943 GB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.08925, allocations: 0 / 0.4943 GB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.08926, allocations: 7.938 kB / 0.4943 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.08926, allocations: 0 / 0.4943 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000144/0.08941, allocations: 39.97 kB / 0.4943 GB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.08988, allocations: 316.7 kB / 0.4946 GB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002011/0.09008, allocations: 58.48 kB / 0.4947 GB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.353e-05/0.09016, allocations: 28.94 kB / 0.4947 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.09018, allocations: 4.156 kB / 0.4947 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.09042, allocations: 111.3 kB / 0.4948 GB, free: 15.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.09042, allocations: 0 / 0.4948 GB, free: 15.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004034/0.09082, allocations: 137.5 kB / 0.495 GB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.352e-05/0.09087, allocations: 59.41 kB / 0.495 GB, free: 14.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.091, allocations: 162.1 kB / 0.4952 GB, free: 14.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.435e-05/0.09103, allocations: 25.7 kB / 0.4952 GB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.3e-05/0.09109, allocations: 108.1 kB / 0.4953 GB, free: 14.56 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.09112, allocations: 23.84 kB / 0.4953 GB, free: 14.54 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.981e-05/0.09117, allocations: 30.09 kB / 0.4954 GB, free: 14.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.09131, allocations: 322.8 kB / 0.4957 GB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.148e-05/0.09138, allocations: 23.98 kB / 0.4957 GB, free: 14.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.514e-05/0.09148, allocations: 72 kB / 0.4958 GB, free: 14.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/0.09167, allocations: 101 kB / 0.4959 GB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.09167, allocations: 4 kB / 0.4959 GB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002274/0.0919, allocations: 133.4 kB / 0.496 GB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/0.09191, allocations: 7.938 kB / 0.496 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.09192, allocations: 4.156 kB / 0.496 GB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.431e-05/0.09193, allocations: 4 kB / 0.496 GB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.235e-05/0.09202, allocations: 8 kB / 0.496 GB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.09202, allocations: 7.984 kB / 0.496 GB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.187e-05/0.09209, allocations: 11.88 kB / 0.496 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.0921, allocations: 8 kB / 0.496 GB, free: 13.76 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.0001332/0.09223, allocations: 121.8 kB / 0.4962 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.09225, allocations: 15.91 kB / 0.4962 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.936e-05/0.09229, allocations: 20.7 kB / 0.4962 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.0923, allocations: 4 kB / 0.4962 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.0923, allocations: 0 / 0.4962 GB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.499e-06/0.09231, allocations: 3.938 kB / 0.4962 GB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001785/0.09248, allocations: 201.7 kB / 0.4964 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.09249, allocations: 3.938 kB / 0.4964 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.854e-05/0.09253, allocations: 4 kB / 0.4964 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.09254, allocations: 4 kB / 0.4964 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.09255, allocations: 3.984 kB / 0.4964 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.09255, allocations: 4 kB / 0.4964 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.09255, allocations: 0 / 0.4964 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.09284, allocations: 144.9 kB / 0.4965 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.421e-05/0.09289, allocations: 89.05 kB / 0.4966 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.09292, allocations: 4 kB / 0.4966 GB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.934e-05/0.09298, allocations: 8 kB / 0.4966 GB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.09302, allocations: 15.92 kB / 0.4967 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.139e-05/0.09303, allocations: 7.984 kB / 0.4967 GB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.966e-05/0.09311, allocations: 115.2 kB / 0.4968 GB, free: 12.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09311, allocations: 4 kB / 0.4968 GB, free: 12.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002038/0.09332, allocations: 19.98 kB / 0.4968 GB, free: 12.88 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.0005978/0.09392, allocations: 0.6905 MB / 0.4975 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.09415, allocations: 71.89 kB / 0.4975 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.09415, allocations: 0 / 0.4975 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.09426, allocations: 35.92 kB / 0.4976 GB, free: 12.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001561/0.09442, allocations: 15.88 kB / 0.4976 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.0963, allocations: 1.615 MB / 0.4992 GB, free: 10.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.0966, allocations: 0.7002 MB / 0.4999 GB, free: 9.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.277e-05/0.09666, allocations: 16.64 kB / 0.4999 GB, free: 9.566 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.831e-05/0.09672, allocations: 39.42 kB / 0.4999 GB, free: 9.527 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.09673, allocations: 0 / 0.4999 GB, free: 9.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.1151, allocations: 2.548 MB / 0.5024 GB, free: 7.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.716/7.831, allocations: 18.33 kB / 0.5024 GB, free: 7.129 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 & /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 os._exit(0), Time elapsed: 10.35549796698615] Failed to read output from testmodel.py, exit status != 0: 7.950239492987748 7.966653882 7.875777957 Calling exit ...