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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") translateModel(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05629/0.05629, allocations: 10.75 MB / 27.48 MB, free: 1.867 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.1 MB / 235.7 MB, free: 11.73 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001033/0.001033, allocations: 106.2 kB / 285.5 MB, free: 12.86 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 55.92 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2154/0.2165, allocations: 49.01 MB / 394.3 MB, free: 35.58 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.0024/0.2189, allocations: 1.621 MB / 395.9 MB, free: 33.94 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.0006833/0.2196, allocations: 0.5603 MB / 396.5 MB, free: 33.38 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.83e-05/0.2197, allocations: 7.938 kB / 396.5 MB, free: 33.37 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 3.839e-05/0.2198, allocations: 3.938 kB / 396.5 MB, free: 33.36 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 8.481e-05/0.2199, allocations: 7.875 kB / 396.5 MB, free: 33.36 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2201, allocations: 55.92 kB / 396.6 MB, free: 33.3 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.2203, allocations: 91.7 kB / 396.6 MB, free: 33.21 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.2204, allocations: 25.09 kB / 396.7 MB, free: 33.19 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 8.556e-05/0.2205, allocations: 51.73 kB / 396.7 MB, free: 33.14 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 5.717e-05/0.2205, allocations: 39.77 kB / 396.8 MB, free: 33.1 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.2206, allocations: 4 kB / 396.8 MB, free: 33.09 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 1.538e-05/0.2206, allocations: 4 kB / 396.8 MB, free: 33.09 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.2206, allocations: 15.92 kB / 396.8 MB, free: 33.07 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.2207, allocations: 39.73 kB / 396.8 MB, free: 33.04 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 9.689e-05/0.2208, allocations: 89.73 kB / 396.9 MB, free: 32.95 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2208, allocations: 4 kB / 396.9 MB, free: 32.95 MB / 298.8 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2208, allocations: 0 / 396.9 MB, free: 32.95 MB / 298.8 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2208, allocations: 0 / 396.9 MB, free: 32.95 MB / 298.8 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.0005102/0.2213, allocations: 488.1 kB / 397.4 MB, free: 32.4 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.2214, allocations: 8.031 kB / 397.4 MB, free: 32.39 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.2214, allocations: 12.84 kB / 397.4 MB, free: 32.38 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002113/0.2216, allocations: 233.4 kB / 397.6 MB, free: 32.12 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-05/0.2217, allocations: 71.89 kB / 397.7 MB, free: 32.04 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.796e-05/0.2217, allocations: 8.375 kB / 397.7 MB, free: 32.03 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001787/0.2219, allocations: 85.64 kB / 397.8 MB, free: 31.94 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2219, allocations: 0 / 397.8 MB, free: 31.94 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.2219, allocations: 0 / 397.8 MB, free: 31.94 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.222, allocations: 0 / 397.8 MB, free: 31.94 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.2221, allocations: 35.97 kB / 397.8 MB, free: 31.9 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004105/0.2225, allocations: 316.7 kB / 398.1 MB, free: 31.54 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.2227, allocations: 66.52 kB / 398.2 MB, free: 31.47 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.3e-05/0.2228, allocations: 24.91 kB / 398.2 MB, free: 31.44 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.2228, allocations: 0 / 398.2 MB, free: 31.44 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.223, allocations: 107.3 kB / 398.3 MB, free: 31.32 MB / 298.8 MB Notification: Performance of pre-optimization done (n=10): time 1.833e-06/0.223, allocations: 7.922 kB / 398.3 MB, free: 31.32 MB / 298.8 MB Notification: Performance of matching and sorting (n=10): time 0.0003373/0.2233, allocations: 137.5 kB / 398.5 MB, free: 31.18 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.2e-05/0.2234, allocations: 55.34 kB / 398.5 MB, free: 31.11 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.276e-05/0.2235, allocations: 162 kB / 398.7 MB, free: 30.94 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.111e-05/0.2235, allocations: 33.7 kB / 398.7 MB, free: 30.9 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 3.566e-05/0.2235, allocations: 104.1 kB / 398.8 MB, free: 30.79 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.17e-05/0.2236, allocations: 23.86 kB / 398.8 MB, free: 30.77 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.714e-05/0.2236, allocations: 33.81 kB / 398.9 MB, free: 30.73 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 4.71e-05/0.2236, allocations: 326.7 kB / 399.2 MB, free: 30.4 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.974e-05/0.2237, allocations: 27.98 kB / 399.2 MB, free: 30.38 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.008e-05/0.2238, allocations: 61.14 kB / 399.3 MB, free: 30.3 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.2239, allocations: 113 kB / 399.4 MB, free: 30.17 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.224, allocations: 0 / 399.4 MB, free: 30.17 MB / 298.8 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001739/0.2241, allocations: 125.4 kB / 399.5 MB, free: 30.04 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.2242, allocations: 4 kB / 399.5 MB, free: 30.04 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.2242, allocations: 0 / 399.5 MB, free: 30.04 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.2242, allocations: 4 kB / 399.5 MB, free: 30.03 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.624e-05/0.2243, allocations: 11.98 kB / 399.5 MB, free: 30.02 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.2243, allocations: 8.156 kB / 399.5 MB, free: 30.01 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.676e-05/0.2243, allocations: 11.98 kB / 399.6 MB, free: 30 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.2244, allocations: 7.938 kB / 399.6 MB, free: 29.99 MB / 298.8 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 9.907e-05/0.2245, allocations: 125.7 kB / 399.7 MB, free: 29.86 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.2245, allocations: 15.81 kB / 399.7 MB, free: 29.84 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.93e-05/0.2245, allocations: 16.7 kB / 399.7 MB, free: 29.83 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.2245, allocations: 4.375 kB / 399.7 MB, free: 29.83 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2245, allocations: 4 kB / 399.7 MB, free: 29.82 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.2245, allocations: 0 / 399.7 MB, free: 29.82 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000104/0.2246, allocations: 197.6 kB / 399.9 MB, free: 29.58 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.2247, allocations: 3.938 kB / 399.9 MB, free: 29.58 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-05/0.2247, allocations: 7.984 kB / 399.9 MB, free: 29.57 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2247, allocations: 4 kB / 399.9 MB, free: 29.57 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.2247, allocations: 0 / 399.9 MB, free: 29.57 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.2247, allocations: 0 / 399.9 MB, free: 29.57 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2247, allocations: 0 / 399.9 MB, free: 29.57 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004151/0.2252, allocations: 0.733 MB / 400.7 MB, free: 28.77 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 2.452e-05/0.2252, allocations: 92.91 kB / 400.8 MB, free: 28.66 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.202e-05/0.2252, allocations: 3.938 kB / 400.8 MB, free: 28.66 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.497e-05/0.2253, allocations: 12.06 kB / 400.8 MB, free: 28.65 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.2253, allocations: 11.97 kB / 400.8 MB, free: 28.64 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.2253, allocations: 8 kB / 400.8 MB, free: 28.63 MB / 298.8 MB Notification: Performance of sorting global known variables: time 4.404e-05/0.2254, allocations: 111.2 kB / 400.9 MB, free: 28.52 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2254, allocations: 3.938 kB / 400.9 MB, free: 28.52 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0002837/0.2257, allocations: 16 kB / 400.9 MB, free: 28.5 MB / 298.8 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 6.959e-05/0.2258, allocations: 110.2 kB / 401 MB, free: 28.38 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0001864/0.226, allocations: 75.89 kB / 401.1 MB, free: 28.31 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.226, allocations: 4.312 kB / 401.1 MB, free: 28.3 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 9.173e-05/0.2261, allocations: 35.92 kB / 401.1 MB, free: 28.27 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001419/0.2262, allocations: 4 kB / 401.2 MB, free: 28.27 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004798/0.2267, allocations: 384.2 kB / 401.5 MB, free: 27.85 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.905e-05/0.2268, allocations: 0.7043 MB / 402.2 MB, free: 27.12 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 5.969e-05/0.2269, allocations: 20.42 kB / 402.3 MB, free: 27.1 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.122e-05/0.2269, allocations: 15.72 kB / 402.3 MB, free: 27.09 MB / 298.8 MB Notification: Performance of SimCode: time 2e-07/0.2269, allocations: 4 kB / 402.3 MB, free: 27.08 MB / 298.8 MB Notification: Performance of Templates: time 0.002496/0.2294, allocations: 0.8644 MB / 403.1 MB, free: 26.22 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.makefile (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)