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.001028/0.001032, allocations: 174.2 kB / 7.642 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05703/0.05703, allocations: 10.66 MB / 18.73 MB, free: 1.32 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205.3 MB / 226.9 MB, free: 7.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008563/0.0008559, allocations: 90.42 kB / 277.3 MB, free: 5.426 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.698e-05, allocations: 4 kB / 333.5 MB, free: 28.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09313/0.09316, allocations: 50 MB / 383.5 MB, free: 10.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3272/0.4204, allocations: 77.31 MB / 460.8 MB, free: 7.371 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.4208, allocations: 88.62 kB / 460.9 MB, free: 7.324 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006443/0.4272, allocations: 1.515 MB / 462.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4273, allocations: 0 / 462.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.4273, allocations: 4 kB / 462.4 MB, free: 6 MB / 330.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.0006558/0.428, allocations: 461.2 kB / 462.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.428, allocations: 12.03 kB / 462.9 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.481e-05/0.4281, allocations: 19.77 kB / 462.9 MB, free: 5.465 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.4286, allocations: 237.3 kB / 463.2 MB, free: 5.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001025/0.4287, allocations: 55.41 kB / 463.2 MB, free: 5.137 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.4288, allocations: 7.984 kB / 463.2 MB, free: 5.129 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001049/0.4289, allocations: 20.38 kB / 463.2 MB, free: 5.117 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.429, allocations: 64.16 kB / 463.3 MB, free: 5.055 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4291, allocations: 0 / 463.3 MB, free: 5.055 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.4291, allocations: 3.953 kB / 463.3 MB, free: 5.051 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.4291, allocations: 4 kB / 463.3 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006058/0.4297, allocations: 293.3 kB / 463.6 MB, free: 4.746 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001351/0.4299, allocations: 49.19 kB / 463.6 MB, free: 4.699 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.688e-05/0.43, allocations: 16.64 kB / 463.7 MB, free: 4.684 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.161e-05/0.43, allocations: 3.984 kB / 463.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.4303, allocations: 105.2 kB / 463.8 MB, free: 4.574 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 2.264e-06/0.4303, allocations: 0 / 463.8 MB, free: 4.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003012/0.4306, allocations: 93.48 kB / 463.9 MB, free: 4.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.4307, allocations: 55.34 kB / 463.9 MB, free: 4.422 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.4308, allocations: 136.1 kB / 464 MB, free: 4.293 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.4309, allocations: 29.7 kB / 464.1 MB, free: 4.258 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.431, allocations: 106.7 kB / 464.2 MB, free: 4.164 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.281e-05/0.431, allocations: 26.98 kB / 464.2 MB, free: 4.141 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.085e-06/0.431, allocations: 0 / 464.2 MB, free: 4.141 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4312, allocations: 326 kB / 464.5 MB, free: 3.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.335e-05/0.4312, allocations: 10.94 kB / 464.5 MB, free: 3.812 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.363e-05/0.4313, allocations: 50.97 kB / 464.6 MB, free: 3.754 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.768e-05/0.4314, allocations: 27.11 kB / 464.6 MB, free: 3.734 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4315, allocations: 96 / 464.6 MB, free: 3.734 MB / 330.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002509/0.4317, allocations: 111.3 kB / 464.7 MB, free: 3.633 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4318, allocations: 4 kB / 464.7 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.4318, allocations: 8.156 kB / 464.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4318, allocations: 3.953 kB / 464.7 MB, free: 3.617 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.432, allocations: 21.17 kB / 464.8 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.432, allocations: 4.109 kB / 464.8 MB, free: 3.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.4321, allocations: 7.938 kB / 464.8 MB, free: 3.586 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.678e-05/0.4321, allocations: 4 kB / 464.8 MB, free: 3.582 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: R_DIGITAL.y:DISCRETE(fixed = false ) "output" type: Real Rhyst_DIGITAL.y:DISCRETE(fixed = false ) "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 () * 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.0001609/0.4323, allocations: 115.6 kB / 464.9 MB, free: 3.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.4324, allocations: 11.81 kB / 464.9 MB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.12e-05/0.4324, allocations: 16.05 kB / 464.9 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4324, allocations: 3.953 kB / 464.9 MB, free: 3.441 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.4325, allocations: 4 kB / 464.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.4325, allocations: 0 / 464.9 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.4327, allocations: 175.8 kB / 465.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.4327, allocations: 0 / 465.1 MB, free: 3.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.604e-05/0.4328, allocations: 15.92 kB / 465.1 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.4328, allocations: 0 / 465.1 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.4328, allocations: 7.25 kB / 465.1 MB, free: 3.223 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.4329, allocations: 4 kB / 465.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.4329, allocations: 0 / 465.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002436/0.4331, allocations: 122 kB / 465.2 MB, free: 3.094 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.68e-05/0.4332, allocations: 88.92 kB / 465.3 MB, free: 2.988 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.203e-05/0.4333, allocations: 4 kB / 465.3 MB, free: 2.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.4334, allocations: 11.36 kB / 465.3 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.006e-05/0.4335, allocations: 11.98 kB / 465.4 MB, free: 2.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.4335, allocations: 4 kB / 465.4 MB, free: 2.961 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.909e-05/0.4336, allocations: 104.8 kB / 465.5 MB, free: 2.867 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4336, allocations: 0 / 465.5 MB, free: 2.867 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003659/0.434, allocations: 19.89 kB / 465.5 MB, free: 2.848 MB / 330.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) * 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.0001359/0.4341, allocations: 102.5 kB / 465.6 MB, free: 2.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001887/0.4343, allocations: 54 kB / 465.6 MB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4343, allocations: 4.344 kB / 465.6 MB, free: 2.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.217e-05/0.4344, allocations: 38.61 kB / 465.7 MB, free: 2.668 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.4346, allocations: 10.69 kB / 465.7 MB, free: 2.664 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005708/0.4352, allocations: 131.3 kB / 465.8 MB, free: 2.52 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002966/0.4355, allocations: 0.7116 MB / 466.5 MB, free: 1.781 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001097/0.4356, allocations: 16.56 kB / 466.5 MB, free: 1.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.4357, allocations: 15.42 kB / 466.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4357, allocations: 0 / 466.6 MB, free: 1.75 MB / 330.7 MB Notification: Performance of Templates: time 0.004472/0.4402, allocations: 0.7788 MB / 467.3 MB, free: 0.9844 MB / 330.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)