Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.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.001413/0.001413, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001535/0.001535, allocations: 215.6 kB / 22.25 MB, free: 5.117 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 8.012 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.0656/0.0656, allocations: 11.33 MB / 323.8 MB, free: 8.238 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.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",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.002096/0.002096, allocations: 67.91 kB / 451 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1153, allocations: 56.06 MB / 0.4952 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004106/0.1194, allocations: 2.515 MB / 0.4977 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002915/0.1223, allocations: 1.606 MB / 0.4992 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.1226, allocations: 19.75 kB / 0.4993 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008513/0.1235, allocations: 231 kB / 0.4995 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005277/0.124, allocations: 211 kB / 0.4997 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.125, allocations: 401.5 kB / 0.5001 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008084/0.1258, allocations: 0.6171 MB / 0.5007 GB, free: 12.72 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002012/0.126, allocations: 61.52 kB / 0.5007 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003305/0.1264, allocations: 227.1 kB / 0.5009 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/0.1267, allocations: 250.9 kB / 0.5012 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.648e-05/0.1268, allocations: 32 kB / 0.5012 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003018/0.1271, allocations: 159.9 kB / 0.5014 GB, free: 12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001782/0.1272, allocations: 139.5 kB / 0.5015 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.1275, allocations: 206.6 kB / 0.5017 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007546/0.1282, allocations: 0.5483 MB / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1282, allocations: 0 / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1282, allocations: 0 / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.1282, allocations: 4 kB / 0.5022 GB, free: 11.11 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00144/0.1297, allocations: 0.8202 MB / 0.503 GB, free: 10.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1297, allocations: 8.031 kB / 0.503 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.311e-05/0.1298, allocations: 74.66 kB / 0.5031 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.1299, allocations: 64.52 kB / 0.5032 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006755/0.1306, allocations: 395.5 kB / 0.5036 GB, free: 9.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.1306, allocations: 21.03 kB / 0.5036 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.203e-05/0.1307, allocations: 39.94 kB / 0.5036 GB, free: 9.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007372/0.1314, allocations: 442.2 kB / 0.504 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.1314, allocations: 0 / 0.504 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.1315, allocations: 12 kB / 0.504 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.1315, allocations: 12 kB / 0.5041 GB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.132, allocations: 282.3 kB / 0.5043 GB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002318/0.1344, allocations: 1.74 MB / 0.506 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.1349, allocations: 192.8 kB / 0.5062 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.1351, allocations: 116.7 kB / 0.5063 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.1e-05/0.1351, allocations: 4 kB / 0.5063 GB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/0.1355, allocations: 213.6 kB / 0.5065 GB, free: 6.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.773e-06/0.1355, allocations: 0 / 0.5065 GB, free: 6.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009753/0.1365, allocations: 495.4 kB / 0.507 GB, free: 5.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.072e-05/0.1366, allocations: 106.8 kB / 0.5071 GB, free: 5.859 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006115/0.1372, allocations: 0.5254 MB / 0.5076 GB, free: 5.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.1372, allocations: 33.7 kB / 0.5077 GB, free: 5.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002212/0.1374, allocations: 280.2 kB / 0.5079 GB, free: 5.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.558e-05/0.1375, allocations: 99.25 kB / 0.508 GB, free: 4.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.1376, allocations: 93.53 kB / 0.5081 GB, free: 4.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1378, allocations: 366.9 kB / 0.5085 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002295/0.138, allocations: 120.4 kB / 0.5086 GB, free: 4.324 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003474/0.1384, allocations: 269.7 kB / 0.5088 GB, free: 3.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0016/0.14, allocations: 0.7701 MB / 0.5096 GB, free: 3.133 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.14, allocations: 0 / 0.5096 GB, free: 3.133 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000934/0.1409, allocations: 0.5339 MB / 0.5101 GB, free: 2.586 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.49e-05/0.141, allocations: 41.69 kB / 0.5101 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.141, allocations: 8 kB / 0.5101 GB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.077e-05/0.141, allocations: 4 kB / 0.5101 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003256/0.1413, allocations: 95.75 kB / 0.5102 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.1413, allocations: 8 kB / 0.5102 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.1416, allocations: 47.72 kB / 0.5103 GB, free: 2.379 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.543e-05/0.1416, allocations: 23.98 kB / 0.5103 GB, free: 2.355 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * 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.0003247/0.1419, allocations: 242.5 kB / 0.5105 GB, free: 2.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.087e-05/0.142, allocations: 55.62 kB / 0.5106 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008012/0.1428, allocations: 444.4 kB / 0.511 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.1428, allocations: 7.938 kB / 0.511 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1428, allocations: 0 / 0.511 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.1428, allocations: 3.984 kB / 0.511 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004746/0.1433, allocations: 404.3 kB / 0.5114 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1433, allocations: 0 / 0.5114 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.1436, allocations: 47.91 kB / 0.5115 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.1436, allocations: 0 / 0.5115 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/0.1436, allocations: 16 kB / 0.5115 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1436, allocations: 3.938 kB / 0.5115 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1436, allocations: 7.938 kB / 0.5115 GB, free: 1.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.1447, allocations: 0.5961 MB / 0.5121 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.91e-05/0.1447, allocations: 43.61 kB / 0.5121 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.969e-05/0.1448, allocations: 16.05 kB / 0.5121 GB, free: 404 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.145, allocations: 19.92 kB / 0.5122 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.145, allocations: 23.91 kB / 0.5122 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1451, allocations: 15.98 kB / 0.5122 GB, free: 344 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2423/0.3874, allocations: 359.4 kB / 0.5125 GB, free: 23.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.3874, allocations: 0 / 0.5125 GB, free: 23.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.3882, allocations: 108.8 kB / 0.5126 GB, free: 23.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.002864/0.391, allocations: 1.481 MB / 0.5141 GB, free: 22.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006977/0.3917, allocations: 380.8 kB / 0.5144 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3917, allocations: 0 / 0.5144 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.392, allocations: 192.4 kB / 0.5146 GB, free: 22.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004204/0.3924, allocations: 86.61 kB / 0.5147 GB, free: 22.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004739/0.3971, allocations: 4.322 MB / 0.5189 GB, free: 20.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.3974, allocations: 0.8626 MB / 0.5198 GB, free: 19.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002104/0.3976, allocations: 75.92 kB / 0.5198 GB, free: 19.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/0.3978, allocations: 179.9 kB / 0.52 GB, free: 19.88 MB / 382.1 MB Notification: Performance of SimCode: time 9.41e-07/0.3978, allocations: 0 / 0.52 GB, free: 19.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/0.4422, allocations: 10.18 MB / 0.53 GB, free: 17.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.39, allocations: 3.609 kB / 0.53 GB, free: 17.92 MB / 382.1 MB " [Timeout remaining time 647] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.386415332999604] Failed to read output from testmodel.py, exit status != 0: 12.559324938993086 12.582751908 12.450094424 Calling exit ...