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.001373/0.001373, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001868/0.001868, allocations: 191.7 kB / 16.25 MB, free: 6.586 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.508/1.508, allocations: 205.1 MB / 222.1 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05512/0.05512, allocations: 10.74 MB / 280.2 MB, free: 10.65 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.001322/0.001322, allocations: 63.91 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1015, allocations: 49.03 MB / 389.1 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.0027/0.1043, allocations: 1.619 MB / 390.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008408/0.1051, allocations: 0.5503 MB / 391.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.127e-05/0.1052, allocations: 7.938 kB / 391.2 MB, free: 4.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.036e-05/0.1052, allocations: 3.938 kB / 391.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.553e-05/0.1053, allocations: 11.88 kB / 391.3 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.1056, allocations: 55.92 kB / 391.3 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.1057, allocations: 99.69 kB / 391.4 MB, free: 4.227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.677e-05/0.1058, allocations: 17.12 kB / 391.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1059, allocations: 51.77 kB / 391.5 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.056e-05/0.106, allocations: 39.78 kB / 391.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.106, allocations: 8 kB / 391.5 MB, free: 4.113 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.224e-05/0.106, allocations: 7.938 kB / 391.5 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.551e-05/0.1061, allocations: 19.92 kB / 391.5 MB, free: 4.086 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.459e-05/0.1061, allocations: 47.72 kB / 391.6 MB, free: 4.039 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001409/0.1063, allocations: 87.92 kB / 391.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1063, allocations: 0 / 391.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1063, allocations: 0 / 391.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1063, allocations: 0 / 391.7 MB, free: 3.953 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.0006857/0.107, allocations: 0.4918 MB / 392.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.107, allocations: 11.89 kB / 392.2 MB, free: 3.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.142e-05/0.1071, allocations: 12.84 kB / 392.2 MB, free: 3.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002517/0.1073, allocations: 224.6 kB / 392.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.242e-05/0.1074, allocations: 63.91 kB / 392.5 MB, free: 3.043 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1074, allocations: 8.375 kB / 392.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.1077, allocations: 77.75 kB / 392.6 MB, free: 2.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.1077, allocations: 7.922 kB / 392.6 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.1077, allocations: 4 kB / 392.6 MB, free: 2.941 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1077, allocations: 4 kB / 392.6 MB, free: 2.938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.1079, allocations: 35.97 kB / 392.6 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004941/0.1084, allocations: 320.6 kB / 392.9 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.1086, allocations: 66.47 kB / 393 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.411e-05/0.1087, allocations: 32.94 kB / 393 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1087, allocations: 0 / 393 MB, free: 2.43 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/0.1089, allocations: 99.33 kB / 393.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1089, allocations: 0 / 393.1 MB, free: 2.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003903/0.1093, allocations: 145.4 kB / 393.3 MB, free: 2.172 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.127e-05/0.1094, allocations: 55.39 kB / 393.3 MB, free: 2.105 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.1095, allocations: 158.1 kB / 393.5 MB, free: 1.941 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.1095, allocations: 29.69 kB / 393.5 MB, free: 1.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.186e-05/0.1096, allocations: 104.1 kB / 393.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.1097, allocations: 27.64 kB / 393.6 MB, free: 1.773 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-05/0.1097, allocations: 33.81 kB / 393.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.1098, allocations: 330.7 kB / 394 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.683e-05/0.1099, allocations: 27.98 kB / 394 MB, free: 1.375 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.623e-05/0.11, allocations: 61.14 kB / 394.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001747/0.1102, allocations: 97.08 kB / 394.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.1102, allocations: 0 / 394.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002291/0.1104, allocations: 141.4 kB / 394.3 MB, free: 1.039 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.1105, allocations: 4 kB / 394.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1105, allocations: 4 kB / 394.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.1105, allocations: 0 / 394.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.558e-05/0.1106, allocations: 15.98 kB / 394.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.1106, allocations: 0 / 394.3 MB, free: 1.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.1106, allocations: 4 kB / 394.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.1107, allocations: 7.938 kB / 394.3 MB, free: 1.004 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.0001403/0.1108, allocations: 134.1 kB / 394.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.1108, allocations: 15.81 kB / 394.5 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.772e-05/0.1109, allocations: 8.719 kB / 394.5 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1109, allocations: 7.938 kB / 394.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1109, allocations: 0 / 394.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.1109, allocations: 0 / 394.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000254/0.1112, allocations: 209.7 kB / 394.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.1112, allocations: 0 / 394.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.93e-05/0.1112, allocations: 4 kB / 394.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1112, allocations: 8 kB / 394.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1113, allocations: 3.984 kB / 394.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1113, allocations: 0 / 394.7 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1113, allocations: 4.062 kB / 394.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.1116, allocations: 140.9 kB / 394.9 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.037e-05/0.1116, allocations: 92.86 kB / 394.9 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1116, allocations: 8 kB / 395 MB, free: 292 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.1117, allocations: 11.98 kB / 395 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.1118, allocations: 11.98 kB / 395 MB, free: 268 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.1118, allocations: 4 kB / 395 MB, free: 264 kB / 286.1 MB Notification: Performance of sorting global known variables: time 7.4e-05/0.1119, allocations: 112.1 kB / 395.1 MB, free: 152 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1119, allocations: 7.875 kB / 395.1 MB, free: 144 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002032/0.1121, allocations: 20 kB / 395.1 MB, free: 124 kB / 286.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 9.606e-05/0.1122, allocations: 103.2 kB / 395.2 MB, free: 8 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002545/0.1124, allocations: 83.92 kB / 395.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1124, allocations: 0 / 395.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1126, allocations: 27.98 kB / 395.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.1127, allocations: 15.98 kB / 395.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005101/0.1132, allocations: 252 kB / 395.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/0.1135, allocations: 0.7081 MB / 396.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.746e-05/0.1136, allocations: 20.41 kB / 396.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.683e-05/0.1136, allocations: 15.44 kB / 396.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1136, allocations: 7.938 kB / 396.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of Templates: time 0.003205/0.1168, allocations: 0.8601 MB / 397.2 MB, free: 13.97 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)