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.001312/0.001312, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.465/1.465, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05516/0.05516, allocations: 10.74 MB / 280.5 MB, free: 10.54 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.001664/0.001664, allocations: 64.12 kB / 340.5 MB, free: 23.37 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1057, allocations: 49.02 MB / 389.6 MB, free: 6.277 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003782/0.1095, allocations: 1.562 MB / 391.1 MB, free: 4.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009639/0.1105, allocations: 0.5464 MB / 391.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1106, allocations: 7.938 kB / 391.7 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.1106, allocations: 7.875 kB / 391.7 MB, free: 4.129 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.829e-05/0.1108, allocations: 19.81 kB / 391.7 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.111, allocations: 67.84 kB / 391.8 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.1112, allocations: 103.7 kB / 391.9 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1113, allocations: 17.11 kB / 391.9 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.1115, allocations: 55.78 kB / 391.9 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.636e-05/0.1115, allocations: 31.78 kB / 392 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.1116, allocations: 8 kB / 392 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.721e-05/0.1116, allocations: 4 kB / 392 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.455e-05/0.1116, allocations: 23.91 kB / 392 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.1117, allocations: 47.72 kB / 392.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001291/0.1118, allocations: 79.92 kB / 392.1 MB, free: 3.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.1118, allocations: 0 / 392.1 MB, free: 3.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1119, allocations: 0 / 392.1 MB, free: 3.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1119, allocations: 0 / 392.1 MB, free: 3.68 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.0006029/0.1125, allocations: 496 kB / 392.6 MB, free: 3.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1125, allocations: 11.89 kB / 392.6 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.866e-05/0.1126, allocations: 12.84 kB / 392.6 MB, free: 3.105 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.1128, allocations: 232.6 kB / 392.9 MB, free: 2.84 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.595e-05/0.1129, allocations: 63.91 kB / 392.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.1129, allocations: 8.312 kB / 392.9 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.1132, allocations: 77.77 kB / 393 MB, free: 2.676 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1132, allocations: 4 kB / 393 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.1132, allocations: 7.984 kB / 393 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1132, allocations: 0 / 393 MB, free: 2.664 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001331/0.1134, allocations: 31.98 kB / 393.1 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004534/0.1138, allocations: 320.6 kB / 393.4 MB, free: 2.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.114, allocations: 66.55 kB / 393.4 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.414e-05/0.1141, allocations: 25.09 kB / 393.5 MB, free: 2.168 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.546e-05/0.1142, allocations: 7.922 kB / 393.5 MB, free: 2.16 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.1145, allocations: 107.3 kB / 393.6 MB, free: 2.043 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.724e-06/0.1145, allocations: 4 kB / 393.6 MB, free: 2.039 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004081/0.1149, allocations: 137.4 kB / 393.7 MB, free: 1.898 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.1149, allocations: 55.41 kB / 393.8 MB, free: 1.832 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.1151, allocations: 154.1 kB / 393.9 MB, free: 1.672 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.1151, allocations: 33.7 kB / 393.9 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.1152, allocations: 100.1 kB / 394 MB, free: 1.531 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.1152, allocations: 27.64 kB / 394.1 MB, free: 1.504 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.292e-05/0.1152, allocations: 29.72 kB / 394.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1154, allocations: 330.9 kB / 394.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-05/0.1154, allocations: 23.92 kB / 394.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.218e-05/0.1155, allocations: 65.12 kB / 394.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.1157, allocations: 109 kB / 394.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1158, allocations: 4 kB / 394.6 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002313/0.116, allocations: 129.3 kB / 394.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.116, allocations: 4 kB / 394.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.116, allocations: 4 kB / 394.8 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.116, allocations: 0 / 394.8 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.556e-05/0.1161, allocations: 12 kB / 394.8 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.1161, allocations: 7.922 kB / 394.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.483e-05/0.1162, allocations: 8 kB / 394.8 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.1162, allocations: 8.094 kB / 394.8 MB, free: 0.7266 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,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.0001474/0.1164, allocations: 129.8 kB / 394.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.899e-05/0.1164, allocations: 15.81 kB / 394.9 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.714e-05/0.1165, allocations: 21.06 kB / 395 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1165, allocations: 0 / 395 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1165, allocations: 0 / 395 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1165, allocations: 0 / 395 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001617/0.1167, allocations: 209.5 kB / 395.2 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1167, allocations: 4 kB / 395.2 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.397e-05/0.1167, allocations: 11.94 kB / 395.2 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1168, allocations: 0 / 395.2 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1168, allocations: 3.984 kB / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1168, allocations: 0 / 395.2 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.1168, allocations: 4 kB / 395.2 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003093/0.1171, allocations: 144.9 kB / 395.3 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/0.1172, allocations: 96.84 kB / 395.4 MB, free: 4 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.1172, allocations: 4.062 kB / 395.4 MB, free: 0 / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.632e-05/0.1173, allocations: 12.08 kB / 395.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.1174, allocations: 7.984 kB / 395.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.1174, allocations: 7.984 kB / 395.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.561e-05/0.1175, allocations: 120.1 kB / 395.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.1175, allocations: 0 / 395.6 MB, free: 15.85 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002151/0.1177, allocations: 15.94 kB / 395.6 MB, free: 15.84 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001075/0.1178, allocations: 103.2 kB / 395.7 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002832/0.1181, allocations: 87.83 kB / 395.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1181, allocations: 0 / 395.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001216/0.1183, allocations: 39.92 kB / 395.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001782/0.1184, allocations: 10.81 kB / 395.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006252/0.1191, allocations: 220.1 kB / 396 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.1194, allocations: 0.7078 MB / 396.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.544e-05/0.1194, allocations: 20.42 kB / 396.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.186e-05/0.1195, allocations: 19.42 kB / 396.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1195, allocations: 288 / 396.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Templates: time 0.003353/0.1229, allocations: 0.9326 MB / 397.7 MB, free: 13.64 MB / 302.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 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)