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.001247/0.001247, allocations: 97.31 kB / 19.73 MB, free: 2.145 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.001621/0.001621, allocations: 220.4 kB / 23.03 MB, free: 4.953 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.347/1.347, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.06258/0.06258, allocations: 11.34 MB / 324.6 MB, free: 8.047 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.001994/0.001994, allocations: 66.25 kB / 451.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1106, allocations: 56.07 MB / 0.4959 GB, free: 2.188 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.002747/0.1134, allocations: 1.555 MB / 0.4974 GB, free: 0.625 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1144, allocations: 0.5494 MB / 0.498 GB, free: 72 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.787e-05/0.1145, allocations: 11.88 kB / 0.498 GB, free: 60 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.1145, allocations: 7.875 kB / 0.498 GB, free: 52 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.147e-05/0.1146, allocations: 19.75 kB / 0.498 GB, free: 32 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.1149, allocations: 83.81 kB / 0.4981 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.115, allocations: 99.7 kB / 0.4982 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001022/0.1151, allocations: 13.3 kB / 0.4982 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.1153, allocations: 63.7 kB / 0.4982 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.908e-05/0.1154, allocations: 39.78 kB / 0.4983 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.1154, allocations: 4 kB / 0.4983 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.225e-05/0.1154, allocations: 8 kB / 0.4983 GB, free: 15.72 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.1155, allocations: 27.91 kB / 0.4983 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.169e-05/0.1155, allocations: 31.8 kB / 0.4984 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.1158, allocations: 103.7 kB / 0.4985 GB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.1158, allocations: 0 / 0.4985 GB, free: 15.56 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1158, allocations: 0 / 0.4985 GB, free: 15.56 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1158, allocations: 0 / 0.4985 GB, free: 15.56 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.0006193/0.1164, allocations: 418.9 kB / 0.4989 GB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1164, allocations: 8.031 kB / 0.4989 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.797e-05/0.1164, allocations: 192 / 0.4989 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.555e-05/0.1165, allocations: 34.75 kB / 0.4989 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.1166, allocations: 28.88 kB / 0.4989 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.1169, allocations: 206 kB / 0.4991 GB, free: 14.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1171, allocations: 111.3 kB / 0.4992 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.1171, allocations: 20.11 kB / 0.4992 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.1173, allocations: 69.64 kB / 0.4993 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1173, allocations: 0 / 0.4993 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1173, allocations: 8 kB / 0.4993 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1173, allocations: 4 kB / 0.4993 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001351/0.1174, allocations: 31.97 kB / 0.4994 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004589/0.1179, allocations: 279.7 kB / 0.4996 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.1181, allocations: 62.55 kB / 0.4997 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.537e-05/0.1182, allocations: 24.94 kB / 0.4997 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.1182, allocations: 0 / 0.4997 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.1185, allocations: 111.2 kB / 0.4998 GB, free: 14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.1185, allocations: 0 / 0.4998 GB, free: 14 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004321/0.1189, allocations: 137.5 kB / 0.4999 GB, free: 13.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.1189, allocations: 59.39 kB / 0.5 GB, free: 13.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.1191, allocations: 154.2 kB / 0.5001 GB, free: 13.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.807e-05/0.1191, allocations: 33.7 kB / 0.5002 GB, free: 13.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1193, allocations: 108.2 kB / 0.5003 GB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.388e-05/0.1193, allocations: 23.84 kB / 0.5003 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.746e-05/0.1194, allocations: 25.7 kB / 0.5003 GB, free: 13.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.1195, allocations: 326.8 kB / 0.5006 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.736e-05/0.1196, allocations: 19.98 kB / 0.5007 GB, free: 13.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/0.1197, allocations: 71.83 kB / 0.5007 GB, free: 12.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001961/0.1199, allocations: 108.9 kB / 0.5008 GB, free: 12.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1199, allocations: 0 / 0.5008 GB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003036/0.1202, allocations: 129.6 kB / 0.501 GB, free: 12.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.1202, allocations: 4 kB / 0.501 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.1202, allocations: 4 kB / 0.501 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1202, allocations: 384 / 0.501 GB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.841e-05/0.1203, allocations: 19.92 kB / 0.501 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.1203, allocations: 0 / 0.501 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.628e-05/0.1204, allocations: 11.94 kB / 0.501 GB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.1204, allocations: 11.92 kB / 0.501 GB, free: 12.68 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.0001526/0.1206, allocations: 125.8 kB / 0.5011 GB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.074e-05/0.1206, allocations: 15.91 kB / 0.5011 GB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.1206, allocations: 12.72 kB / 0.5011 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1206, allocations: 4.094 kB / 0.5012 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.1207, allocations: 8 kB / 0.5012 GB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1207, allocations: 3.938 kB / 0.5012 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001697/0.1208, allocations: 160.7 kB / 0.5013 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1208, allocations: 3.938 kB / 0.5013 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-05/0.1209, allocations: 8 kB / 0.5013 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1209, allocations: 0 / 0.5013 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1209, allocations: 7.984 kB / 0.5013 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1209, allocations: 4 kB / 0.5013 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1209, allocations: 0 / 0.5013 GB, free: 12.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.1212, allocations: 144.9 kB / 0.5015 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.1212, allocations: 11.94 kB / 0.5015 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.1212, allocations: 8 kB / 0.5015 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.784e-05/0.1213, allocations: 4 kB / 0.5015 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.68e-05/0.1213, allocations: 19.89 kB / 0.5015 GB, free: 12.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.1214, allocations: 4 kB / 0.5015 GB, free: 12.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.386e-05/0.1214, allocations: 120 kB / 0.5016 GB, free: 11.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1214, allocations: 4 kB / 0.5016 GB, free: 11.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.1216, allocations: 27.89 kB / 0.5017 GB, free: 11.93 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.0006456/0.1223, allocations: 0.6827 MB / 0.5023 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002246/0.1225, allocations: 79.83 kB / 0.5024 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1225, allocations: 0 / 0.5024 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.1226, allocations: 36.28 kB / 0.5024 GB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.1228, allocations: 15.94 kB / 0.5025 GB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.1247, allocations: 1.6 MB / 0.504 GB, free: 9.367 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.123e-05/0.1248, allocations: 93.05 kB / 0.5041 GB, free: 9.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.421e-05/0.1249, allocations: 20.59 kB / 0.5041 GB, free: 9.238 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.306e-05/0.1249, allocations: 39.42 kB / 0.5042 GB, free: 9.199 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1249, allocations: 0 / 0.5042 GB, free: 9.199 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/0.152, allocations: 2.711 MB / 0.5068 GB, free: 6.645 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/10.94, allocations: 4.062 kB / 0.5068 GB, free: 6.641 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 os._exit(0), Time elapsed: 13.578498586080968] Failed to read output from testmodel.py, exit status != 0: 11.107554443064146 11.298466926 11.180450571 Calling exit ...