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.001376/0.001376, allocations: 103.4 kB / 16.45 MB, free: 6.449 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.001498/0.001498, allocations: 206.4 kB / 19.42 MB, free: 3.641 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 / 252.8 MB, free: 8.98 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.06713/0.06713, allocations: 11.32 MB / 320.2 MB, free: 9.418 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.001998/0.001998, allocations: 68.17 kB / 445.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1294, allocations: 56.01 MB / 0.4901 GB, free: 5.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_tracking): time 0.0052/0.1346, allocations: 2.473 MB / 0.4925 GB, free: 3.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003437/0.1381, allocations: 1.684 MB / 0.4941 GB, free: 1.441 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003664/0.1384, allocations: 23.75 kB / 0.4941 GB, free: 1.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008832/0.1393, allocations: 223 kB / 0.4944 GB, free: 1.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007228/0.14, allocations: 211 kB / 0.4946 GB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.1413, allocations: 410 kB / 0.4949 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009594/0.1423, allocations: 0.6373 MB / 0.4956 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002049/0.1425, allocations: 57.33 kB / 0.4956 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004403/0.1429, allocations: 243 kB / 0.4959 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004368/0.1433, allocations: 266.9 kB / 0.4961 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.776e-05/0.1434, allocations: 36 kB / 0.4961 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.1438, allocations: 163.8 kB / 0.4963 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.144, allocations: 147.5 kB / 0.4964 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000281/0.1442, allocations: 230.4 kB / 0.4967 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000873/0.1451, allocations: 0.5834 MB / 0.4972 GB, free: 14.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1451, allocations: 0 / 0.4972 GB, free: 14.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1451, allocations: 0 / 0.4972 GB, free: 14.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.751e-05/0.1451, allocations: 0 / 0.4972 GB, free: 14.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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.00212/0.1473, allocations: 0.9308 MB / 0.4981 GB, free: 13.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.1473, allocations: 12.03 kB / 0.4982 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.1474, allocations: 74.72 kB / 0.4982 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.1476, allocations: 64.52 kB / 0.4983 GB, free: 13.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008274/0.1484, allocations: 487 kB / 0.4987 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.1485, allocations: 33.31 kB / 0.4988 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.994e-05/0.1486, allocations: 43.94 kB / 0.4988 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008584/0.1494, allocations: 484.2 kB / 0.4993 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/0.1494, allocations: 7.953 kB / 0.4993 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.1495, allocations: 19.98 kB / 0.4993 GB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.1495, allocations: 8 kB / 0.4993 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006971/0.1502, allocations: 330.3 kB / 0.4996 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002975/0.1532, allocations: 1.912 MB / 0.5015 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005125/0.1537, allocations: 233.1 kB / 0.5017 GB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002742/0.154, allocations: 133.5 kB / 0.5019 GB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.459e-05/0.154, allocations: 4.234 kB / 0.5019 GB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004519/0.1545, allocations: 243.2 kB / 0.5021 GB, free: 9.004 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.555e-06/0.1545, allocations: 4 kB / 0.5021 GB, free: 9 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001112/0.1556, allocations: 0.5495 MB / 0.5026 GB, free: 8.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.169e-05/0.1557, allocations: 110.8 kB / 0.5027 GB, free: 8.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000659/0.1563, allocations: 0.5495 MB / 0.5033 GB, free: 7.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.1563, allocations: 33.7 kB / 0.5033 GB, free: 7.707 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002386/0.1566, allocations: 288.3 kB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1567, allocations: 130.9 kB / 0.5037 GB, free: 7.293 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.1568, allocations: 106.1 kB / 0.5038 GB, free: 7.184 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001998/0.157, allocations: 374.7 kB / 0.5042 GB, free: 6.809 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002791/0.1573, allocations: 148.9 kB / 0.5043 GB, free: 6.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/0.1578, allocations: 318.3 kB / 0.5046 GB, free: 6.277 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.1598, allocations: 0.9339 MB / 0.5055 GB, free: 5.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.1598, allocations: 4 kB / 0.5055 GB, free: 5.246 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001187/0.161, allocations: 0.6442 MB / 0.5062 GB, free: 4.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.871e-05/0.161, allocations: 37.7 kB / 0.5062 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.161, allocations: 7.938 kB / 0.5062 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.679e-05/0.1611, allocations: 8 kB / 0.5062 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000456/0.1615, allocations: 111.8 kB / 0.5063 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.1615, allocations: 11.98 kB / 0.5063 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002894/0.1618, allocations: 63.88 kB / 0.5064 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.973e-05/0.1619, allocations: 28 kB / 0.5064 GB, free: 4.32 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.0003943/0.1623, allocations: 271 kB / 0.5067 GB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.909e-05/0.1624, allocations: 59.62 kB / 0.5067 GB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009258/0.1633, allocations: 0.4884 MB / 0.5072 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1633, allocations: 4 kB / 0.5072 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.1633, allocations: 0 / 0.5072 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.1633, allocations: 0 / 0.5072 GB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005592/0.1639, allocations: 469.1 kB / 0.5077 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.1639, allocations: 8 kB / 0.5077 GB, free: 2.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/0.1643, allocations: 71.88 kB / 0.5077 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.1643, allocations: 7.938 kB / 0.5077 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.1643, allocations: 12 kB / 0.5077 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1643, allocations: 0 / 0.5077 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1643, allocations: 0 / 0.5077 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001162/0.1655, allocations: 0.6757 MB / 0.5084 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/0.1657, allocations: 136.7 kB / 0.5085 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.83e-05/0.1657, allocations: 12 kB / 0.5085 GB, free: 2.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1659, allocations: 15.98 kB / 0.5086 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.181e-05/0.166, allocations: 19.97 kB / 0.5086 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.795e-05/0.166, allocations: 19.98 kB / 0.5086 GB, free: 1.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004772/0.1665, allocations: 378.8 kB / 0.509 GB, free: 1.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1665, allocations: 0 / 0.509 GB, free: 1.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005318/0.167, allocations: 119.8 kB / 0.5091 GB, free: 1.465 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.002999/0.17, allocations: 1.591 MB / 0.5106 GB, free: 4 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2266/0.3967, allocations: 451.3 kB / 0.5111 GB, free: 24.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.3967, allocations: 0 / 0.5111 GB, free: 24.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003521/0.397, allocations: 227.8 kB / 0.5113 GB, free: 24.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006239/0.3977, allocations: 75.92 kB / 0.5113 GB, free: 24.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005687/0.4033, allocations: 4.865 MB / 0.5161 GB, free: 22.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003704/0.4037, allocations: 0.8879 MB / 0.517 GB, free: 21.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002813/0.404, allocations: 99.44 kB / 0.5171 GB, free: 21.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.4042, allocations: 186.8 kB / 0.5172 GB, free: 21.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.4042, allocations: 0 / 0.5172 GB, free: 21.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04414/0.4484, allocations: 10.77 MB / 0.5278 GB, free: 19.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.255/9.703, allocations: 11.88 kB / 0.5278 GB, free: 19.77 MB / 382.1 MB " [Timeout remaining time 650] (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: 12.491412582006888] Failed to read output from testmodel.py, exit status != 0: 9.832414849006454 9.8422204 9.69476772 Calling exit ...