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.00812/0.00812, allocations: 170.5 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06603/0.06603, allocations: 10.74 MB / 26.59 MB, free: 2.262 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.456/1.456, allocations: 205.4 MB / 235.2 MB, free: 180 kB / 186.7 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: 92.03 kB / 285.9 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003327, allocations: 8 kB / 346.4 MB, free: 5.184 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1068, allocations: 50.01 MB / 396.4 MB, free: 3.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.4324, allocations: 77.76 MB / 474.2 MB, free: 17.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4328, allocations: 81.02 kB / 474.2 MB, free: 17.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00427/0.437, allocations: 1.533 MB / 475.8 MB, free: 16.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4371, allocations: 0 / 475.8 MB, free: 16.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.4371, allocations: 4 kB / 475.8 MB, free: 16.62 MB / 346.7 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.0004775/0.4376, allocations: 483.5 kB / 476.2 MB, free: 16.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.4376, allocations: 8.031 kB / 476.2 MB, free: 16.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.714e-05/0.4377, allocations: 15.91 kB / 476.3 MB, free: 16.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.438, allocations: 235.9 kB / 476.5 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.895e-05/0.4381, allocations: 63.33 kB / 476.6 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.923e-05/0.4381, allocations: 6.938 kB / 476.6 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.4383, allocations: 80.44 kB / 476.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.4383, allocations: 0 / 476.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.578e-05/0.4383, allocations: 1.172 kB / 476.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.4383, allocations: 7.953 kB / 476.7 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.4385, allocations: 38.08 kB / 476.7 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/0.4389, allocations: 322 kB / 477 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.4391, allocations: 76.31 kB / 477.1 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.731e-05/0.4392, allocations: 5.047 kB / 477.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002741/0.4395, allocations: 100.8 kB / 477.2 MB, free: 15.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 3.286e-06/0.4395, allocations: 11.98 kB / 477.2 MB, free: 15.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003956/0.4399, allocations: 142.8 kB / 477.3 MB, free: 15.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.4399, allocations: 55.41 kB / 477.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.983e-05/0.44, allocations: 137.8 kB / 477.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.4401, allocations: 29.2 kB / 477.5 MB, free: 14.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.635e-05/0.4401, allocations: 106 kB / 477.7 MB, free: 14.81 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.4401, allocations: 29.95 kB / 477.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.015e-06/0.4402, allocations: 3.312 kB / 477.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.009e-05/0.4402, allocations: 322.7 kB / 478 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.442e-05/0.4403, allocations: 31.38 kB / 478 MB, free: 14.45 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.567e-05/0.4404, allocations: 67.53 kB / 478.1 MB, free: 14.38 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.505e-05/0.4405, allocations: 35.41 kB / 478.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4405, allocations: 0 / 478.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001913/0.4407, allocations: 132.3 kB / 478.3 MB, free: 14.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.4407, allocations: 11.95 kB / 478.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.4407, allocations: 0 / 478.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.4407, allocations: 4 kB / 478.3 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.4408, allocations: 14.09 kB / 478.3 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.4408, allocations: 9.438 kB / 478.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.967e-05/0.4409, allocations: 4 kB / 478.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/0.4409, allocations: 8.75 kB / 478.3 MB, free: 14.21 MB / 346.7 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.0001237/0.441, allocations: 135.3 kB / 478.4 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.4411, allocations: 15.81 kB / 478.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.4411, allocations: 16.56 kB / 478.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.4411, allocations: 4 kB / 478.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.4411, allocations: 0 / 478.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4411, allocations: 1.359 kB / 478.5 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.4413, allocations: 192.5 kB / 478.7 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4413, allocations: 4 kB / 478.7 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.334e-05/0.4413, allocations: 16.88 kB / 478.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4414, allocations: 1.781 kB / 478.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.4414, allocations: 3.641 kB / 478.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.4414, allocations: 3.953 kB / 478.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.4414, allocations: 0 / 478.7 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.4416, allocations: 144.7 kB / 478.8 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.911e-05/0.4417, allocations: 88.92 kB / 478.9 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.4417, allocations: 8.547 kB / 478.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.889e-05/0.4418, allocations: 5.359 kB / 478.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.4418, allocations: 18.61 kB / 479 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.4419, allocations: 9.297 kB / 479 MB, free: 13.58 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.44e-05/0.4419, allocations: 105.6 kB / 479.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4419, allocations: 0 / 479.1 MB, free: 13.49 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001879/0.4421, allocations: 23.06 kB / 479.1 MB, free: 13.47 MB / 346.7 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 9.026e-05/0.4422, allocations: 110 kB / 479.2 MB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.4424, allocations: 80.62 kB / 479.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4424, allocations: 0 / 479.3 MB, free: 13.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.4426, allocations: 36.17 kB / 479.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001104/0.4427, allocations: 12.39 kB / 479.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000486/0.4432, allocations: 254.1 kB / 479.6 MB, free: 13.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.4433, allocations: 0.7064 MB / 480.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.42e-05/0.4434, allocations: 19.66 kB / 480.3 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.297e-05/0.4434, allocations: 15.44 kB / 480.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4434, allocations: 0 / 480.3 MB, free: 12.29 MB / 346.7 MB Notification: Performance of Templates: time 0.002886/0.4463, allocations: 0.8024 MB / 481.1 MB, free: 11.82 MB / 346.7 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)