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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001143, allocations: 108.8 kB / 16.37 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 193.1 kB / 17.31 MB, free: 5.82 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.495/1.495, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05958/0.05958, allocations: 10.73 MB / 281.3 MB, free: 1.32 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 71.91 kB / 342 MB, free: 4.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2497, allocations: 49.01 MB / 391 MB, free: 50.19 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003114/0.2528, allocations: 1.56 MB / 392.6 MB, free: 49.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009398/0.2538, allocations: 0.5497 MB / 393.1 MB, free: 48.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.925e-05/0.2539, allocations: 8.438 kB / 393.1 MB, free: 48.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.925e-05/0.254, allocations: 8.578 kB / 393.1 MB, free: 48.72 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.125e-05/0.2541, allocations: 18.98 kB / 393.1 MB, free: 48.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.2543, allocations: 75.8 kB / 393.2 MB, free: 48.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001843/0.2545, allocations: 97.06 kB / 393.3 MB, free: 48.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.2547, allocations: 17.72 kB / 393.3 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2548, allocations: 53.92 kB / 393.4 MB, free: 48.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.076e-05/0.2549, allocations: 31.92 kB / 393.4 MB, free: 48.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.2549, allocations: 14.06 kB / 393.4 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.126e-05/0.255, allocations: 5.5 kB / 393.4 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.552e-05/0.255, allocations: 25.12 kB / 393.5 MB, free: 48.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.017e-05/0.2551, allocations: 41.86 kB / 393.5 MB, free: 48.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001674/0.2553, allocations: 94.55 kB / 393.6 MB, free: 48.47 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2553, allocations: 1.375 kB / 393.6 MB, free: 48.47 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2553, allocations: 0 / 393.6 MB, free: 48.47 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.2553, allocations: 0 / 393.6 MB, free: 48.47 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.0006167/0.2559, allocations: 492 kB / 394.1 MB, free: 47.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.178e-05/0.256, allocations: 13.48 kB / 394.1 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.018e-05/0.256, allocations: 11 kB / 394.1 MB, free: 47.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.2564, allocations: 244 kB / 394.3 MB, free: 47.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-05/0.2564, allocations: 67.25 kB / 394.4 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.2565, allocations: 4.5 kB / 394.4 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002364/0.2567, allocations: 79.33 kB / 394.5 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.2567, allocations: 0 / 394.5 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.2568, allocations: 2.172 kB / 394.5 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2568, allocations: 1.375 kB / 394.5 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.257, allocations: 38.59 kB / 394.5 MB, free: 47.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006377/0.2576, allocations: 323.6 kB / 394.8 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.2578, allocations: 65.61 kB / 394.9 MB, free: 47.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.854e-05/0.258, allocations: 29.09 kB / 394.9 MB, free: 47.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.258, allocations: 1.375 kB / 394.9 MB, free: 47.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003304/0.2583, allocations: 105.2 kB / 395 MB, free: 47.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.442e-06/0.2583, allocations: 0 / 395 MB, free: 47.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004903/0.2588, allocations: 135.2 kB / 395.2 MB, free: 47.14 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.2589, allocations: 59.42 kB / 395.2 MB, free: 47.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001684/0.2591, allocations: 151.5 kB / 395.4 MB, free: 46.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.08e-05/0.2591, allocations: 36.06 kB / 395.4 MB, free: 46.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.132e-05/0.2592, allocations: 108.6 kB / 395.5 MB, free: 46.81 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.2593, allocations: 26.33 kB / 395.5 MB, free: 46.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.444e-05/0.2593, allocations: 24.69 kB / 395.6 MB, free: 46.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.2594, allocations: 333.6 kB / 395.9 MB, free: 46.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.376e-05/0.2595, allocations: 19.94 kB / 395.9 MB, free: 46.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.295e-05/0.2596, allocations: 66.06 kB / 396 MB, free: 46.38 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.2598, allocations: 103.7 kB / 396.1 MB, free: 46.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2598, allocations: 0 / 396.1 MB, free: 46.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002503/0.2601, allocations: 126.1 kB / 396.2 MB, free: 46.24 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.2601, allocations: 7.109 kB / 396.2 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.2601, allocations: 1.031 kB / 396.2 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.2602, allocations: 6.688 kB / 396.2 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.2603, allocations: 12.72 kB / 396.2 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.2603, allocations: 7.312 kB / 396.2 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.2604, allocations: 9.141 kB / 396.2 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.2604, allocations: 7.656 kB / 396.3 MB, free: 46.22 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.0001477/0.2605, allocations: 132 kB / 396.4 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.468e-05/0.2606, allocations: 12.84 kB / 396.4 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.765e-05/0.2606, allocations: 13.97 kB / 396.4 MB, free: 46.08 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2606, allocations: 5.953 kB / 396.4 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.2607, allocations: 112 / 396.4 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2607, allocations: 9.906 kB / 396.4 MB, free: 46.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.2609, allocations: 202.2 kB / 396.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.2609, allocations: 1.438 kB / 396.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.443e-05/0.2609, allocations: 7.328 kB / 396.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.2609, allocations: 2.266 kB / 396.6 MB, free: 45.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.261, allocations: 9.312 kB / 396.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.261, allocations: 2.25 kB / 396.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.261, allocations: 0 / 396.6 MB, free: 45.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.2613, allocations: 144 kB / 396.8 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.01e-05/0.2613, allocations: 89.61 kB / 396.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.2614, allocations: 6.062 kB / 396.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.772e-05/0.2614, allocations: 5.391 kB / 396.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.348e-05/0.2615, allocations: 9.875 kB / 396.9 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.2615, allocations: 9.156 kB / 396.9 MB, free: 45.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.459e-05/0.2616, allocations: 118.2 kB / 397 MB, free: 45.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2616, allocations: 4 kB / 397 MB, free: 45.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.2618, allocations: 17.72 kB / 397 MB, free: 45.55 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 8.876e-05/0.2619, allocations: 102.1 kB / 397.1 MB, free: 45.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002264/0.2621, allocations: 76.23 kB / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2621, allocations: 0 / 397.2 MB, free: 45.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.2623, allocations: 39.48 kB / 397.3 MB, free: 45.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.2624, allocations: 13.2 kB / 397.3 MB, free: 45.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004895/0.2629, allocations: 226.9 kB / 397.5 MB, free: 45.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2631, allocations: 0.7006 MB / 398.2 MB, free: 44.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.156e-05/0.2632, allocations: 15.66 kB / 398.2 MB, free: 44.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.769e-05/0.2632, allocations: 15.78 kB / 398.2 MB, free: 44.54 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2632, allocations: 0 / 398.2 MB, free: 44.54 MB / 318.1 MB Notification: Performance of Templates: time 0.003682/0.2669, allocations: 0.9414 MB / 399.2 MB, free: 44.44 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)