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.008224/0.008224, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001527/0.001527, allocations: 186.9 kB / 16.67 MB, free: 5.969 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.679/1.679, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05592/0.05592, allocations: 10.74 MB / 280.6 MB, free: 10.41 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.001364/0.001364, allocations: 63.91 kB / 390.8 MB, free: 5.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.425/0.4264, allocations: 49.03 MB / 439.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003215/0.4297, allocations: 1.549 MB / 441.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.4309, allocations: 0.5529 MB / 442 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.4311, allocations: 12 kB / 442 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.209e-05/0.4311, allocations: 8.625 kB / 442 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.4312, allocations: 14.55 kB / 442 MB, free: 3.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.4316, allocations: 63.7 kB / 442.1 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.4319, allocations: 96.33 kB / 442.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.4321, allocations: 33.09 kB / 442.2 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.4322, allocations: 50.08 kB / 442.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.4323, allocations: 41.5 kB / 442.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.41e-05/0.4324, allocations: 5.625 kB / 442.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.403e-05/0.4324, allocations: 5.469 kB / 442.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.93e-05/0.4325, allocations: 17.66 kB / 442.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.446e-05/0.4326, allocations: 44.62 kB / 442.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.4328, allocations: 89 kB / 442.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.4328, allocations: 0.7031 kB / 442.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4328, allocations: 1.031 kB / 442.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.4328, allocations: 0 / 442.4 MB, free: 3.629 MB / 318.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.000719/0.4336, allocations: 497.2 kB / 442.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.4336, allocations: 17.11 kB / 442.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.623e-05/0.4337, allocations: 10.77 kB / 442.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.4341, allocations: 255.7 kB / 443.2 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.464e-05/0.4342, allocations: 57.52 kB / 443.3 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.4342, allocations: 13.83 kB / 443.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.4344, allocations: 85.09 kB / 443.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4345, allocations: 3.938 kB / 443.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/0.4345, allocations: 4.609 kB / 443.4 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.4345, allocations: 1.375 kB / 443.4 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.4347, allocations: 34.62 kB / 443.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.4352, allocations: 319.5 kB / 443.7 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.4354, allocations: 62.44 kB / 443.8 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.217e-05/0.4355, allocations: 33.27 kB / 443.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.4356, allocations: 0.5625 kB / 443.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000293/0.4358, allocations: 104.8 kB / 443.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.4359, allocations: 0 / 443.9 MB, free: 2.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005231/0.4364, allocations: 139.2 kB / 444 MB, free: 2.266 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.4364, allocations: 55 kB / 444.1 MB, free: 2.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.4366, allocations: 147.8 kB / 444.2 MB, free: 2.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.4366, allocations: 28.45 kB / 444.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.87e-05/0.4367, allocations: 107.5 kB / 444.4 MB, free: 1.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.662e-05/0.4367, allocations: 30.75 kB / 444.4 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.113e-05/0.4368, allocations: 28.36 kB / 444.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.76e-05/0.4369, allocations: 326.1 kB / 444.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.316e-05/0.437, allocations: 32.89 kB / 444.8 MB, free: 1.574 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.4371, allocations: 59.23 kB / 444.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.4373, allocations: 99.77 kB / 444.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4373, allocations: 0.9688 kB / 444.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002833/0.4376, allocations: 133.2 kB / 445.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4377, allocations: 5.562 kB / 445.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.4377, allocations: 2.359 kB / 445.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.913e-05/0.4377, allocations: 2.656 kB / 445.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.4378, allocations: 16.94 kB / 445.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.4379, allocations: 1.688 kB / 445.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.741e-05/0.4379, allocations: 9.641 kB / 445.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.438, allocations: 12.78 kB / 445.1 MB, free: 1.355 MB / 318.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.0001973/0.4382, allocations: 135 kB / 445.2 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.4382, allocations: 15.41 kB / 445.3 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.814e-05/0.4383, allocations: 13.08 kB / 445.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4383, allocations: 1.25 kB / 445.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.4383, allocations: 4 kB / 445.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.4383, allocations: 0.7969 kB / 445.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.4385, allocations: 208.3 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4385, allocations: 0 / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.654e-05/0.4386, allocations: 7.828 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.4386, allocations: 1.312 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.4386, allocations: 2.938 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.4387, allocations: 0.8438 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.4387, allocations: 1.281 kB / 445.5 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.439, allocations: 144.1 kB / 445.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.243e-05/0.4391, allocations: 88.72 kB / 445.7 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.4391, allocations: 7.719 kB / 445.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.97e-05/0.4392, allocations: 4.156 kB / 445.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.143e-05/0.4393, allocations: 18.58 kB / 445.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.4393, allocations: 3.891 kB / 445.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.4394, allocations: 118.6 kB / 445.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.523e-06/0.4394, allocations: 1.406 kB / 445.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002348/0.4397, allocations: 24.25 kB / 445.9 MB, free: 0.6758 MB / 318.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.0001465/0.4398, allocations: 111 kB / 446 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003324/0.4402, allocations: 71.14 kB / 446.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4402, allocations: 1.219 kB / 446.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001438/0.4403, allocations: 42.48 kB / 446.1 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001974/0.4405, allocations: 9.219 kB / 446.1 MB, free: 0.543 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.4412, allocations: 232.8 kB / 446.4 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.4417, allocations: 0.7007 MB / 447.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.761e-05/0.4418, allocations: 14.56 kB / 447.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.597e-05/0.4418, allocations: 16.77 kB / 447.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4418, allocations: 0 / 447.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Templates: time 0.004721/0.4466, allocations: 0.9431 MB / 448 MB, free: 15.55 MB / 334.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)