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.001291/0.001291, allocations: 109.2 kB / 16.4 MB, free: 6.504 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.001314/0.001314, allocations: 192.5 kB / 19.35 MB, free: 3.734 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.406/1.406, allocations: 222.9 MB / 245.1 MB, free: 15.02 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.06386/0.06386, allocations: 11.21 MB / 308.4 MB, free: 1.957 MB / 238.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.001923/0.001923, allocations: 72.73 kB / 426.1 MB, free: 18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.0967, allocations: 51.98 MB / 478 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00277/0.09951, allocations: 1.552 MB / 479.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009613/0.1005, allocations: 0.5143 MB / 480.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.011e-05/0.1006, allocations: 7.938 kB / 480.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.1006, allocations: 7.875 kB / 480.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.1007, allocations: 11.81 kB / 480.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.101, allocations: 63.84 kB / 480.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.1012, allocations: 103.7 kB / 480.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000122/0.1013, allocations: 17.12 kB / 480.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.1014, allocations: 51.77 kB / 480.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1015, allocations: 35.78 kB / 480.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.1016, allocations: 8 kB / 480.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.897e-05/0.1016, allocations: 4 kB / 480.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.13e-05/0.1016, allocations: 23.89 kB / 480.4 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.317e-05/0.1017, allocations: 47.73 kB / 480.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001665/0.1019, allocations: 87.8 kB / 480.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.1019, allocations: 7.984 kB / 480.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1019, allocations: 0 / 480.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1019, allocations: 0 / 480.6 MB, free: 11.43 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.0007438/0.1027, allocations: 492 kB / 481.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.1027, allocations: 15.89 kB / 481.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.552e-05/0.1028, allocations: 34.75 kB / 481.1 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.277e-05/0.1028, allocations: 24.78 kB / 481.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003584/0.1032, allocations: 244.9 kB / 481.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.276e-05/0.1033, allocations: 59.95 kB / 481.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.1033, allocations: 12.38 kB / 481.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002088/0.1035, allocations: 73.58 kB / 481.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1035, allocations: 0 / 481.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.1036, allocations: 4 kB / 481.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1036, allocations: 4 kB / 481.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001463/0.1037, allocations: 35.91 kB / 481.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005256/0.1043, allocations: 320.7 kB / 481.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002093/0.1045, allocations: 70.55 kB / 481.9 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.245e-05/0.1046, allocations: 28.94 kB / 482 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.1046, allocations: 3.938 kB / 482 MB, free: 9.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.1049, allocations: 99.28 kB / 482.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.1049, allocations: 0 / 482.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004383/0.1053, allocations: 149.5 kB / 482.2 MB, free: 9.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.1054, allocations: 51.41 kB / 482.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1055, allocations: 158.1 kB / 482.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1056, allocations: 25.7 kB / 482.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.438e-05/0.1057, allocations: 112.1 kB / 482.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.1057, allocations: 27.94 kB / 482.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.1058, allocations: 29.7 kB / 482.6 MB, free: 9.145 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1059, allocations: 322.8 kB / 482.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.433e-05/0.106, allocations: 23.98 kB / 482.9 MB, free: 8.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.1061, allocations: 65.08 kB / 483 MB, free: 8.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.1064, allocations: 105 kB / 483.1 MB, free: 8.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1064, allocations: 4 kB / 483.1 MB, free: 8.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002327/0.1066, allocations: 121.5 kB / 483.2 MB, free: 8.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1066, allocations: 4 kB / 483.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.1066, allocations: 7.984 kB / 483.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.1067, allocations: 0 / 483.2 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.887e-05/0.1068, allocations: 19.94 kB / 483.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1068, allocations: 0 / 483.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.92e-05/0.1068, allocations: 20.03 kB / 483.3 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.1069, allocations: 4 kB / 483.3 MB, free: 8.41 MB / 350.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.0001513/0.107, allocations: 126.3 kB / 483.4 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.424e-05/0.107, allocations: 12.06 kB / 483.4 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.796e-05/0.1071, allocations: 16.64 kB / 483.4 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1071, allocations: 4 kB / 483.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1071, allocations: 0 / 483.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1071, allocations: 7.938 kB / 483.5 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.1073, allocations: 197.9 kB / 483.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1073, allocations: 4.062 kB / 483.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/0.1074, allocations: 7.984 kB / 483.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1074, allocations: 4 kB / 483.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1074, allocations: 7.938 kB / 483.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1074, allocations: 0 / 483.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1074, allocations: 0 / 483.7 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002997/0.1077, allocations: 148.9 kB / 483.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.1078, allocations: 85.06 kB / 483.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.878e-05/0.1079, allocations: 11.98 kB / 483.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.914e-05/0.1079, allocations: 4 kB / 483.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.818e-05/0.108, allocations: 11.98 kB / 483.9 MB, free: 7.676 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.379e-05/0.108, allocations: 11.92 kB / 483.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.817e-05/0.1081, allocations: 104.1 kB / 484 MB, free: 7.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1081, allocations: 0 / 484 MB, free: 7.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.1083, allocations: 27.94 kB / 484.1 MB, free: 7.535 MB / 350.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.0006891/0.109, allocations: 0.6787 MB / 484.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.1092, allocations: 72.16 kB / 484.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1093, allocations: 4.062 kB / 484.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001238/0.1094, allocations: 43.91 kB / 484.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.1096, allocations: 11.94 kB / 484.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.1116, allocations: 1.611 MB / 486.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.112, allocations: 0.7041 MB / 487.2 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.204e-05/0.1121, allocations: 16.64 kB / 487.2 MB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.923e-05/0.1122, allocations: 42.42 kB / 487.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1122, allocations: 0 / 487.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1363, allocations: 2.477 MB / 489.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.016, allocations: 7.938 kB / 489.7 MB, free: 1.84 MB / 350.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 sys.exit(0), Time elapsed: 10.468641948886216] Failed to read output from testmodel.py, exit status != 0: 8.08258599601686 8.098056087 7.99353208 Calling exit ...