Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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.001249/0.001249, 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.001374/0.001374, allocations: 211.5 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.426/1.426, allocations: 230.6 MB / 256 MB, free: 7.785 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.06284/0.06284, allocations: 11.34 MB / 323.8 MB, free: 8.027 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.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.002382/0.002382, allocations: 68.17 kB / 451 MB, free: 10.33 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1138, allocations: 56.07 MB / 0.4952 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.004474/0.1183, allocations: 2.341 MB / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003182/0.1215, allocations: 1.607 MB / 0.499 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002611/0.1217, allocations: 19.75 kB / 0.499 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007566/0.1225, allocations: 223 kB / 0.4992 GB, free: 13.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005271/0.123, allocations: 211 kB / 0.4994 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009716/0.124, allocations: 421.8 kB / 0.4998 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007994/0.1248, allocations: 0.6646 MB / 0.5005 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.125, allocations: 61.52 kB / 0.5006 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000367/0.1253, allocations: 239.1 kB / 0.5008 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003509/0.1257, allocations: 258.9 kB / 0.501 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.758e-05/0.1258, allocations: 32 kB / 0.5011 GB, free: 12.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003244/0.1261, allocations: 163.8 kB / 0.5012 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.1263, allocations: 151.5 kB / 0.5014 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002/0.1265, allocations: 174.9 kB / 0.5015 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000775/0.1272, allocations: 0.5911 MB / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1272, allocations: 0 / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1272, allocations: 0 / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.984e-06/0.1272, allocations: 0 / 0.5021 GB, free: 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001509/0.1288, allocations: 0.8633 MB / 0.5029 GB, free: 10.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.1288, allocations: 8.031 kB / 0.503 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.522e-05/0.1289, allocations: 74.7 kB / 0.503 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001084/0.129, allocations: 68.52 kB / 0.5031 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007915/0.1298, allocations: 402.8 kB / 0.5035 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.1298, allocations: 33.38 kB / 0.5035 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.1299, allocations: 39.94 kB / 0.5035 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008063/0.1307, allocations: 0.4932 MB / 0.504 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.999e-05/0.1307, allocations: 15.88 kB / 0.504 GB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.571e-05/0.1308, allocations: 12 kB / 0.5041 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.1308, allocations: 8 kB / 0.5041 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006121/0.1314, allocations: 364 kB / 0.5044 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002755/0.1341, allocations: 1.823 MB / 0.5062 GB, free: 6.605 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004951/0.1346, allocations: 264.5 kB / 0.5064 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/0.1349, allocations: 162.7 kB / 0.5066 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.1349, allocations: 240 / 0.5066 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004609/0.1354, allocations: 285.7 kB / 0.5069 GB, free: 5.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.854e-06/0.1354, allocations: 0 / 0.5069 GB, free: 5.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001133/0.1365, allocations: 0.6215 MB / 0.5075 GB, free: 5.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.136e-05/0.1366, allocations: 89.11 kB / 0.5076 GB, free: 5.113 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006904/0.1373, allocations: 0.5612 MB / 0.5081 GB, free: 4.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/0.1373, allocations: 29.7 kB / 0.5081 GB, free: 4.504 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/0.1376, allocations: 292.3 kB / 0.5084 GB, free: 4.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1377, allocations: 123 kB / 0.5085 GB, free: 4.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.1378, allocations: 110.1 kB / 0.5086 GB, free: 3.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002061/0.1381, allocations: 366.8 kB / 0.509 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003065/0.1384, allocations: 174.7 kB / 0.5092 GB, free: 3.438 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.1388, allocations: 376.7 kB / 0.5095 GB, free: 2.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/0.1408, allocations: 0.9447 MB / 0.5104 GB, free: 1.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1408, allocations: 4 kB / 0.5104 GB, free: 1.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001101/0.1419, allocations: 0.6807 MB / 0.5111 GB, free: 1.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.51e-05/0.142, allocations: 45.69 kB / 0.5111 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.142, allocations: 4 kB / 0.5112 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.142, allocations: 8.656 kB / 0.5112 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004625/0.1425, allocations: 119.8 kB / 0.5113 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.712e-05/0.1425, allocations: 11.94 kB / 0.5113 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.1427, allocations: 63.55 kB / 0.5113 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.1428, allocations: 27.98 kB / 0.5114 GB, free: 0.9648 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.0003738/0.1431, allocations: 274.9 kB / 0.5116 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.833e-05/0.1432, allocations: 55.62 kB / 0.5117 GB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009344/0.1442, allocations: 0.53 MB / 0.5122 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1442, allocations: 4 kB / 0.5122 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1442, allocations: 4 kB / 0.5122 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.1442, allocations: 3.984 kB / 0.5122 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2317/0.3759, allocations: 395 kB / 0.5126 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.3759, allocations: 0.9844 kB / 0.5126 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.3763, allocations: 71.34 kB / 0.5127 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.701e-06/0.3764, allocations: 0 / 0.5127 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.751e-05/0.3764, allocations: 14.25 kB / 0.5127 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.3764, allocations: 0 / 0.5127 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3764, allocations: 6.453 kB / 0.5127 GB, free: 23.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.3774, allocations: 0.7494 MB / 0.5134 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.3775, allocations: 53.14 kB / 0.5135 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.607e-05/0.3776, allocations: 15.83 kB / 0.5135 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.3777, allocations: 21.05 kB / 0.5135 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.168e-05/0.3778, allocations: 26.05 kB / 0.5135 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-05/0.3778, allocations: 14.12 kB / 0.5135 GB, free: 23.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003678/0.3782, allocations: 386.8 kB / 0.5139 GB, free: 23.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3782, allocations: 0 / 0.5139 GB, free: 23.04 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000459/0.3787, allocations: 122.5 kB / 0.514 GB, free: 23.04 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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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.002688/0.3814, allocations: 1.666 MB / 0.5157 GB, free: 22.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.3821, allocations: 0.517 MB / 0.5162 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3821, allocations: 0 / 0.5162 GB, free: 22.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.3824, allocations: 258.8 kB / 0.5164 GB, free: 22.06 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.3828, allocations: 82.84 kB / 0.5165 GB, free: 22.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005392/0.3882, allocations: 5.055 MB / 0.5214 GB, free: 19.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.3885, allocations: 281.3 kB / 0.5217 GB, free: 19.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002793/0.3888, allocations: 104.1 kB / 0.5218 GB, free: 19.81 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002123/0.389, allocations: 186.9 kB / 0.522 GB, free: 19.8 MB / 382.1 MB Notification: Performance of SimCode: time 8.92e-07/0.389, allocations: 0 / 0.522 GB, free: 19.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04521/0.4342, allocations: 11.47 MB / 0.5332 GB, free: 16.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.54, allocations: 19.12 kB / 0.5332 GB, free: 16.58 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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_TestD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.266470375005156] Failed to read output from testmodel.py, exit status != 0: 11.697549575939775 11.709760031 11.580326671 Calling exit ...