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.001279/0.00128, allocations: 106.1 kB / 16.35 MB, free: 5.824 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.001704/0.001704, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.55/1.55, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0568/0.0568, allocations: 10.74 MB / 281.3 MB, free: 1.309 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.001874/0.001874, allocations: 68.36 kB / 342 MB, free: 4.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3553, allocations: 49.01 MB / 391 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003319/0.3586, allocations: 1.563 MB / 392.6 MB, free: 48.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.3597, allocations: 0.5552 MB / 393.1 MB, free: 48.46 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.101e-05/0.3598, allocations: 8.062 kB / 393.1 MB, free: 48.46 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.736e-05/0.3598, allocations: 8.719 kB / 393.1 MB, free: 48.45 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.58e-05/0.3599, allocations: 13.98 kB / 393.1 MB, free: 48.44 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002664/0.3602, allocations: 67.84 kB / 393.2 MB, free: 48.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001761/0.3604, allocations: 93.08 kB / 393.3 MB, free: 48.36 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.3605, allocations: 32.64 kB / 393.3 MB, free: 48.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.3606, allocations: 50.39 kB / 393.4 MB, free: 48.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.862e-05/0.3607, allocations: 40.55 kB / 393.4 MB, free: 48.3 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.3607, allocations: 5.5 kB / 393.4 MB, free: 48.3 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.717e-05/0.3608, allocations: 6.875 kB / 393.4 MB, free: 48.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.3608, allocations: 21.41 kB / 393.5 MB, free: 48.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.777e-05/0.3609, allocations: 40.12 kB / 393.5 MB, free: 48.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001564/0.361, allocations: 91.75 kB / 393.6 MB, free: 48.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.361, allocations: 0.7969 kB / 393.6 MB, free: 48.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3611, allocations: 1.375 kB / 393.6 MB, free: 48.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.3611, allocations: 3.938 kB / 393.6 MB, free: 48.21 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.0006002/0.3617, allocations: 489.9 kB / 394.1 MB, free: 47.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3617, allocations: 14.28 kB / 394.1 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.374e-05/0.3618, allocations: 11.72 kB / 394.1 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.3621, allocations: 251.6 kB / 394.3 MB, free: 47.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.792e-05/0.3622, allocations: 62.84 kB / 394.4 MB, free: 47.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.3622, allocations: 8.469 kB / 394.4 MB, free: 47.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.3624, allocations: 84.78 kB / 394.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3624, allocations: 0 / 394.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.3624, allocations: 0 / 394.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.3624, allocations: 2.922 kB / 394.5 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.3626, allocations: 34.52 kB / 394.5 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004391/0.363, allocations: 314.5 kB / 394.8 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.3632, allocations: 67.17 kB / 394.9 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.405e-05/0.3633, allocations: 25.7 kB / 394.9 MB, free: 47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.3634, allocations: 0 / 394.9 MB, free: 47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.3636, allocations: 104.5 kB / 395 MB, free: 46.94 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3636, allocations: 4 kB / 395 MB, free: 46.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004067/0.364, allocations: 136.2 kB / 395.2 MB, free: 46.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.3641, allocations: 55.19 kB / 395.2 MB, free: 46.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3642, allocations: 159 kB / 395.4 MB, free: 46.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.3642, allocations: 31.48 kB / 395.4 MB, free: 46.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.22e-05/0.3643, allocations: 105.3 kB / 395.5 MB, free: 46.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.3643, allocations: 25.22 kB / 395.5 MB, free: 46.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.3643, allocations: 33.83 kB / 395.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.425e-05/0.3644, allocations: 325.6 kB / 395.9 MB, free: 46.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.905e-05/0.3645, allocations: 25 kB / 395.9 MB, free: 46.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.583e-05/0.3646, allocations: 58.62 kB / 396 MB, free: 46.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.3647, allocations: 104.2 kB / 396.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3648, allocations: 4 kB / 396.1 MB, free: 46.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002172/0.365, allocations: 134.7 kB / 396.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.365, allocations: 6.422 kB / 396.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.365, allocations: 6.812 kB / 396.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.365, allocations: 1.562 kB / 396.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.75e-05/0.3651, allocations: 12.44 kB / 396.2 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.3652, allocations: 6.656 kB / 396.2 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.473e-05/0.3652, allocations: 5.562 kB / 396.2 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.3653, allocations: 12.03 kB / 396.2 MB, free: 45.96 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.0001363/0.3654, allocations: 128.6 kB / 396.4 MB, free: 45.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.3654, allocations: 13.12 kB / 396.4 MB, free: 45.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.5e-05/0.3655, allocations: 17.66 kB / 396.4 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3655, allocations: 1.406 kB / 396.4 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.3655, allocations: 0.6562 kB / 396.4 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3655, allocations: 0.6094 kB / 396.4 MB, free: 45.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.3657, allocations: 203.6 kB / 396.6 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3657, allocations: 4 kB / 396.6 MB, free: 45.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.306e-05/0.3658, allocations: 13 kB / 396.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3658, allocations: 0 / 396.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.3658, allocations: 4.062 kB / 396.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3658, allocations: 0 / 396.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3658, allocations: 5.359 kB / 396.6 MB, free: 45.59 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002562/0.3661, allocations: 144.6 kB / 396.8 MB, free: 45.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.51e-05/0.3661, allocations: 95.61 kB / 396.9 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.3661, allocations: 4.203 kB / 396.9 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.897e-05/0.3662, allocations: 4.484 kB / 396.9 MB, free: 45.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.242e-05/0.3663, allocations: 14.28 kB / 396.9 MB, free: 45.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3663, allocations: 4.625 kB / 396.9 MB, free: 45.38 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.009e-05/0.3664, allocations: 113.9 kB / 397 MB, free: 45.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3664, allocations: 0 / 397 MB, free: 45.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.3666, allocations: 17.12 kB / 397 MB, free: 45.29 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 9.84e-05/0.3667, allocations: 110.7 kB / 397.1 MB, free: 45.19 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002436/0.3669, allocations: 83.59 kB / 397.2 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.367, allocations: 1.375 kB / 397.2 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001076/0.3671, allocations: 31.11 kB / 397.2 MB, free: 45.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001699/0.3672, allocations: 12.73 kB / 397.3 MB, free: 45.15 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.3678, allocations: 231.5 kB / 397.5 MB, free: 44.98 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.3679, allocations: 0.7019 MB / 398.2 MB, free: 44.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.424e-05/0.368, allocations: 15.75 kB / 398.2 MB, free: 44.29 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.006e-05/0.368, allocations: 15.67 kB / 398.2 MB, free: 44.28 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.368, allocations: 0 / 398.2 MB, free: 44.28 MB / 318.1 MB Notification: Performance of Templates: time 0.00379/0.3718, allocations: 0.9296 MB / 399.1 MB, free: 44.18 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 cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)