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.0009809/0.0009809, allocations: 172.8 kB / 16.12 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06708/0.06708, allocations: 10.76 MB / 27.63 MB, free: 1.863 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.718/1.718, allocations: 205.4 MB / 236.2 MB, free: 10.18 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.0008008/0.0008006, allocations: 97.19 kB / 287 MB, free: 12.41 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003965, allocations: 12 kB / 347.6 MB, free: 15.64 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2601, allocations: 50 MB / 397.6 MB, free: 34.62 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09967/0.3598, allocations: 77.8 MB / 475.4 MB, free: 4.719 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.3601, allocations: 83.95 kB / 475.5 MB, free: 4.637 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.004295/0.3644, allocations: 1.536 MB / 477 MB, free: 3.102 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3644, allocations: 0 / 477 MB, free: 3.102 MB / 346.8 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.3644, allocations: 0 / 477 MB, free: 3.102 MB / 346.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.0005585/0.365, allocations: 488 kB / 477.5 MB, free: 2.555 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3651, allocations: 16.02 kB / 477.5 MB, free: 2.539 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.684e-05/0.3651, allocations: 12.84 kB / 477.5 MB, free: 2.527 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.3655, allocations: 241.6 kB / 477.8 MB, free: 2.254 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.672e-05/0.3656, allocations: 59.91 kB / 477.8 MB, free: 2.184 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.119e-05/0.3656, allocations: 12.36 kB / 477.9 MB, free: 2.172 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001975/0.3658, allocations: 81.95 kB / 477.9 MB, free: 2.086 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3658, allocations: 0 / 477.9 MB, free: 2.086 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.3658, allocations: 4 kB / 477.9 MB, free: 2.082 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.3658, allocations: 0 / 477.9 MB, free: 2.082 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.366, allocations: 35.97 kB / 478 MB, free: 2.047 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004979/0.3665, allocations: 328.6 kB / 478.3 MB, free: 1.676 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001846/0.3667, allocations: 58.55 kB / 478.4 MB, free: 1.609 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.757e-05/0.3668, allocations: 32.94 kB / 478.4 MB, free: 1.574 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.3668, allocations: 4 kB / 478.4 MB, free: 1.57 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/0.3671, allocations: 107.3 kB / 478.5 MB, free: 1.453 MB / 346.8 MB Notification: Performance of pre-optimization done (n=10): time 2.434e-06/0.3671, allocations: 0 / 478.5 MB, free: 1.453 MB / 346.8 MB Notification: Performance of matching and sorting (n=10): time 0.0004433/0.3676, allocations: 149.4 kB / 478.6 MB, free: 1.301 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.3677, allocations: 63.48 kB / 478.7 MB, free: 1.227 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.3678, allocations: 150.2 kB / 478.8 MB, free: 1.07 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3678, allocations: 29.7 kB / 478.9 MB, free: 1.035 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.3679, allocations: 104.1 kB / 479 MB, free: 0.9297 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.028e-05/0.3679, allocations: 23.7 kB / 479 MB, free: 0.9062 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.539e-06/0.3679, allocations: 0 / 479 MB, free: 0.9062 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.368, allocations: 334.8 kB / 479.3 MB, free: 0.5703 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.869e-05/0.3681, allocations: 19.98 kB / 479.3 MB, free: 0.5508 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.335e-05/0.3682, allocations: 74.08 kB / 479.4 MB, free: 472 kB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002092/0.3684, allocations: 112.9 kB / 479.5 MB, free: 340 kB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3684, allocations: 0 / 479.5 MB, free: 340 kB / 346.8 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002334/0.3687, allocations: 129.4 kB / 479.7 MB, free: 204 kB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.3687, allocations: 14.17 kB / 479.7 MB, free: 192 kB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3687, allocations: 4 kB / 479.7 MB, free: 188 kB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.3688, allocations: 0 / 479.7 MB, free: 188 kB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.861e-05/0.3688, allocations: 12 kB / 479.7 MB, free: 176 kB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.247e-05/0.3689, allocations: 7.938 kB / 479.7 MB, free: 168 kB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.3689, allocations: 16.14 kB / 479.7 MB, free: 152 kB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.369, allocations: 4 kB / 479.7 MB, free: 148 kB / 346.8 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = true ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(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,$PRE.Rhyst_DIGITAL.state,Rhyst_DIGITAL.state,$PRE.Rhyst_DIGITAL.y,Rhyst_DIGITAL.y,$whenCondition2,$whenCondition1,$whenCondition3,$PRE.Rhyst.state,Rhyst.state) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001617/0.3691, allocations: 132.2 kB / 479.8 MB, free: 8 kB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.3692, allocations: 11.98 kB / 479.9 MB, free: 15.99 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.21e-05/0.3692, allocations: 16.7 kB / 479.9 MB, free: 15.97 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.3692, allocations: 4 kB / 479.9 MB, free: 15.97 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3692, allocations: 0 / 479.9 MB, free: 15.97 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3692, allocations: 4 kB / 479.9 MB, free: 15.96 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001843/0.3694, allocations: 201.5 kB / 480.1 MB, free: 15.72 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3694, allocations: 0 / 480.1 MB, free: 15.72 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.512e-05/0.3695, allocations: 15.92 kB / 480.1 MB, free: 15.7 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3695, allocations: 0 / 480.1 MB, free: 15.7 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.3695, allocations: 4 kB / 480.1 MB, free: 15.7 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3695, allocations: 0 / 480.1 MB, free: 15.7 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3696, allocations: 3.984 kB / 480.1 MB, free: 15.7 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/0.3698, allocations: 149.2 kB / 480.2 MB, free: 15.53 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.559e-05/0.3699, allocations: 92.86 kB / 480.3 MB, free: 15.42 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.404e-05/0.37, allocations: 11.98 kB / 480.3 MB, free: 15.41 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.631e-05/0.37, allocations: 4 kB / 480.3 MB, free: 15.41 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.394e-05/0.3701, allocations: 11.97 kB / 480.4 MB, free: 15.39 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.3701, allocations: 4 kB / 480.4 MB, free: 15.39 MB / 362.8 MB Notification: Performance of sorting global known variables: time 7.394e-05/0.3702, allocations: 116.1 kB / 480.5 MB, free: 15.28 MB / 362.8 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3702, allocations: 0 / 480.5 MB, free: 15.28 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.0001924/0.3704, allocations: 23.88 kB / 480.5 MB, free: 15.25 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001157/0.3705, allocations: 99.25 kB / 480.6 MB, free: 15.15 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.0002175/0.3707, allocations: 83.83 kB / 480.7 MB, free: 15.07 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3707, allocations: 4.312 kB / 480.7 MB, free: 15.06 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.3708, allocations: 35.98 kB / 480.7 MB, free: 15.03 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000153/0.371, allocations: 8 kB / 480.7 MB, free: 15.02 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005271/0.3715, allocations: 251.1 kB / 481 MB, free: 14.75 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.3718, allocations: 0.7004 MB / 481.7 MB, free: 14.02 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 6.886e-05/0.3719, allocations: 20.42 kB / 481.7 MB, free: 14 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.126e-05/0.3719, allocations: 19.42 kB / 481.7 MB, free: 13.98 MB / 362.8 MB Notification: Performance of SimCode: time 2.2e-07/0.372, allocations: 0 / 481.7 MB, free: 13.98 MB / 362.8 MB Notification: Performance of Templates: time 0.003102/0.3751, allocations: 0.7992 MB / 482.5 MB, free: 13.18 MB / 362.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)