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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001871/0.001871, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.464/1.464, allocations: 205.1 MB / 222.1 MB, free: 4.711 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05779/0.05779, allocations: 10.75 MB / 280.2 MB, free: 10.67 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.001344/0.001344, allocations: 63.91 kB / 340.1 MB, free: 23.56 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1191, allocations: 49.01 MB / 389.2 MB, free: 6.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Logic.Examples.TestRelay): time 0.003547/0.1227, allocations: 1.619 MB / 390.8 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1238, allocations: 0.5386 MB / 391.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.746e-05/0.1239, allocations: 7.938 kB / 391.3 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.532e-05/0.124, allocations: 7.922 kB / 391.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.675e-05/0.124, allocations: 15.86 kB / 391.3 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.1243, allocations: 59.94 kB / 391.4 MB, free: 4.215 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.1245, allocations: 103.7 kB / 391.5 MB, free: 4.113 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.1247, allocations: 13.12 kB / 391.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1248, allocations: 51.77 kB / 391.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.1249, allocations: 35.78 kB / 391.6 MB, free: 4.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.1249, allocations: 12 kB / 391.6 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.82e-05/0.1249, allocations: 4 kB / 391.6 MB, free: 4 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.195e-05/0.1249, allocations: 23.91 kB / 391.6 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.395e-05/0.125, allocations: 43.73 kB / 391.7 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001403/0.1252, allocations: 83.91 kB / 391.8 MB, free: 3.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1252, allocations: 7.938 kB / 391.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1252, allocations: 0 / 391.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1252, allocations: 0 / 391.8 MB, free: 3.844 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.0006755/0.1259, allocations: 492 kB / 392.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.1259, allocations: 15.89 kB / 392.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.794e-05/0.126, allocations: 34.75 kB / 392.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.608e-05/0.126, allocations: 20.69 kB / 392.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002648/0.1263, allocations: 228.7 kB / 392.6 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.017e-05/0.1264, allocations: 59.95 kB / 392.6 MB, free: 2.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.798e-05/0.1264, allocations: 8.375 kB / 392.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.1266, allocations: 73.58 kB / 392.7 MB, free: 2.801 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1267, allocations: 3.938 kB / 392.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.781e-05/0.1267, allocations: 8 kB / 392.7 MB, free: 2.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1267, allocations: 7.938 kB / 392.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.1268, allocations: 31.97 kB / 392.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005188/0.1274, allocations: 316.7 kB / 393 MB, free: 2.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.1276, allocations: 66.48 kB / 393.1 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.744e-05/0.1277, allocations: 32.94 kB / 393.1 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.1277, allocations: 0 / 393.1 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003015/0.128, allocations: 103.3 kB / 393.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.734e-06/0.128, allocations: 0 / 393.2 MB, free: 2.168 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004407/0.1285, allocations: 145.4 kB / 393.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.1285, allocations: 55.41 kB / 393.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.1287, allocations: 158.1 kB / 393.6 MB, free: 1.789 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.1287, allocations: 29.7 kB / 393.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.227e-05/0.1288, allocations: 104.2 kB / 393.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.1288, allocations: 31.73 kB / 393.8 MB, free: 1.617 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.1289, allocations: 29.7 kB / 393.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.129, allocations: 330.8 kB / 394.1 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.952e-05/0.1291, allocations: 23.98 kB / 394.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.972e-05/0.1292, allocations: 57.14 kB / 394.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.1294, allocations: 101.1 kB / 394.3 MB, free: 1.035 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.786e-06/0.1295, allocations: 4 kB / 394.3 MB, free: 1.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002477/0.1297, allocations: 141.3 kB / 394.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1298, allocations: 4 kB / 394.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1298, allocations: 4 kB / 394.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.1298, allocations: 0 / 394.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1299, allocations: 15.98 kB / 394.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.1299, allocations: 0 / 394.5 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.591e-05/0.13, allocations: 11.92 kB / 394.5 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.13, allocations: 4 kB / 394.5 MB, free: 0.8477 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.0002038/0.1302, allocations: 130.3 kB / 394.6 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.176e-05/0.1303, allocations: 19.75 kB / 394.6 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.366e-05/0.1303, allocations: 20.7 kB / 394.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1303, allocations: 0 / 394.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1303, allocations: 0 / 394.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.1304, allocations: 3.938 kB / 394.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.1305, allocations: 193.6 kB / 394.8 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1306, allocations: 0 / 394.8 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.401e-05/0.1306, allocations: 15.98 kB / 394.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1306, allocations: 0 / 394.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.1306, allocations: 0 / 394.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1307, allocations: 0 / 394.8 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1307, allocations: 4 kB / 394.8 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.1309, allocations: 140.9 kB / 395 MB, free: 260 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.183e-05/0.131, allocations: 96.86 kB / 395.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.508e-05/0.131, allocations: 4 kB / 395.1 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.116e-05/0.1311, allocations: 7.984 kB / 395.1 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.847e-05/0.1312, allocations: 15.92 kB / 395.1 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.1312, allocations: 11.92 kB / 395.1 MB, free: 104 kB / 286.1 MB Notification: Performance of sorting global known variables: time 8.823e-05/0.1313, allocations: 108.2 kB / 395.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1313, allocations: 3.938 kB / 395.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002031/0.1315, allocations: 16 kB / 395.2 MB, free: 15.97 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.0006398/0.1321, allocations: 0.6788 MB / 395.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002457/0.1324, allocations: 84.16 kB / 396 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.267e-06/0.1324, allocations: 3.938 kB / 396 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.1325, allocations: 40.22 kB / 396 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001655/0.1327, allocations: 15.94 kB / 396.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001751/0.1345, allocations: 1.623 MB / 397.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002936/0.1348, allocations: 0.7002 MB / 398.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.616e-05/0.1348, allocations: 20.42 kB / 398.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.433e-05/0.1349, allocations: 39.42 kB / 398.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1349, allocations: 0 / 398.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0132/0.1481, allocations: 2.284 MB / 400.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.1484, allocations: 230.1 kB / 401 MB, free: 10.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.968/2.117, allocations: 4 kB / 401 MB, free: 10.14 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Logic_Examples_TestRelay.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Logic.Examples.TestRelay.pipe 2>&1)