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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001355, allocations: 192.6 kB / 22.11 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06542/0.06542, allocations: 11.36 MB / 317.4 MB, free: 13.81 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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: Performance of FrontEnd - loaded program: time 0.002678/0.002678, allocations: 67.88 kB / 442.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1091, allocations: 54.89 MB / 497.1 MB, free: 64 kB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.004014/0.1131, allocations: 2.027 MB / 499.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.1154, allocations: 1.27 MB / 0.4886 GB, free: 12.74 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1155, allocations: 11.88 kB / 0.4886 GB, free: 12.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008969/0.1164, allocations: 289.7 kB / 0.4889 GB, free: 12.45 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000455/0.1169, allocations: 195.3 kB / 0.4891 GB, free: 12.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008018/0.1177, allocations: 327.6 kB / 0.4894 GB, free: 11.94 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.1181, allocations: 335.1 kB / 0.4897 GB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.1182, allocations: 32.58 kB / 0.4898 GB, free: 11.58 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.1184, allocations: 151.4 kB / 0.4899 GB, free: 11.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.1187, allocations: 147.4 kB / 0.4901 GB, free: 11.29 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.1187, allocations: 16 kB / 0.4901 GB, free: 11.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002409/0.1189, allocations: 119.8 kB / 0.4902 GB, free: 11.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.119, allocations: 75.77 kB / 0.4903 GB, free: 11.08 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1192, allocations: 119.2 kB / 0.4904 GB, free: 10.96 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005042/0.1197, allocations: 350.8 kB / 0.4907 GB, free: 10.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1197, allocations: 4 kB / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1197, allocations: 0 / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1197, allocations: 0 / 0.4907 GB, free: 10.61 MB / 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.001068/0.1208, allocations: 0.5896 MB / 0.4913 GB, free: 9.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.1208, allocations: 8.031 kB / 0.4913 GB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.556e-05/0.1209, allocations: 42.73 kB / 0.4913 GB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.361e-05/0.1209, allocations: 32.75 kB / 0.4914 GB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.1214, allocations: 270.7 kB / 0.4916 GB, free: 9.602 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1214, allocations: 15.88 kB / 0.4916 GB, free: 9.586 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.1214, allocations: 11.98 kB / 0.4917 GB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.1218, allocations: 199 kB / 0.4918 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.1218, allocations: 0 / 0.4918 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.1218, allocations: 8 kB / 0.4918 GB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.1218, allocations: 0 / 0.4918 GB, free: 9.348 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001861/0.122, allocations: 75.89 kB / 0.4919 GB, free: 9.273 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007015/0.1227, allocations: 443.5 kB / 0.4923 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.1231, allocations: 130.7 kB / 0.4925 GB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.1232, allocations: 60.83 kB / 0.4925 GB, free: 8.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.1232, allocations: 0 / 0.4925 GB, free: 8.598 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.1235, allocations: 123.3 kB / 0.4926 GB, free: 8.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.463e-06/0.1235, allocations: 0 / 0.4926 GB, free: 8.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006146/0.1241, allocations: 274.4 kB / 0.4929 GB, free: 8.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.385e-05/0.1242, allocations: 110.8 kB / 0.493 GB, free: 8.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004431/0.1246, allocations: 384.5 kB / 0.4934 GB, free: 7.676 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.1247, allocations: 33.7 kB / 0.4934 GB, free: 7.637 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.1248, allocations: 152.5 kB / 0.4936 GB, free: 7.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.424e-05/0.1249, allocations: 51.56 kB / 0.4936 GB, free: 7.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/0.1249, allocations: 45.7 kB / 0.4936 GB, free: 7.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.1251, allocations: 350.7 kB / 0.494 GB, free: 7.027 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.1252, allocations: 43.98 kB / 0.494 GB, free: 6.984 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1255, allocations: 246.9 kB / 0.4943 GB, free: 6.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003324/0.1258, allocations: 192.4 kB / 0.4944 GB, free: 6.457 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1258, allocations: 0 / 0.4944 GB, free: 6.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004167/0.1262, allocations: 213.3 kB / 0.4946 GB, free: 6.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.1263, allocations: 8 kB / 0.4947 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1263, allocations: 8.25 kB / 0.4947 GB, free: 6.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.505e-05/0.1263, allocations: 4 kB / 0.4947 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.1264, allocations: 31.92 kB / 0.4947 GB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.289e-05/0.1264, allocations: 7.938 kB / 0.4947 GB, free: 6.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.1266, allocations: 31.77 kB / 0.4947 GB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.556e-05/0.1266, allocations: 8 kB / 0.4947 GB, free: 6.145 MB / 366.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.0002384/0.1268, allocations: 177.4 kB / 0.4949 GB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.042e-05/0.1269, allocations: 31.81 kB / 0.4949 GB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005242/0.1274, allocations: 231.3 kB / 0.4952 GB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.351e-06/0.1274, allocations: 4 kB / 0.4952 GB, free: 5.691 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1274, allocations: 3.984 kB / 0.4952 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1274, allocations: 3.938 kB / 0.4952 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003087/0.1277, allocations: 260.5 kB / 0.4954 GB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1277, allocations: 7.984 kB / 0.4954 GB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.1278, allocations: 8 kB / 0.4954 GB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.1278, allocations: 4 kB / 0.4954 GB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.1278, allocations: 4 kB / 0.4954 GB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1278, allocations: 3.938 kB / 0.4954 GB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1278, allocations: 0 / 0.4954 GB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004679/0.1283, allocations: 256.7 kB / 0.4957 GB, free: 5.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.585e-05/0.1283, allocations: 27.78 kB / 0.4957 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.293e-05/0.1284, allocations: 8 kB / 0.4957 GB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.174e-05/0.1285, allocations: 15.92 kB / 0.4957 GB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.426e-05/0.1285, allocations: 11.98 kB / 0.4958 GB, free: 5.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-05/0.1286, allocations: 11.94 kB / 0.4958 GB, free: 5.016 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003255/0.1289, allocations: 279 kB / 0.496 GB, free: 4.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1289, allocations: 0 / 0.496 GB, free: 4.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000345/0.1292, allocations: 67.88 kB / 0.4961 GB, free: 4.68 MB / 366.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,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled) * 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.002335/0.1316, allocations: 1.117 MB / 0.4972 GB, free: 3.699 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004084/0.132, allocations: 143.8 kB / 0.4973 GB, free: 3.559 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.132, allocations: 4.5 kB / 0.4973 GB, free: 3.555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.1321, allocations: 63.92 kB / 0.4974 GB, free: 3.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.1326, allocations: 80.34 kB / 0.4975 GB, free: 3.414 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003966/0.1365, allocations: 2.807 MB / 0.5002 GB, free: 480 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004759/0.137, allocations: 0.7789 MB / 0.501 GB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001322/0.1371, allocations: 38.27 kB / 0.501 GB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.1373, allocations: 83.41 kB / 0.5011 GB, free: 15.55 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1373, allocations: 4 kB / 0.5011 GB, free: 15.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03919/0.1765, allocations: 7.533 MB / 0.5084 GB, free: 8.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.65, allocations: 2.406 kB / 0.5084 GB, free: 8.098 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.975597149925306] Failed to read output from testmodel.py, exit status != 0: 11.811926458030939 12.000401983 11.877936161 Calling exit ...