Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.001381/0.001381, allocations: 107.6 kB / 16.45 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.00146/0.00146, allocations: 213.7 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.519/1.519, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.06613/0.06613, allocations: 11.32 MB / 320.2 MB, free: 9.383 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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.001981/0.001981, allocations: 71.83 kB / 445.8 MB, free: 13.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1051, allocations: 56.02 MB / 0.4901 GB, free: 5.586 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.003995/0.1091, allocations: 2.494 MB / 0.4925 GB, free: 3.066 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002935/0.112, allocations: 1.692 MB / 0.4942 GB, free: 1.367 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002163/0.1122, allocations: 23.75 kB / 0.4942 GB, free: 1.344 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006793/0.1129, allocations: 219 kB / 0.4944 GB, free: 1.129 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004836/0.1134, allocations: 219 kB / 0.4946 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009636/0.1144, allocations: 409.8 kB / 0.495 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008119/0.1152, allocations: 0.6334 MB / 0.4956 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1153, allocations: 61.33 kB / 0.4957 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/0.1156, allocations: 251 kB / 0.4959 GB, free: 15.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003471/0.116, allocations: 262.9 kB / 0.4961 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.042e-05/0.1161, allocations: 36 kB / 0.4962 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002772/0.1163, allocations: 163.8 kB / 0.4963 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.1165, allocations: 147.5 kB / 0.4965 GB, free: 14.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.1167, allocations: 226.5 kB / 0.4967 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007621/0.1175, allocations: 0.5872 MB / 0.4973 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1175, allocations: 4 kB / 0.4973 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1175, allocations: 0 / 0.4973 GB, free: 14.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.361e-05/0.1175, allocations: 0 / 0.4973 GB, free: 14.16 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001564/0.1191, allocations: 0.9425 MB / 0.4982 GB, free: 13.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1191, allocations: 12.03 kB / 0.4982 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.1192, allocations: 74.72 kB / 0.4983 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.1193, allocations: 68.52 kB / 0.4983 GB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007623/0.1201, allocations: 483 kB / 0.4988 GB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.1201, allocations: 41.3 kB / 0.4988 GB, free: 12.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.669e-05/0.1202, allocations: 39.94 kB / 0.4989 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000793/0.121, allocations: 484.1 kB / 0.4993 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.121, allocations: 8 kB / 0.4993 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.463e-05/0.1211, allocations: 12 kB / 0.4994 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.1211, allocations: 8 kB / 0.4994 GB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006211/0.1217, allocations: 326.3 kB / 0.4997 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002708/0.1244, allocations: 1.924 MB / 0.5016 GB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004768/0.1249, allocations: 222.9 kB / 0.5018 GB, free: 9.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002522/0.1252, allocations: 133.5 kB / 0.5019 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.691e-05/0.1252, allocations: 4.234 kB / 0.5019 GB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004264/0.1256, allocations: 247.2 kB / 0.5021 GB, free: 8.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.094e-06/0.1256, allocations: 0 / 0.5021 GB, free: 8.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001104/0.1267, allocations: 0.5533 MB / 0.5027 GB, free: 8.344 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.403e-05/0.1268, allocations: 114.8 kB / 0.5028 GB, free: 8.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007069/0.1275, allocations: 0.5574 MB / 0.5033 GB, free: 7.637 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.1275, allocations: 29.7 kB / 0.5034 GB, free: 7.602 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002439/0.1278, allocations: 292.3 kB / 0.5036 GB, free: 7.312 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.1279, allocations: 127 kB / 0.5038 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.1281, allocations: 102.1 kB / 0.5039 GB, free: 7.082 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.1283, allocations: 370.8 kB / 0.5042 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002866/0.1285, allocations: 144.9 kB / 0.5043 GB, free: 6.566 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004269/0.129, allocations: 319.1 kB / 0.5047 GB, free: 6.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002091/0.1311, allocations: 0.9456 MB / 0.5056 GB, free: 5.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1311, allocations: 4 kB / 0.5056 GB, free: 5.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001093/0.1322, allocations: 0.6439 MB / 0.5062 GB, free: 4.484 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.892e-05/0.1322, allocations: 37.7 kB / 0.5062 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1322, allocations: 4 kB / 0.5062 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.1322, allocations: 8 kB / 0.5063 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/0.1327, allocations: 112.4 kB / 0.5064 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.596e-05/0.1327, allocations: 15.94 kB / 0.5064 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002815/0.133, allocations: 63.59 kB / 0.5064 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.963e-05/0.133, allocations: 24 kB / 0.5065 GB, free: 4.219 MB / 382.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (63): * Single equations (assignments): 62 * 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.0003772/0.1334, allocations: 274.9 kB / 0.5067 GB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/0.1335, allocations: 63.56 kB / 0.5068 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000904/0.1344, allocations: 496.1 kB / 0.5073 GB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.1344, allocations: 4 kB / 0.5073 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1344, allocations: 4 kB / 0.5073 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1344, allocations: 0 / 0.5073 GB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005353/0.135, allocations: 469.1 kB / 0.5077 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.135, allocations: 0 / 0.5077 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/0.1354, allocations: 63.95 kB / 0.5078 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1354, allocations: 0 / 0.5078 GB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/0.1354, allocations: 19.98 kB / 0.5078 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.1354, allocations: 0 / 0.5078 GB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1354, allocations: 3.938 kB / 0.5078 GB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.1366, allocations: 0.6757 MB / 0.5085 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001139/0.1367, allocations: 128.7 kB / 0.5086 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.429e-05/0.1367, allocations: 19.98 kB / 0.5086 GB, free: 1.906 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000178/0.1369, allocations: 15.98 kB / 0.5086 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.535e-05/0.137, allocations: 23.97 kB / 0.5086 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.137, allocations: 8 kB / 0.5086 GB, free: 1.859 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004568/0.1375, allocations: 390.8 kB / 0.509 GB, free: 1.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1375, allocations: 0 / 0.509 GB, free: 1.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004597/0.138, allocations: 127.8 kB / 0.5091 GB, free: 1.355 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 27 * 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.206/0.344, allocations: 1.57 MB / 0.5107 GB, free: 24.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.345, allocations: 461.8 kB / 0.5111 GB, free: 24.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.345, allocations: 0 / 0.5111 GB, free: 24.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.3453, allocations: 231 kB / 0.5113 GB, free: 24.51 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.3459, allocations: 77.47 kB / 0.5114 GB, free: 24.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005836/0.3517, allocations: 4.874 MB / 0.5162 GB, free: 22.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.3521, allocations: 0.8912 MB / 0.517 GB, free: 21.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003048/0.3524, allocations: 102.4 kB / 0.5171 GB, free: 21.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002448/0.3526, allocations: 194.9 kB / 0.5173 GB, free: 21.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3526, allocations: 0 / 0.5173 GB, free: 21.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04125/0.3939, allocations: 10.85 MB / 0.5279 GB, free: 19.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.15/9.544, allocations: 4.594 kB / 0.5279 GB, free: 19.59 MB / 382.1 MB " [Timeout remaining time 650] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.427858087001368] Failed to read output from testmodel.py, exit status != 0: 9.679607775004115 9.700941527 9.579458912 Calling exit ...