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.001258/0.001258, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001456/0.001456, allocations: 209.8 kB / 22.24 MB, free: 5.262 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.394/1.394, allocations: 230.6 MB / 256 MB, free: 7.746 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.06377/0.06377, allocations: 11.34 MB / 323.8 MB, free: 8.004 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.002233/0.002233, allocations: 63.91 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1036, allocations: 56.07 MB / 0.4952 GB, free: 2.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.0049/0.1085, allocations: 2.366 MB / 0.4975 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003017/0.1115, allocations: 1.513 MB / 0.4989 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003505/0.1119, allocations: 15.81 kB / 0.499 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008519/0.1127, allocations: 230.9 kB / 0.4992 GB, free: 14 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005496/0.1133, allocations: 211 kB / 0.4994 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000936/0.1142, allocations: 390.1 kB / 0.4997 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007172/0.1149, allocations: 0.617 MB / 0.5004 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.1151, allocations: 57.53 kB / 0.5004 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.1154, allocations: 231.1 kB / 0.5006 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.1157, allocations: 223 kB / 0.5008 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.336e-05/0.1157, allocations: 32 kB / 0.5009 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002686/0.116, allocations: 155.8 kB / 0.501 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.1162, allocations: 143.5 kB / 0.5012 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001632/0.1163, allocations: 159 kB / 0.5013 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006751/0.117, allocations: 0.5484 MB / 0.5018 GB, free: 11.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.117, allocations: 4 kB / 0.5018 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.117, allocations: 0 / 0.5018 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.117, allocations: 0 / 0.5018 GB, free: 11.25 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.001384/0.1184, allocations: 0.828 MB / 0.5027 GB, free: 10.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.1184, allocations: 8.031 kB / 0.5027 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.663e-05/0.1185, allocations: 70.72 kB / 0.5027 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001015/0.1186, allocations: 64.52 kB / 0.5028 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006725/0.1193, allocations: 386.9 kB / 0.5032 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/0.1194, allocations: 25.03 kB / 0.5032 GB, free: 9.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.183e-05/0.1194, allocations: 39.88 kB / 0.5032 GB, free: 9.766 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.1201, allocations: 463 kB / 0.5037 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.1201, allocations: 7.938 kB / 0.5037 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.522e-05/0.1202, allocations: 16 kB / 0.5037 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1202, allocations: 8 kB / 0.5037 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005321/0.1207, allocations: 320 kB / 0.504 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002181/0.1229, allocations: 1.678 MB / 0.5056 GB, free: 7.156 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005143/0.1234, allocations: 220.2 kB / 0.5058 GB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002278/0.1236, allocations: 138.5 kB / 0.506 GB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.1237, allocations: 8 kB / 0.506 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/0.1241, allocations: 255.2 kB / 0.5062 GB, free: 6.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.1241, allocations: 0 / 0.5062 GB, free: 6.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009269/0.125, allocations: 0.5475 MB / 0.5068 GB, free: 5.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.1251, allocations: 81.11 kB / 0.5068 GB, free: 5.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005834/0.1257, allocations: 0.5292 MB / 0.5074 GB, free: 5.289 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.1257, allocations: 29.7 kB / 0.5074 GB, free: 5.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.1259, allocations: 288.2 kB / 0.5077 GB, free: 4.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.126, allocations: 99.22 kB / 0.5078 GB, free: 4.871 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1261, allocations: 93.59 kB / 0.5078 GB, free: 4.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1263, allocations: 366.9 kB / 0.5082 GB, free: 4.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000254/0.1265, allocations: 146.1 kB / 0.5083 GB, free: 4.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000365/0.1269, allocations: 332.2 kB / 0.5087 GB, free: 3.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/0.1284, allocations: 0.774 MB / 0.5094 GB, free: 2.992 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.1284, allocations: 4 kB / 0.5094 GB, free: 2.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009348/0.1293, allocations: 0.5745 MB / 0.51 GB, free: 2.395 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.998e-05/0.1294, allocations: 33.7 kB / 0.51 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.347e-06/0.1294, allocations: 4 kB / 0.51 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.1294, allocations: 8 kB / 0.51 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.1297, allocations: 91.77 kB / 0.5101 GB, free: 2.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.1298, allocations: 7.984 kB / 0.5101 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.13, allocations: 59.61 kB / 0.5102 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.13, allocations: 16.31 kB / 0.5102 GB, free: 2.172 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.0004176/0.1304, allocations: 262.2 kB / 0.5104 GB, free: 1.898 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.982e-05/0.1305, allocations: 51.67 kB / 0.5105 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008668/0.1314, allocations: 490 kB / 0.511 GB, free: 1.348 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.1314, allocations: 7.922 kB / 0.511 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1314, allocations: 0 / 0.511 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1314, allocations: 4 kB / 0.511 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000484/0.1319, allocations: 364.4 kB / 0.5113 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1319, allocations: 0 / 0.5113 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/0.1322, allocations: 43.97 kB / 0.5114 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.1322, allocations: 4 kB / 0.5114 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.1322, allocations: 15.97 kB / 0.5114 GB, free: 0.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.1322, allocations: 3.938 kB / 0.5114 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1322, allocations: 7.938 kB / 0.5114 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001096/0.1333, allocations: 0.6816 MB / 0.512 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.1334, allocations: 47.67 kB / 0.5121 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.293e-05/0.1335, allocations: 15.98 kB / 0.5121 GB, free: 84 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001463/0.1336, allocations: 19.92 kB / 0.5121 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.372e-05/0.1337, allocations: 19.97 kB / 0.5121 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.858e-05/0.1337, allocations: 8 kB / 0.5122 GB, free: 36 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.1898/0.3235, allocations: 366.1 kB / 0.5125 GB, free: 23.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3235, allocations: 0.9688 kB / 0.5125 GB, free: 23.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000597/0.3241, allocations: 109.7 kB / 0.5126 GB, free: 23.2 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 (26): * Single equations (assignments): 23 * 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.002594/0.3267, allocations: 1.573 MB / 0.5141 GB, free: 22.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005984/0.3273, allocations: 447.5 kB / 0.5146 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3273, allocations: 0 / 0.5146 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.3275, allocations: 235.5 kB / 0.5148 GB, free: 22.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.3279, allocations: 76.91 kB / 0.5149 GB, free: 22.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004621/0.3325, allocations: 4.521 MB / 0.5193 GB, free: 20.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.3328, allocations: 265.2 kB / 0.5195 GB, free: 20.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.333, allocations: 85.41 kB / 0.5196 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000237/0.3332, allocations: 178.3 kB / 0.5198 GB, free: 20.21 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3332, allocations: 0 / 0.5198 GB, free: 20.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05687/0.3901, allocations: 10.5 MB / 0.53 GB, free: 17.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.44, allocations: 13.59 kB / 0.5301 GB, free: 17.76 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.178056405391544] Failed to read output from testmodel.py, exit status != 0: 11.599664494860917 11.612505244 11.492989353 Calling exit ...