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.0007857/0.0007857, 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.0008855/0.0008855, 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.8867/0.8867, allocations: 177.1 MB / 202.8 MB, free: 5.75 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.03627/0.03627, allocations: 8.605 MB / 267.8 MB, free: 5.133 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 2.044e-06/2.044e-06, allocations: 0 / 395.1 MB, free: 2.668 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.367e-05/1.571e-05, allocations: 6.219 kB / 395.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.001876/0.001892, allocations: 1.551 MB / 396.6 MB, free: 1.102 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007712/0.002663, allocations: 0.5537 MB / 397.2 MB, free: 0.543 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.66e-05/0.00274, allocations: 15.88 kB / 397.2 MB, free: 0.5273 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/0.002772, allocations: 11.86 kB / 397.2 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 7.338e-05/0.002845, allocations: 11.88 kB / 397.2 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.003102, allocations: 79.77 kB / 397.3 MB, free: 436 kB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000141/0.003243, allocations: 107.6 kB / 397.4 MB, free: 328 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.968e-05/0.003342, allocations: 13.3 kB / 397.4 MB, free: 316 kB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.003485, allocations: 75.75 kB / 397.5 MB, free: 240 kB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.443e-05/0.00355, allocations: 27.89 kB / 397.5 MB, free: 212 kB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.577e-05/0.003565, allocations: 7.938 kB / 397.5 MB, free: 204 kB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.776e-05/0.003603, allocations: 8 kB / 397.5 MB, free: 196 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.343e-05/0.003627, allocations: 27.91 kB / 397.6 MB, free: 168 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.529e-05/0.003662, allocations: 23.91 kB / 397.6 MB, free: 144 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.003804, allocations: 95.67 kB / 397.7 MB, free: 48 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.003806, allocations: 4 kB / 397.7 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.003807, allocations: 0 / 397.7 MB, free: 44 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.003811, 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.0004751/0.004286, allocations: 423 kB / 398.1 MB, free: 15.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.004323, allocations: 8.031 kB / 398.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.054e-05/0.004354, allocations: 38.75 kB / 398.1 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001027/0.004457, allocations: 24.88 kB / 398.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002257/0.004682, allocations: 193.3 kB / 398.3 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.004763, allocations: 111.4 kB / 398.5 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.369e-05/0.004776, allocations: 12.38 kB / 398.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001612/0.004937, allocations: 86.12 kB / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.004945, allocations: 192 / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.126e-05/0.004956, allocations: 3.938 kB / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.00496, allocations: 0 / 398.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.454e-05/0.005045, allocations: 35.97 kB / 398.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003479/0.005393, allocations: 275.8 kB / 398.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.005517, allocations: 58.55 kB / 398.9 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.794e-05/0.005565, allocations: 28.94 kB / 398.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.293e-05/0.005578, allocations: 0 / 398.9 MB, free: 14.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.005741, allocations: 107.3 kB / 399.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 9.22e-07/0.005742, allocations: 0 / 399.1 MB, free: 14.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002592/0.006001, allocations: 137.8 kB / 399.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.006036, allocations: 63.48 kB / 399.2 MB, free: 14.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.323e-05/0.006119, allocations: 154.3 kB / 399.4 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.006134, allocations: 29.69 kB / 399.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/0.006178, allocations: 104.1 kB / 399.5 MB, free: 13.97 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/0.006204, allocations: 31.92 kB / 399.6 MB, free: 13.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.006239, allocations: 33.7 kB / 399.6 MB, free: 13.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.006327, allocations: 322.8 kB / 399.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.782e-05/0.006414, allocations: 27.98 kB / 399.9 MB, free: 13.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.006546, allocations: 61.19 kB / 400 MB, free: 13.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.006696, allocations: 109 kB / 400.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.006698, allocations: 0 / 400.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001558/0.006854, allocations: 121.5 kB / 400.2 MB, free: 13.22 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.006867, allocations: 8.156 kB / 400.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.006872, allocations: 4 kB / 400.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.006885, allocations: 4 kB / 400.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.014e-05/0.006945, allocations: 19.92 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.006951, allocations: 4 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.431e-05/0.006985, allocations: 4 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.006992, allocations: 4 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.000113/0.007105, allocations: 134.7 kB / 400.4 MB, free: 13.03 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.007119, allocations: 15.91 kB / 400.4 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.86e-05/0.007148, allocations: 12.84 kB / 400.4 MB, free: 13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.007153, allocations: 11.98 kB / 400.4 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.007157, allocations: 0 / 400.4 MB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.007161, allocations: 3.984 kB / 400.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.007274, allocations: 160.7 kB / 400.6 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.007276, allocations: 3.984 kB / 400.6 MB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.49e-05/0.007301, allocations: 11.94 kB / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.007302, allocations: 0 / 400.6 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.007313, allocations: 7.984 kB / 400.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.007314, allocations: 0 / 400.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.007315, allocations: 4 kB / 400.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.00748, allocations: 148.8 kB / 400.8 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.007491, allocations: 7.953 kB / 400.8 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.951e-05/0.00751, allocations: 7.984 kB / 400.8 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.286e-05/0.007533, allocations: 4 kB / 400.8 MB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.007573, allocations: 11.97 kB / 400.8 MB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.007581, allocations: 8 kB / 400.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.275e-05/0.007634, allocations: 120 kB / 400.9 MB, free: 12.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007634, allocations: 0 / 400.9 MB, free: 12.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001515/0.007785, allocations: 20 kB / 400.9 MB, free: 12.42 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.0003469/0.008132, allocations: 0.6903 MB / 401.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001492/0.008281, allocations: 83.83 kB / 401.7 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.008283, allocations: 0 / 401.7 MB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.337e-05/0.008346, allocations: 31.92 kB / 401.8 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001193/0.008465, allocations: 15.25 kB / 401.8 MB, free: 11.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.009735, allocations: 1.614 MB / 403.4 MB, free: 9.844 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.792e-05/0.009793, allocations: 93.16 kB / 403.5 MB, free: 9.734 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.042e-05/0.009834, allocations: 16.61 kB / 403.5 MB, free: 9.719 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.126e-05/0.009895, allocations: 44.47 kB / 403.5 MB, free: 9.676 MB / 378.7 MB Notification: Performance of SimCode: time 7.62e-07/0.009896, allocations: 4 kB / 403.5 MB, free: 9.672 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.02612, allocations: 3.167 MB / 406.7 MB, free: 6.629 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.875/6.901, allocations: 17.59 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 & /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: 8.614712374284863] Failed to read output from testmodel.py, exit status != 0: 6.98281302023679 6.996715298 6.990367414 Calling exit ...