Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.001266/0.001266, allocations: 108.2 kB / 16.45 MB, free: 6.5 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.001415/0.001415, allocations: 210.4 kB / 19.42 MB, free: 3.66 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.522/1.522, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.06659/0.06659, allocations: 11.33 MB / 320.2 MB, free: 9.426 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.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_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.001937/0.001937, allocations: 71.83 kB / 445.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1267, allocations: 56.01 MB / 0.4901 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004412/0.1311, allocations: 2.487 MB / 0.4925 GB, free: 3.133 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003238/0.1343, allocations: 1.699 MB / 0.4942 GB, free: 1.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002631/0.1346, allocations: 23.75 kB / 0.4942 GB, free: 1.406 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007714/0.1353, allocations: 215 kB / 0.4944 GB, free: 1.195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005388/0.1359, allocations: 215 kB / 0.4946 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1371, allocations: 413.4 kB / 0.495 GB, free: 0.582 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008307/0.1379, allocations: 0.621 MB / 0.4956 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.1381, allocations: 69.08 kB / 0.4957 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003298/0.1384, allocations: 243 kB / 0.4959 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000392/0.1388, allocations: 258.8 kB / 0.4961 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.1389, allocations: 36 kB / 0.4962 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.1392, allocations: 155.8 kB / 0.4963 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.1394, allocations: 139.5 kB / 0.4965 GB, free: 15.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000223/0.1397, allocations: 222.5 kB / 0.4967 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007544/0.1404, allocations: 0.5522 MB / 0.4972 GB, free: 14.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1404, allocations: 4 kB / 0.4972 GB, free: 14.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1404, allocations: 0 / 0.4972 GB, free: 14.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.897e-06/0.1404, allocations: 3.938 kB / 0.4972 GB, free: 14.29 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.001633/0.1421, allocations: 0.8995 MB / 0.4981 GB, free: 13.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.1421, allocations: 12.03 kB / 0.4981 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.762e-05/0.1422, allocations: 70.72 kB / 0.4982 GB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.1423, allocations: 64.52 kB / 0.4982 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007612/0.1431, allocations: 470.7 kB / 0.4987 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.1432, allocations: 84.38 kB / 0.4988 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.1433, allocations: 35.94 kB / 0.4988 GB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008253/0.1441, allocations: 458 kB / 0.4992 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1441, allocations: 0 / 0.4992 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.1442, allocations: 19.98 kB / 0.4992 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.1442, allocations: 12 kB / 0.4993 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.1447, allocations: 286 kB / 0.4995 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003163/0.1479, allocations: 1.864 MB / 0.5014 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/0.1485, allocations: 192.8 kB / 0.5015 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.1487, allocations: 112.8 kB / 0.5016 GB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.1487, allocations: 4 kB / 0.5016 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004341/0.1492, allocations: 225.7 kB / 0.5019 GB, free: 9.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.514e-06/0.1492, allocations: 0 / 0.5019 GB, free: 9.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.001087/0.1503, allocations: 496.1 kB / 0.5023 GB, free: 8.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/0.1504, allocations: 110.8 kB / 0.5024 GB, free: 8.617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.1511, allocations: 0.5215 MB / 0.503 GB, free: 8.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.865e-05/0.1511, allocations: 33.7 kB / 0.503 GB, free: 8.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002514/0.1514, allocations: 284.3 kB / 0.5033 GB, free: 7.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.1515, allocations: 99.22 kB / 0.5034 GB, free: 7.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.1516, allocations: 86.05 kB / 0.5034 GB, free: 7.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002026/0.1518, allocations: 366.8 kB / 0.5038 GB, free: 7.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002606/0.1521, allocations: 120.9 kB / 0.5039 GB, free: 7.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003733/0.1525, allocations: 278.9 kB / 0.5042 GB, free: 6.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00176/0.1542, allocations: 0.7934 MB / 0.5049 GB, free: 5.863 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1542, allocations: 7.922 kB / 0.5049 GB, free: 5.855 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001025/0.1552, allocations: 0.5499 MB / 0.5055 GB, free: 5.293 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.649e-05/0.1553, allocations: 33.7 kB / 0.5055 GB, free: 5.254 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.1553, allocations: 4 kB / 0.5055 GB, free: 5.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.1553, allocations: 8 kB / 0.5055 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006217/0.1559, allocations: 99.88 kB / 0.5056 GB, free: 5.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.614e-05/0.156, allocations: 11.94 kB / 0.5056 GB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002529/0.1562, allocations: 55.86 kB / 0.5057 GB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.947e-05/0.1563, allocations: 31.88 kB / 0.5057 GB, free: 5.047 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 (51): * Single equations (assignments): 50 * 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.0003397/0.1566, allocations: 242.3 kB / 0.5059 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.39e-05/0.1567, allocations: 55.66 kB / 0.506 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008503/0.1575, allocations: 445 kB / 0.5064 GB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1575, allocations: 4 kB / 0.5064 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1575, allocations: 0 / 0.5064 GB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.1575, allocations: 3.938 kB / 0.5064 GB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005272/0.1581, allocations: 449.2 kB / 0.5069 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1581, allocations: 0 / 0.5069 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006502/0.1587, allocations: 67.89 kB / 0.5069 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.494e-05/0.1587, allocations: 4 kB / 0.5069 GB, free: 3.723 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.1588, allocations: 8 kB / 0.5069 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.1588, allocations: 0 / 0.5069 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1588, allocations: 0 / 0.5069 GB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.1598, allocations: 0.5998 MB / 0.5075 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001183/0.16, allocations: 132.7 kB / 0.5076 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.16, allocations: 16 kB / 0.5077 GB, free: 2.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.1602, allocations: 15.98 kB / 0.5077 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.1603, allocations: 27.84 kB / 0.5077 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.951e-05/0.1603, allocations: 8 kB / 0.5077 GB, free: 2.875 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004551/0.1608, allocations: 370.8 kB / 0.5081 GB, free: 2.516 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1608, allocations: 0 / 0.5081 GB, free: 2.516 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004598/0.1612, allocations: 115.7 kB / 0.5082 GB, free: 2.402 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * 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.002921/0.1641, allocations: 1.495 MB / 0.5096 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007712/0.1649, allocations: 395.5 kB / 0.51 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1649, allocations: 3.938 kB / 0.51 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.1652, allocations: 195.3 kB / 0.5102 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.1657, allocations: 85.45 kB / 0.5103 GB, free: 364 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2321/0.3978, allocations: 4.417 MB / 0.5146 GB, free: 22.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.3982, allocations: 0.8691 MB / 0.5154 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002371/0.3984, allocations: 74.88 kB / 0.5155 GB, free: 22.11 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.3986, allocations: 175.6 kB / 0.5157 GB, free: 22.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.522e-06/0.3986, allocations: 3.875 kB / 0.5157 GB, free: 22.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04046/0.4391, allocations: 9.918 MB / 0.5254 GB, free: 20.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.924/9.363, allocations: 19.41 kB / 0.5254 GB, free: 20.58 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.249101351990248] Failed to read output from testmodel.py, exit status != 0: 9.4914534700074 9.506311688 9.361833235 Calling exit ...