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.001949/0.001949, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.002363/0.002363, allocations: 158.2 kB / 23.01 MB, free: 4.949 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.502/1.502, allocations: 177.2 MB / 203.4 MB, free: 8.949 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.07157/0.07157, allocations: 8.625 MB / 268.4 MB, free: 8.516 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: 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.002128/0.002128, allocations: 71.88 kB / 396.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.118, allocations: 56.05 MB / 452.1 MB, free: 15.77 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003302/0.1213, allocations: 1.556 MB / 453.7 MB, free: 14.2 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1225, allocations: 0.5533 MB / 454.2 MB, free: 13.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1226, allocations: 11.88 kB / 454.2 MB, free: 13.63 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.1227, allocations: 7.875 kB / 454.3 MB, free: 13.62 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 8.84e-05/0.1228, allocations: 15.81 kB / 454.3 MB, free: 13.61 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.1231, allocations: 83.77 kB / 454.3 MB, free: 13.53 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.1233, allocations: 99.75 kB / 454.4 MB, free: 13.43 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.1234, allocations: 13.3 kB / 454.5 MB, free: 13.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.1236, allocations: 63.7 kB / 454.5 MB, free: 13.35 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.889e-05/0.1237, allocations: 39.72 kB / 454.6 MB, free: 13.31 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.1238, allocations: 8 kB / 454.6 MB, free: 13.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.024e-05/0.1238, allocations: 8 kB / 454.6 MB, free: 13.3 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.804e-05/0.1239, allocations: 23.91 kB / 454.6 MB, free: 13.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.52e-05/0.1239, allocations: 27.8 kB / 454.6 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.1241, allocations: 91.58 kB / 454.7 MB, free: 13.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.1241, allocations: 0 / 454.7 MB, free: 13.16 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1241, allocations: 0 / 454.7 MB, free: 13.16 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.1241, allocations: 0 / 454.7 MB, free: 13.16 MB / 430.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.0008325/0.125, allocations: 422.8 kB / 455.1 MB, free: 12.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.125, allocations: 16.03 kB / 455.1 MB, free: 12.68 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002114/0.1252, allocations: 24.83 kB / 455.2 MB, free: 12.66 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004316/0.1257, allocations: 186.1 kB / 455.4 MB, free: 12.45 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.1258, allocations: 115.4 kB / 455.5 MB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.569e-05/0.1258, allocations: 8.375 kB / 455.5 MB, free: 12.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.1261, allocations: 85.69 kB / 455.6 MB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1261, allocations: 0 / 455.6 MB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.1261, allocations: 0 / 455.6 MB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1261, allocations: 0 / 455.6 MB, free: 12.21 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.1263, allocations: 35.97 kB / 455.6 MB, free: 12.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005528/0.1268, allocations: 252.4 kB / 455.8 MB, free: 11.9 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.127, allocations: 66.58 kB / 455.9 MB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.543e-05/0.1271, allocations: 20.91 kB / 455.9 MB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.1271, allocations: 4 kB / 455.9 MB, free: 11.8 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002433/0.1274, allocations: 111.2 kB / 456 MB, free: 11.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.1274, allocations: 3.938 kB / 456 MB, free: 11.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.000441/0.1278, allocations: 141.5 kB / 456.2 MB, free: 11.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.212e-05/0.1279, allocations: 55.41 kB / 456.2 MB, free: 11.46 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.128, allocations: 158.2 kB / 456.4 MB, free: 11.3 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1281, allocations: 29.7 kB / 456.4 MB, free: 11.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.1282, allocations: 104.1 kB / 456.5 MB, free: 11.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.1282, allocations: 31.92 kB / 456.5 MB, free: 11.13 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.1282, allocations: 25.72 kB / 456.6 MB, free: 11.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.1284, allocations: 326.9 kB / 456.9 MB, free: 10.77 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.262e-05/0.1285, allocations: 27.92 kB / 456.9 MB, free: 10.74 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.1286, allocations: 76.69 kB / 457 MB, free: 10.65 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.1288, allocations: 97.02 kB / 457.1 MB, free: 10.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1288, allocations: 0 / 457.1 MB, free: 10.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000266/0.1291, allocations: 137.5 kB / 457.2 MB, free: 10.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1291, allocations: 4 kB / 457.2 MB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1291, allocations: 4 kB / 457.2 MB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1291, allocations: 0 / 457.2 MB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.769e-05/0.1292, allocations: 19.92 kB / 457.3 MB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1292, allocations: 0 / 457.3 MB, free: 10.37 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.838e-05/0.1293, allocations: 7.953 kB / 457.3 MB, free: 10.36 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1293, allocations: 4 kB / 457.3 MB, free: 10.36 MB / 430.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.0001875/0.1295, allocations: 133.9 kB / 457.4 MB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.1295, allocations: 11.94 kB / 457.4 MB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.353e-05/0.1295, allocations: 16.78 kB / 457.4 MB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1295, allocations: 0 / 457.4 MB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1295, allocations: 0 / 457.4 MB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1295, allocations: 0 / 457.4 MB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001606/0.1297, allocations: 141.2 kB / 457.6 MB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1297, allocations: 3.938 kB / 457.6 MB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.001e-05/0.1298, allocations: 4 kB / 457.6 MB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1298, allocations: 8.375 kB / 457.6 MB, free: 10 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.1298, allocations: 8.047 kB / 457.6 MB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1298, allocations: 0 / 457.6 MB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1298, allocations: 0 / 457.6 MB, free: 9.996 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003041/0.1301, allocations: 156.8 kB / 457.7 MB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.222e-05/0.1301, allocations: 15.84 kB / 457.8 MB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.1301, allocations: 0 / 457.8 MB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.166e-05/0.1302, allocations: 8 kB / 457.8 MB, free: 9.801 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.1303, allocations: 11.97 kB / 457.8 MB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.1303, allocations: 4 kB / 457.8 MB, free: 9.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.501e-05/0.1304, allocations: 123.2 kB / 457.9 MB, free: 9.664 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1304, allocations: 0 / 457.9 MB, free: 9.664 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002165/0.1306, allocations: 19.94 kB / 457.9 MB, free: 9.645 MB / 430.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.0001368/0.1307, allocations: 103.2 kB / 458 MB, free: 9.535 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002476/0.131, allocations: 75.84 kB / 458.1 MB, free: 9.461 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.131, allocations: 0 / 458.1 MB, free: 9.461 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.1311, allocations: 36.28 kB / 458.1 MB, free: 9.426 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.1313, allocations: 15.88 kB / 458.1 MB, free: 9.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006459/0.1319, allocations: 235.7 kB / 458.4 MB, free: 9.152 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.132, allocations: 89.31 kB / 458.5 MB, free: 9.047 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.777e-05/0.1321, allocations: 12.64 kB / 458.5 MB, free: 9.035 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.739e-05/0.1321, allocations: 16.5 kB / 458.5 MB, free: 9.02 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1321, allocations: 0 / 458.5 MB, free: 9.02 MB / 430.1 MB Notification: Performance of Templates: time 0.004123/0.1362, allocations: 0.9275 MB / 459.4 MB, free: 8.105 MB / 430.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 -s ida -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.636539274943061] Failed to read output from testmodel.py, exit status != 0: 0.14464185491669923 0.15999311500000002 0.032537836 Calling exit ...