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.001887/0.001887, allocations: 80.2 kB / 19.18 MB, free: 2.527 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.002741/0.002741, allocations: 173.7 kB / 22.46 MB, free: 5.355 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.473/1.473, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.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.06401/0.06401, allocations: 8.604 MB / 267.8 MB, free: 8.578 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: translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 395.6 MB, free: 6.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.161e-05/3.287e-05, allocations: 2.281 kB / 395.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00286/0.002893, allocations: 1.56 MB / 397.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.004015, allocations: 0.5493 MB / 397.7 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.004121, allocations: 15.88 kB / 397.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.655e-05/0.004157, allocations: 7.875 kB / 397.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.939e-05/0.004257, allocations: 11.81 kB / 397.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003102/0.004567, allocations: 83.7 kB / 397.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002065/0.004773, allocations: 103.6 kB / 397.9 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.004891, allocations: 21.27 kB / 397.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002185/0.005109, allocations: 75.81 kB / 398 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.944e-05/0.005198, allocations: 23.91 kB / 398 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.005225, allocations: 4 kB / 398 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.068e-05/0.005275, allocations: 8 kB / 398 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.531e-05/0.005311, allocations: 23.91 kB / 398.1 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.72e-05/0.005378, allocations: 23.91 kB / 398.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.005582, allocations: 103.6 kB / 398.2 MB, free: 4.062 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.005586, allocations: 7.938 kB / 398.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.005588, allocations: 0 / 398.2 MB, free: 4.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.005592, allocations: 0 / 398.2 MB, free: 4.055 MB / 318.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.0007343/0.006326, allocations: 422.9 kB / 398.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.006371, allocations: 8.031 kB / 398.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.006556, allocations: 24.83 kB / 398.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.006901, allocations: 190.1 kB / 398.8 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.00703, allocations: 111.4 kB / 398.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.007048, allocations: 4.375 kB / 398.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.007281, allocations: 86.06 kB / 399 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.00729, allocations: 192 / 399 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.007308, allocations: 8.125 kB / 399 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.007313, allocations: 0 / 399 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.007471, allocations: 35.97 kB / 399.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005277/0.007999, allocations: 252.4 kB / 399.3 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.008222, allocations: 66.42 kB / 399.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.216e-05/0.008314, allocations: 24.94 kB / 399.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.008331, allocations: 0 / 399.4 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.00857, allocations: 99.34 kB / 399.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.008572, allocations: 0 / 399.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.000457/0.009029, allocations: 145.5 kB / 399.6 MB, free: 2.445 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.009085, allocations: 59.34 kB / 399.7 MB, free: 2.375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.009228, allocations: 154.9 kB / 399.8 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.009254, allocations: 29.7 kB / 399.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.435e-05/0.009328, allocations: 104.1 kB / 400 MB, free: 2.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.635e-05/0.009364, allocations: 27.95 kB / 400 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.009417, allocations: 29.7 kB / 400 MB, free: 2.012 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.009554, allocations: 322.8 kB / 400.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.568e-05/0.00963, allocations: 28.41 kB / 400.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.009735, allocations: 69.12 kB / 400.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.009944, allocations: 105 kB / 400.5 MB, free: 1.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.009949, allocations: 3.938 kB / 400.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000251/0.0102, allocations: 133.4 kB / 400.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.01022, allocations: 8 kB / 400.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.01022, allocations: 0 / 400.7 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.01024, allocations: 4 kB / 400.7 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.592e-05/0.01032, allocations: 8 kB / 400.7 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.01033, allocations: 7.984 kB / 400.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.843e-05/0.0104, allocations: 11.94 kB / 400.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.01041, allocations: 4 kB / 400.7 MB, free: 1.27 MB / 318.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.0001519/0.01056, allocations: 140.8 kB / 400.9 MB, free: 1.125 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.01059, allocations: 11.91 kB / 400.9 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.01063, allocations: 16.77 kB / 400.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01063, allocations: 0 / 400.9 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.01063, allocations: 4 kB / 400.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.01064, allocations: 0 / 400.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001486/0.01079, allocations: 133.3 kB / 401 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.01079, allocations: 3.938 kB / 401 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.01085, allocations: 12 kB / 401 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.01085, allocations: 4 kB / 401 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.01086, allocations: 3.984 kB / 401 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.01086, allocations: 4 kB / 401 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.01087, allocations: 0 / 401 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.01116, allocations: 133 kB / 401.2 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.214e-05/0.01119, allocations: 23.89 kB / 401.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.01122, allocations: 12 kB / 401.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.069e-05/0.01128, allocations: 4 kB / 401.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.01134, allocations: 15.97 kB / 401.2 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.01135, allocations: 4 kB / 401.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.455e-05/0.01143, allocations: 119.1 kB / 401.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.01143, allocations: 0 / 401.4 MB, free: 0.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002188/0.01165, allocations: 20 kB / 401.4 MB, free: 0.5625 MB / 318.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.0001186/0.01177, allocations: 115 kB / 401.5 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002464/0.01201, allocations: 71.94 kB / 401.6 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01202, allocations: 320 / 401.6 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.01213, allocations: 39.92 kB / 401.6 MB, free: 336 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.01231, allocations: 15.92 kB / 401.6 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005505/0.01286, allocations: 225.7 kB / 401.8 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.307e-05/0.01295, allocations: 89.31 kB / 401.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.771e-05/0.01301, allocations: 24.53 kB / 401.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.936e-05/0.01306, allocations: 16.5 kB / 402 MB, free: 15.92 MB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.01306, allocations: 0 / 402 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Templates: time 0.004024/0.01708, allocations: 0.9265 MB / 402.9 MB, free: 15 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.makefile [Timeout 660] (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.4504423551261425] Failed to read output from testmodel.py, exit status != 0: 0.02534375712275505 0.039829656000000005 0.031291732 Calling exit ...