Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 108.9 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.1052/0.1052, allocations: 11.32 MB / 320.2 MB, free: 9.434 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Timers.Examples.testT_On,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002024/0.002024, allocations: 71.89 kB / 445.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1128, allocations: 56.01 MB / 0.4901 GB, free: 5.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004295/0.1171, allocations: 2.031 MB / 0.492 GB, free: 3.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002723/0.1198, allocations: 1.412 MB / 0.4934 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001739/0.12, allocations: 3.938 kB / 0.4934 GB, free: 2.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.121, allocations: 287.2 kB / 0.4937 GB, free: 1.926 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006996/0.1217, allocations: 242 kB / 0.4939 GB, free: 1.691 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008076/0.1225, allocations: 251.3 kB / 0.4942 GB, free: 1.445 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004603/0.123, allocations: 359 kB / 0.4945 GB, free: 1.094 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.1231, allocations: 28.73 kB / 0.4945 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.1233, allocations: 147.5 kB / 0.4947 GB, free: 0.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.1235, allocations: 159.3 kB / 0.4948 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.1236, allocations: 20 kB / 0.4949 GB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002251/0.1238, allocations: 107.9 kB / 0.495 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.1239, allocations: 83.64 kB / 0.495 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.124, allocations: 119.3 kB / 0.4952 GB, free: 448 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005615/0.1246, allocations: 370.7 kB / 0.4955 GB, free: 76 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1246, allocations: 0 / 0.4955 GB, free: 76 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1246, allocations: 0 / 0.4955 GB, free: 76 kB / 366.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1246, allocations: 0 / 0.4955 GB, free: 76 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.00114/0.1258, allocations: 0.6748 MB / 0.4962 GB, free: 15.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1258, allocations: 8.031 kB / 0.4962 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.1259, allocations: 46.73 kB / 0.4962 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.011e-05/0.1259, allocations: 36.75 kB / 0.4963 GB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.1264, allocations: 328.4 kB / 0.4966 GB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.1264, allocations: 19.92 kB / 0.4966 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.956e-05/0.1265, allocations: 8 kB / 0.4966 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.1268, allocations: 160.2 kB / 0.4967 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.1268, allocations: 0 / 0.4967 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1268, allocations: 4 kB / 0.4968 GB, free: 14.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1268, allocations: 4 kB / 0.4968 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001853/0.127, allocations: 67.89 kB / 0.4968 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000782/0.1278, allocations: 480.4 kB / 0.4973 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.1282, allocations: 134.8 kB / 0.4974 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.1283, allocations: 56.77 kB / 0.4975 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.824e-05/0.1284, allocations: 0 / 0.4975 GB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.1286, allocations: 127.3 kB / 0.4976 GB, free: 13.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.1287, allocations: 4 kB / 0.4976 GB, free: 13.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006559/0.1293, allocations: 264 kB / 0.4978 GB, free: 13.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.1294, allocations: 114.8 kB / 0.4979 GB, free: 13.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004916/0.1299, allocations: 404.5 kB / 0.4983 GB, free: 12.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.1299, allocations: 29.7 kB / 0.4984 GB, free: 12.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1301, allocations: 164.4 kB / 0.4985 GB, free: 12.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.136e-05/0.1301, allocations: 43.69 kB / 0.4986 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.84e-05/0.1302, allocations: 49.7 kB / 0.4986 GB, free: 12.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1304, allocations: 354.7 kB / 0.4989 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.1305, allocations: 40.19 kB / 0.499 GB, free: 12.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1307, allocations: 152.7 kB / 0.4991 GB, free: 12.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003425/0.131, allocations: 188.3 kB / 0.4993 GB, free: 11.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.541e-06/0.131, allocations: 4 kB / 0.4993 GB, free: 11.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004255/0.1315, allocations: 229.3 kB / 0.4995 GB, free: 11.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1315, allocations: 8 kB / 0.4995 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1315, allocations: 0 / 0.4995 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1315, allocations: 4 kB / 0.4995 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.1316, allocations: 39.86 kB / 0.4996 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.1317, allocations: 4 kB / 0.4996 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001241/0.1318, allocations: 23.81 kB / 0.4996 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1318, allocations: 12 kB / 0.4996 GB, free: 11.53 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: timer.Q:DISCRETE(flow=false fixed = true ) \"status of the timer\" type: Boolean timer.run:DISCRETE(fixed = true ) \"Flag: true while the timer is counting\" type: Boolean timer.tr:DISCRETE(flow=false fixed = true ) \"residual time\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,timer.Sd) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.000247/0.132, allocations: 172.7 kB / 0.4998 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.1321, allocations: 35.75 kB / 0.4998 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.374e-05/0.1322, allocations: 35.28 kB / 0.4999 GB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.1322, allocations: 4 kB / 0.4999 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1322, allocations: 0 / 0.4999 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1322, allocations: 3.938 kB / 0.4999 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003397/0.1325, allocations: 297.4 kB / 0.5001 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1325, allocations: 4 kB / 0.5001 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.622e-05/0.1326, allocations: 11.94 kB / 0.5002 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.1326, allocations: 48 / 0.5002 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.024e-05/0.1326, allocations: 12.11 kB / 0.5002 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1326, allocations: 4 kB / 0.5002 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1326, allocations: 0 / 0.5002 GB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004836/0.1331, allocations: 244.8 kB / 0.5004 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.457e-05/0.1332, allocations: 116.8 kB / 0.5005 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.1333, allocations: 8 kB / 0.5005 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.189e-05/0.1334, allocations: 7.984 kB / 0.5005 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.1334, allocations: 15.98 kB / 0.5005 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.208e-05/0.1334, allocations: 7.938 kB / 0.5006 GB, free: 10.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003447/0.1338, allocations: 295 kB / 0.5008 GB, free: 10.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1338, allocations: 0 / 0.5008 GB, free: 10.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003408/0.1341, allocations: 59.92 kB / 0.5009 GB, free: 10.12 MB / 382.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 6 (timer.Sd,timer.startTime,ResetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.002251/0.1364, allocations: 1.116 MB / 0.502 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004216/0.1368, allocations: 146.8 kB / 0.5021 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.1368, allocations: 8.125 kB / 0.5021 GB, free: 8.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.1369, allocations: 55.92 kB / 0.5022 GB, free: 8.938 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.1374, allocations: 81.12 kB / 0.5023 GB, free: 8.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.1413, allocations: 2.863 MB / 0.5051 GB, free: 5.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.1417, allocations: 0.7869 MB / 0.5058 GB, free: 5.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001343/0.1419, allocations: 46.25 kB / 0.5059 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.142, allocations: 90.66 kB / 0.506 GB, free: 4.922 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.142, allocations: 0 / 0.506 GB, free: 4.922 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2358/0.3778, allocations: 7.492 MB / 0.5133 GB, free: 23.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.404/8.782, allocations: 12.47 kB / 0.5133 GB, free: 23.73 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 IndustrialControlSystems_IndustrialControlSystems_Logical_Timers_Examples_testT_On.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.04890425800113] Failed to read output from testmodel.py, exit status != 0: 8.913661640995997 8.938283544 8.808352147999999 Calling exit ...