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.001565/0.001565, allocations: 105.8 kB / 16.45 MB, free: 6.445 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.001668/0.001668, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.43/1.43, allocations: 225.6 MB / 247.8 MB, free: 3.719 MB / 190.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.06288/0.06288, allocations: 11.34 MB / 314 MB, free: 0.8164 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.001978/0.001978, allocations: 71.88 kB / 437.3 MB, free: 8.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2887, allocations: 54.82 MB / 492.2 MB, free: 23.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00268/0.2914, allocations: 1.573 MB / 493.7 MB, free: 22.52 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007994/0.2922, allocations: 0.5203 MB / 494.2 MB, free: 22.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.2923, allocations: 8.75 kB / 494.3 MB, free: 22.15 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.95e-05/0.2923, allocations: 13.23 kB / 494.3 MB, free: 22.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.61e-05/0.2924, allocations: 14.7 kB / 494.3 MB, free: 22.13 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.2927, allocations: 63.7 kB / 494.3 MB, free: 22.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.2928, allocations: 96.73 kB / 494.4 MB, free: 22.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.2929, allocations: 18.5 kB / 494.5 MB, free: 22.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001063/0.293, allocations: 51.44 kB / 494.5 MB, free: 22.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.868e-05/0.2931, allocations: 40.06 kB / 494.5 MB, free: 22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.2931, allocations: 6.125 kB / 494.6 MB, free: 22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.516e-05/0.2931, allocations: 9.844 kB / 494.6 MB, free: 22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.797e-05/0.2932, allocations: 16.39 kB / 494.6 MB, free: 21.99 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.722e-05/0.2932, allocations: 41.41 kB / 494.6 MB, free: 21.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001421/0.2934, allocations: 94.2 kB / 494.7 MB, free: 21.92 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2934, allocations: 2.016 kB / 494.7 MB, free: 21.92 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2934, allocations: 0 / 494.7 MB, free: 21.92 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.2934, allocations: 3.938 kB / 494.7 MB, free: 21.91 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.0005652/0.2939, allocations: 494.6 kB / 495.2 MB, free: 21.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.294, allocations: 18.23 kB / 495.2 MB, free: 21.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.294, allocations: 34.17 kB / 495.3 MB, free: 21.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.294, allocations: 15.59 kB / 495.3 MB, free: 21.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.2944, allocations: 252.9 kB / 495.5 MB, free: 21.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.117e-05/0.2944, allocations: 66.08 kB / 495.6 MB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.2944, allocations: 5.203 kB / 495.6 MB, free: 21.06 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.2946, allocations: 79.09 kB / 495.7 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.2946, allocations: 0 / 495.7 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.223e-05/0.2947, allocations: 2.219 kB / 495.7 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.2947, allocations: 1.375 kB / 495.7 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001479/0.2948, allocations: 34.33 kB / 495.7 MB, free: 21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004835/0.2953, allocations: 326.9 kB / 496 MB, free: 20.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001869/0.2955, allocations: 64.53 kB / 496.1 MB, free: 20.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.86e-05/0.2956, allocations: 24.52 kB / 496.1 MB, free: 20.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.2956, allocations: 0 / 496.1 MB, free: 20.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002262/0.2958, allocations: 108.6 kB / 496.2 MB, free: 20.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/0.2958, allocations: 0 / 496.2 MB, free: 20.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004172/0.2962, allocations: 135.8 kB / 496.3 MB, free: 20.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.2962, allocations: 54.86 kB / 496.4 MB, free: 20.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.244e-05/0.2963, allocations: 152 kB / 496.5 MB, free: 20.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.2964, allocations: 35.08 kB / 496.6 MB, free: 20.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.2964, allocations: 101.4 kB / 496.7 MB, free: 20.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.679e-05/0.2964, allocations: 26.23 kB / 496.7 MB, free: 20.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.2965, allocations: 28.45 kB / 496.7 MB, free: 20.16 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.927e-05/0.2965, allocations: 326.4 kB / 497 MB, free: 19.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.581e-05/0.2966, allocations: 23.42 kB / 497.1 MB, free: 19.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.632e-05/0.2966, allocations: 69.11 kB / 497.1 MB, free: 19.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.2968, allocations: 102.7 kB / 497.2 MB, free: 19.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2968, allocations: 1.188 kB / 497.2 MB, free: 19.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002267/0.2971, allocations: 126.4 kB / 497.4 MB, free: 19.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2971, allocations: 10.84 kB / 497.4 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2971, allocations: 1.438 kB / 497.4 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.2971, allocations: 3.391 kB / 497.4 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.612e-05/0.2972, allocations: 16.31 kB / 497.4 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.2972, allocations: 6.656 kB / 497.4 MB, free: 19.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.319e-05/0.2972, allocations: 16.75 kB / 497.4 MB, free: 19.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.2973, allocations: 9.172 kB / 497.4 MB, free: 19.6 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.000108/0.2974, allocations: 120.2 kB / 497.5 MB, free: 19.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.852e-05/0.2974, allocations: 9.609 kB / 497.6 MB, free: 19.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.512e-05/0.2974, allocations: 16.81 kB / 497.6 MB, free: 19.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.2974, allocations: 6.359 kB / 497.6 MB, free: 19.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2974, allocations: 7.875 kB / 497.6 MB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.2974, allocations: 4.641 kB / 497.6 MB, free: 19.45 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001266/0.2976, allocations: 195.7 kB / 497.8 MB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2976, allocations: 0 / 497.8 MB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.344e-05/0.2976, allocations: 8.594 kB / 497.8 MB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2976, allocations: 9.172 kB / 497.8 MB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.2976, allocations: 2.656 kB / 497.8 MB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.2976, allocations: 1.922 kB / 497.8 MB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.2976, allocations: 0 / 497.8 MB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002804/0.2979, allocations: 152.5 kB / 498 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.545e-05/0.2979, allocations: 84.52 kB / 498 MB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.298, allocations: 3.406 kB / 498 MB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.298, allocations: 8.219 kB / 498 MB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.2981, allocations: 10.5 kB / 498.1 MB, free: 19.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2981, allocations: 7.828 kB / 498.1 MB, free: 19.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.969e-05/0.2981, allocations: 114.8 kB / 498.2 MB, free: 18.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2981, allocations: 4 kB / 498.2 MB, free: 18.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.2984, allocations: 22.19 kB / 498.2 MB, free: 18.93 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.0005077/0.2989, allocations: 0.6831 MB / 498.9 MB, free: 18.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002521/0.2991, allocations: 76.34 kB / 499 MB, free: 18.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2991, allocations: 1.281 kB / 499 MB, free: 18.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.2992, allocations: 35.91 kB / 499 MB, free: 18.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/0.2994, allocations: 13.34 kB / 499 MB, free: 18.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001716/0.3011, allocations: 1.607 MB / 0.4889 GB, free: 16.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001287/0.3013, allocations: 0.705 MB / 0.4896 GB, free: 16.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.924e-05/0.3013, allocations: 15.7 kB / 0.4896 GB, free: 16.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.547e-05/0.3014, allocations: 34.52 kB / 0.4896 GB, free: 16.18 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3014, allocations: 0 / 0.4896 GB, free: 16.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02516/0.3265, allocations: 2.495 MB / 0.4921 GB, free: 15.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.354, allocations: 7.844 kB / 0.4921 GB, free: 15.11 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 sys.exit(0), Time elapsed: 10.811003274749964] Failed to read output from testmodel.py, exit status != 0: 8.424656082876027 8.447738955 8.150309273 Calling exit ...