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.009558/0.009558, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001801/0.001801, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.637/1.637, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0609/0.0609, allocations: 10.75 MB / 280.6 MB, free: 1.277 MB / 222.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.001555/0.001555, allocations: 73.53 kB / 390.8 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1417, allocations: 49.03 MB / 439.9 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003528/0.1453, allocations: 1.549 MB / 441.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.1467, allocations: 0.5542 MB / 442 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002391/0.147, allocations: 7.938 kB / 442 MB, free: 1.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.679e-05/0.1471, allocations: 11.81 kB / 442 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001776/0.1473, allocations: 11.81 kB / 442 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.1478, allocations: 75.83 kB / 442.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000288/0.1481, allocations: 91.75 kB / 442.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.1483, allocations: 29.11 kB / 442.2 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.1486, allocations: 47.77 kB / 442.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001447/0.1487, allocations: 39.73 kB / 442.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.1488, allocations: 4 kB / 442.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.259e-05/0.1488, allocations: 8 kB / 442.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.476e-05/0.1489, allocations: 23.89 kB / 442.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.258e-05/0.149, allocations: 39.73 kB / 442.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.1492, allocations: 87.58 kB / 442.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.1493, allocations: 0 / 442.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.1493, allocations: 4 kB / 442.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.01e-05/0.1493, allocations: 0 / 442.4 MB, free: 1.227 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.0008542/0.1502, allocations: 500 kB / 442.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.1502, allocations: 11.89 kB / 442.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.815e-05/0.1503, allocations: 12.89 kB / 442.9 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004057/0.1507, allocations: 248 kB / 443.2 MB, free: 376 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.757e-05/0.1508, allocations: 63.95 kB / 443.2 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.232e-05/0.1509, allocations: 12.31 kB / 443.3 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000231/0.1511, allocations: 81.64 kB / 443.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1511, allocations: 0 / 443.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.1511, allocations: 4 kB / 443.3 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1511, allocations: 4 kB / 443.3 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001466/0.1513, allocations: 31.97 kB / 443.4 MB, free: 160 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007038/0.152, allocations: 320.7 kB / 443.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002263/0.1523, allocations: 62.52 kB / 443.8 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.891e-05/0.1524, allocations: 32.91 kB / 443.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.1524, allocations: 0 / 443.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002939/0.1527, allocations: 103.3 kB / 443.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.382e-06/0.1527, allocations: 0 / 443.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004817/0.1532, allocations: 149.5 kB / 444 MB, free: 15.42 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.1533, allocations: 51.41 kB / 444.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1534, allocations: 150.2 kB / 444.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.1534, allocations: 25.7 kB / 444.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.515e-05/0.1535, allocations: 108.1 kB / 444.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.781e-05/0.1536, allocations: 23.95 kB / 444.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.159e-05/0.1536, allocations: 33.7 kB / 444.4 MB, free: 15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.1537, allocations: 322.8 kB / 444.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.1538, allocations: 32.03 kB / 444.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.646e-05/0.1539, allocations: 65.14 kB / 444.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/0.1541, allocations: 105 kB / 444.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.1541, allocations: 0 / 444.9 MB, free: 14.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002155/0.1544, allocations: 125.5 kB / 445.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1544, allocations: 8.156 kB / 445.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1544, allocations: 0 / 445.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1544, allocations: 7.984 kB / 445.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.616e-05/0.1545, allocations: 16.36 kB / 445.1 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.649e-06/0.1546, allocations: 7.938 kB / 445.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.366e-05/0.1546, allocations: 4 kB / 445.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.1546, allocations: 11.92 kB / 445.1 MB, free: 14.26 MB / 334.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.0002003/0.1549, allocations: 144.8 kB / 445.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.1549, allocations: 11.91 kB / 445.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.1549, allocations: 12.72 kB / 445.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1549, allocations: 0 / 445.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.155, allocations: 7.984 kB / 445.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.155, allocations: 0 / 445.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002096/0.1552, allocations: 201.5 kB / 445.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1552, allocations: 0 / 445.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.308e-05/0.1552, allocations: 11.98 kB / 445.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1553, allocations: 4 kB / 445.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1553, allocations: 4 kB / 445.5 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1553, allocations: 4 kB / 445.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1553, allocations: 4 kB / 445.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000283/0.1556, allocations: 140.9 kB / 445.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.1556, allocations: 89.02 kB / 445.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.1557, allocations: 8 kB / 445.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.046e-05/0.1558, allocations: 7.984 kB / 445.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.369e-05/0.1558, allocations: 15.98 kB / 445.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.1558, allocations: 0 / 445.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.121e-05/0.1559, allocations: 120 kB / 445.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1559, allocations: 0 / 445.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002085/0.1561, allocations: 20 kB / 445.9 MB, free: 13.37 MB / 334.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.0001254/0.1563, allocations: 107.2 kB / 446 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.1565, allocations: 75.84 kB / 446.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1566, allocations: 0 / 446.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.1567, allocations: 40.06 kB / 446.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.1569, allocations: 10.22 kB / 446.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007556/0.1577, allocations: 231.3 kB / 446.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.1583, allocations: 0.712 MB / 447.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.267e-05/0.1583, allocations: 16.64 kB / 447.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.768e-05/0.1584, allocations: 15.44 kB / 447.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1584, allocations: 0 / 447.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Templates: time 0.004776/0.1632, allocations: 0.9399 MB / 448 MB, free: 11.18 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)