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.0007886/0.0007886, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008408/0.0008409, allocations: 172.7 kB / 15.95 MB, free: 208 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.609/1.609, 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.05566/0.05566, allocations: 10.74 MB / 281.1 MB, free: 10.56 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.000546/0.000546, allocations: 20 kB / 341.6 MB, free: 23.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1027, allocations: 50.01 MB / 391.6 MB, free: 5.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.001682/0.1044, allocations: 1.246 MB / 392.9 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008927/0.1053, allocations: 0.5234 MB / 393.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.128e-05/0.1054, allocations: 7.938 kB / 393.4 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.083e-05/0.1054, allocations: 3.938 kB / 393.4 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.1056, allocations: 19.86 kB / 393.4 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.1058, allocations: 43.94 kB / 393.5 MB, free: 3.891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.106, allocations: 91.69 kB / 393.6 MB, free: 3.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.1061, allocations: 17.11 kB / 393.6 MB, free: 3.785 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1062, allocations: 39.78 kB / 393.6 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.935e-05/0.1063, allocations: 39.72 kB / 393.7 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.826e-05/0.1063, allocations: 4 kB / 393.7 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.816e-05/0.1064, allocations: 4 kB / 393.7 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.698e-05/0.1064, allocations: 15.92 kB / 393.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.347e-05/0.1065, allocations: 41.62 kB / 393.7 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.671e-05/0.1066, allocations: 56.12 kB / 393.8 MB, free: 3.582 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1066, allocations: 4 kB / 393.8 MB, free: 3.578 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1066, allocations: 3.938 kB / 393.8 MB, free: 3.574 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.1066, allocations: 0 / 393.8 MB, free: 3.574 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.0005995/0.1072, allocations: 479.4 kB / 394.3 MB, free: 3.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1072, allocations: 12.03 kB / 394.3 MB, free: 3.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.671e-05/0.1073, allocations: 15.84 kB / 394.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/0.1075, allocations: 223.4 kB / 394.5 MB, free: 2.758 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.474e-05/0.1076, allocations: 63.39 kB / 394.6 MB, free: 2.684 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.669e-05/0.1076, allocations: 4 kB / 394.6 MB, free: 2.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.1078, allocations: 81.58 kB / 394.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.1079, allocations: 4 kB / 394.7 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.1079, allocations: 0 / 394.7 MB, free: 2.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1079, allocations: 3.953 kB / 394.7 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.108, allocations: 39.97 kB / 394.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000466/0.1085, allocations: 320.7 kB / 395 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.1087, allocations: 62.5 kB / 395.1 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.794e-05/0.1088, allocations: 29.09 kB / 395.1 MB, free: 2.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.1088, allocations: 11.92 kB / 395.1 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002563/0.1091, allocations: 107.4 kB / 395.2 MB, free: 1.953 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.1091, allocations: 3.938 kB / 395.2 MB, free: 1.949 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003843/0.1095, allocations: 145.4 kB / 395.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.1095, allocations: 59.41 kB / 395.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.1097, allocations: 158.5 kB / 395.6 MB, free: 1.566 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.23e-05/0.1097, allocations: 33.7 kB / 395.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.34e-05/0.1098, allocations: 100.1 kB / 395.7 MB, free: 1.426 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.046e-05/0.1098, allocations: 23.66 kB / 395.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-06/0.1098, allocations: 7.938 kB / 395.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.1099, allocations: 322.8 kB / 396.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.38e-05/0.11, allocations: 23.98 kB / 396.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.306e-05/0.1101, allocations: 69.12 kB / 396.1 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.022e-05/0.1102, allocations: 31.94 kB / 396.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1102, allocations: 0 / 396.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002201/0.1104, allocations: 141.3 kB / 396.3 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1104, allocations: 4 kB / 396.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1104, allocations: 0 / 396.3 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.1105, allocations: 4 kB / 396.3 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.637e-05/0.1106, allocations: 20.14 kB / 396.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.1106, allocations: 0 / 396.3 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.928e-05/0.1106, allocations: 8 kB / 396.3 MB, free: 0.75 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.1106, allocations: 4 kB / 396.4 MB, free: 0.7461 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.0001429/0.1108, allocations: 129.8 kB / 396.5 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.951e-05/0.1108, allocations: 23.75 kB / 396.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.499e-05/0.1109, allocations: 16.72 kB / 396.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.1109, allocations: 0 / 396.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1109, allocations: 0 / 396.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1109, allocations: 0 / 396.5 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.1111, allocations: 201.6 kB / 396.7 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1111, allocations: 0 / 396.7 MB, free: 332 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.144e-05/0.1111, allocations: 8 kB / 396.7 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1111, allocations: 0 / 396.7 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.629e-05/0.1112, allocations: 11.94 kB / 396.7 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.1112, allocations: 0 / 396.7 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1112, allocations: 7.938 kB / 396.7 MB, free: 304 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.1114, allocations: 144.9 kB / 396.9 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.323e-05/0.1115, allocations: 92.86 kB / 397 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1115, allocations: 4 kB / 397 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.585e-05/0.1116, allocations: 7.953 kB / 397 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.22e-05/0.1117, allocations: 16.06 kB / 397 MB, free: 0 / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.1117, allocations: 8.047 kB / 397 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.1118, allocations: 120.1 kB / 397.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1118, allocations: 0 / 397.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000215/0.112, allocations: 12 kB / 397.1 MB, free: 15.86 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 0.0001138/0.1121, allocations: 107.4 kB / 397.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002254/0.1123, allocations: 79.97 kB / 397.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1123, allocations: 4 kB / 397.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1125, allocations: 35.92 kB / 397.4 MB, free: 15.62 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.1126, allocations: 11.98 kB / 397.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005043/0.1131, allocations: 246 kB / 397.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/0.1134, allocations: 0.7004 MB / 398.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.489e-05/0.1135, allocations: 20.42 kB / 398.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.626e-05/0.1135, allocations: 19.38 kB / 398.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1135, allocations: 4 kB / 398.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Templates: time 0.00304/0.1166, allocations: 0.7914 MB / 399.1 MB, free: 13.79 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: