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.001196/0.001196, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001374/0.001374, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05307/0.05307, allocations: 10.74 MB / 281.1 MB, free: 10.55 MB / 238.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.000482/0.0004821, allocations: 16 kB / 341.6 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07709/0.07758, allocations: 50.01 MB / 391.6 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.001585/0.07921, allocations: 1.246 MB / 392.8 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007936/0.08003, allocations: 0.5235 MB / 393.4 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.125e-05/0.08015, allocations: 3.938 kB / 393.4 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.882e-05/0.08018, allocations: 7.922 kB / 393.4 MB, free: 3.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.572e-05/0.08026, allocations: 19.91 kB / 393.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.08048, allocations: 55.86 kB / 393.5 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001341/0.08063, allocations: 55.88 kB / 393.5 MB, free: 3.855 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.857e-05/0.08073, allocations: 17.11 kB / 393.5 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.08085, allocations: 43.78 kB / 393.6 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.561e-05/0.08092, allocations: 31.83 kB / 393.6 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.08094, allocations: 4 kB / 393.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.27e-05/0.08096, allocations: 4 kB / 393.6 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.08099, allocations: 15.92 kB / 393.6 MB, free: 3.742 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.762e-05/0.08104, allocations: 45.64 kB / 393.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.792e-05/0.08112, allocations: 56.11 kB / 393.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.08113, allocations: 0 / 393.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08113, allocations: 0 / 393.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.08115, allocations: 3.938 kB / 393.7 MB, free: 3.633 MB / 286.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.0005628/0.08171, allocations: 475.9 kB / 394.2 MB, free: 3.102 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.08175, allocations: 12.03 kB / 394.2 MB, free: 3.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.141e-05/0.08181, allocations: 15.86 kB / 394.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/0.08206, allocations: 223.6 kB / 394.4 MB, free: 2.816 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.543e-05/0.08215, allocations: 67.34 kB / 394.5 MB, free: 2.738 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.08217, allocations: 4 kB / 394.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.08238, allocations: 77.62 kB / 394.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.0824, allocations: 0 / 394.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.08242, allocations: 0 / 394.6 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.08243, allocations: 11.95 kB / 394.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001434/0.08258, allocations: 39.97 kB / 394.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.08305, allocations: 316.6 kB / 394.9 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001969/0.08326, allocations: 70.55 kB / 395 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.08328, allocations: 0 / 395 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.08353, allocations: 111.3 kB / 395.1 MB, free: 2.043 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 2.865e-06/0.08355, allocations: 7.984 kB / 395.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003831/0.08394, allocations: 141.4 kB / 395.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.08399, allocations: 55.41 kB / 395.3 MB, free: 1.824 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.0841, allocations: 154.1 kB / 395.5 MB, free: 1.664 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.08413, allocations: 25.7 kB / 395.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.065e-05/0.08418, allocations: 112.1 kB / 395.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.623e-05/0.08423, allocations: 27.64 kB / 395.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.879e-06/0.08424, allocations: 0 / 395.6 MB, free: 1.492 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.08434, allocations: 326.9 kB / 396 MB, free: 1.164 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.443e-05/0.08441, allocations: 23.92 kB / 396 MB, free: 1.141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.378e-05/0.0845, allocations: 69.08 kB / 396 MB, free: 1.055 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.589e-05/0.08459, allocations: 31.92 kB / 396.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.0846, allocations: 384 / 396.1 MB, free: 1.023 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002203/0.08482, allocations: 133.4 kB / 396.2 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.08485, allocations: 11.95 kB / 396.2 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.08486, allocations: 3.984 kB / 396.2 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.08488, allocations: 7.938 kB / 396.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.116e-05/0.08496, allocations: 8 kB / 396.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.08498, allocations: 7.938 kB / 396.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.439e-05/0.08505, allocations: 7.984 kB / 396.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.08507, allocations: 8 kB / 396.3 MB, free: 0.832 MB / 286.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,$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.0001263/0.0852, allocations: 122 kB / 396.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.921e-05/0.08523, allocations: 15.81 kB / 396.4 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.584e-05/0.08527, allocations: 20.72 kB / 396.4 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.08528, allocations: 8 kB / 396.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.08528, allocations: 0 / 396.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.08529, allocations: 0 / 396.4 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001477/0.08544, allocations: 197.8 kB / 396.6 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.08545, allocations: 4 kB / 396.6 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.441e-05/0.08551, allocations: 15.92 kB / 396.6 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.08552, allocations: 0 / 396.6 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.08554, allocations: 0 / 396.6 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.08555, allocations: 3.953 kB / 396.6 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.08555, allocations: 4 kB / 396.6 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000265/0.08582, allocations: 148.9 kB / 396.8 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.08587, allocations: 88.86 kB / 396.9 MB, free: 124 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.579e-05/0.0859, allocations: 7.984 kB / 396.9 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/0.08596, allocations: 8 kB / 396.9 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.08601, allocations: 11.94 kB / 396.9 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.08603, allocations: 7.984 kB / 396.9 MB, free: 88 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.059e-05/0.08612, allocations: 108.1 kB / 397 MB, free: 15.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.272e-06/0.08612, allocations: 0 / 397 MB, free: 15.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001984/0.08633, allocations: 27.94 kB / 397 MB, free: 15.95 MB / 302.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 (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.108e-05/0.08643, allocations: 99.25 kB / 397.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000212/0.08665, allocations: 79.92 kB / 397.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.08666, allocations: 7.938 kB / 397.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001023/0.08677, allocations: 36.3 kB / 397.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001033/0.08688, allocations: 8 kB / 397.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004933/0.08738, allocations: 253.6 kB / 397.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.08763, allocations: 0.7043 MB / 398.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.255e-05/0.0877, allocations: 20.42 kB / 398.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.08774, allocations: 15.44 kB / 398.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.08775, allocations: 0 / 398.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of Templates: time 0.002734/0.09049, allocations: 0.7926 MB / 399 MB, free: 13.88 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: