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.001162/0.001162, allocations: 97.72 kB / 15.36 MB, free: 0.7305 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.001332/0.001332, allocations: 173 kB / 16.27 MB, free: 6.66 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.739/1.739, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05758/0.05758, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.0005418/0.0005418, allocations: 12.22 kB / 342.2 MB, free: 23.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1223, allocations: 50.01 MB / 392.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.00231/0.1246, allocations: 1.273 MB / 393.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.1257, allocations: 0.5387 MB / 394.1 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.1258, allocations: 7.938 kB / 394.1 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.451e-05/0.1259, allocations: 3.938 kB / 394.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.126, allocations: 11.86 kB / 394.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002443/0.1262, allocations: 59.88 kB / 394.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.1264, allocations: 87.77 kB / 394.2 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1266, allocations: 25.03 kB / 394.3 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.1267, allocations: 43.8 kB / 394.3 MB, free: 3.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.1e-05/0.1268, allocations: 35.77 kB / 394.3 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.171e-05/0.1268, allocations: 4 kB / 394.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.387e-05/0.1268, allocations: 4 kB / 394.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.225e-05/0.1269, allocations: 11.92 kB / 394.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.301e-05/0.1269, allocations: 69.44 kB / 394.4 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001563/0.1271, allocations: 83.89 kB / 394.5 MB, free: 3.129 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1271, allocations: 4 kB / 394.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1271, allocations: 0 / 394.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.788e-06/0.1271, allocations: 0 / 394.5 MB, free: 3.125 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.0007847/0.1279, allocations: 475.6 kB / 395 MB, free: 2.598 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.422e-05/0.128, allocations: 12.03 kB / 395 MB, free: 2.586 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.354e-05/0.1281, allocations: 16.78 kB / 395 MB, free: 2.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003048/0.1284, allocations: 236.5 kB / 395.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.1285, allocations: 59.97 kB / 395.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.1285, allocations: 12.36 kB / 395.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.1288, allocations: 73.77 kB / 395.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1288, allocations: 0 / 395.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.1288, allocations: 8 kB / 395.4 MB, free: 2.133 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.1288, allocations: 4 kB / 395.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000151/0.129, allocations: 35.97 kB / 395.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.1296, allocations: 320.6 kB / 395.7 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00021/0.1298, allocations: 70.53 kB / 395.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.67e-05/0.1299, allocations: 32.94 kB / 395.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1299, allocations: 3.938 kB / 395.8 MB, free: 1.613 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002842/0.1302, allocations: 111.3 kB / 395.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.1302, allocations: 0 / 395.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004193/0.1306, allocations: 145.4 kB / 396.1 MB, free: 1.344 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.1307, allocations: 59.39 kB / 396.1 MB, free: 1.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.1308, allocations: 158.1 kB / 396.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.1309, allocations: 29.69 kB / 396.3 MB, free: 1.074 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.131, allocations: 100.2 kB / 396.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.131, allocations: 35.72 kB / 396.5 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.131, allocations: 17.72 kB / 396.5 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.1312, allocations: 330.8 kB / 396.8 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.087e-05/0.1313, allocations: 24 kB / 396.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.128e-05/0.1314, allocations: 69.06 kB / 396.9 MB, free: 484 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.1316, allocations: 101.1 kB / 397 MB, free: 364 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1316, allocations: 4 kB / 397 MB, free: 360 kB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002476/0.1318, allocations: 133.5 kB / 397.1 MB, free: 220 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1319, allocations: 8 kB / 397.1 MB, free: 212 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1319, allocations: 4 kB / 397.1 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.1319, allocations: 0 / 397.1 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.286e-05/0.132, allocations: 19.92 kB / 397.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.132, allocations: 4 kB / 397.2 MB, free: 184 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.125e-05/0.1321, allocations: 4 kB / 397.2 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.1321, allocations: 7.938 kB / 397.2 MB, free: 172 kB / 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.0001967/0.1323, allocations: 129.8 kB / 397.3 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.1323, allocations: 15.75 kB / 397.3 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.985e-05/0.1324, allocations: 17.09 kB / 397.3 MB, free: 0 / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1324, allocations: 0 / 397.3 MB, free: 0 / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/0.1324, allocations: 4.047 kB / 397.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1324, allocations: 0 / 397.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001783/0.1326, allocations: 209.5 kB / 397.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1326, allocations: 0 / 397.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.935e-05/0.1327, allocations: 4 kB / 397.5 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1327, allocations: 8 kB / 397.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.1327, allocations: 3.984 kB / 397.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1327, allocations: 0 / 397.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1327, allocations: 0 / 397.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.133, allocations: 144.9 kB / 397.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.18e-05/0.1331, allocations: 96.86 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.1331, allocations: 8 kB / 397.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.927e-05/0.1332, allocations: 4 kB / 397.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.267e-05/0.1332, allocations: 15.97 kB / 397.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.1333, allocations: 7.938 kB / 397.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.213e-05/0.1333, allocations: 112.1 kB / 397.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1334, allocations: 4 kB / 397.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002065/0.1336, allocations: 16 kB / 398 MB, free: 15.29 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.0001252/0.1337, allocations: 111.2 kB / 398.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.1339, allocations: 71.91 kB / 398.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.134, allocations: 4 kB / 398.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.1341, allocations: 39.92 kB / 398.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001771/0.1343, allocations: 11.98 kB / 398.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005768/0.1349, allocations: 258 kB / 398.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.1352, allocations: 0.7043 MB / 399.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.22e-05/0.1353, allocations: 20.42 kB / 399.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/0.1353, allocations: 11.44 kB / 399.2 MB, free: 14 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1353, allocations: 288 / 399.2 MB, free: 14 MB / 302.1 MB Notification: Performance of Templates: time 0.003768/0.1391, allocations: 0.8229 MB / 400 MB, free: 13.18 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: