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.001383/0.001383, allocations: 106.2 kB / 18.84 MB, free: 3.027 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.001745/0.001745, allocations: 208.5 kB / 22.13 MB, free: 5.176 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.466/1.466, allocations: 230.5 MB / 255.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.07869/0.07869, allocations: 11.37 MB / 323.5 MB, free: 8.285 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-master/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.002247/0.002247, allocations: 71.89 kB / 450.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1262, allocations: 56.06 MB / 0.4949 GB, free: 2.52 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004934/0.1312, allocations: 2.504 MB / 0.4973 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003609/0.1348, allocations: 1.711 MB / 0.499 GB, free: 14.28 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000426/0.1352, allocations: 23.75 kB / 0.499 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009445/0.1362, allocations: 227 kB / 0.4992 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008265/0.137, allocations: 215 kB / 0.4994 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.1384, allocations: 436.6 kB / 0.4998 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1396, allocations: 0.6561 MB / 0.5005 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1398, allocations: 65.52 kB / 0.5006 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004516/0.1402, allocations: 239.1 kB / 0.5008 GB, free: 12.43 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004871/0.1407, allocations: 258.9 kB / 0.501 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.1408, allocations: 32 kB / 0.5011 GB, free: 12.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.1412, allocations: 159.8 kB / 0.5012 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.1414, allocations: 143.5 kB / 0.5013 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003155/0.1418, allocations: 218.5 kB / 0.5016 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009638/0.1427, allocations: 0.5639 MB / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1427, allocations: 4 kB / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1427, allocations: 0 / 0.5021 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.32e-05/0.1428, allocations: 0 / 0.5021 GB, free: 11.07 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.001945/0.1447, allocations: 0.8358 MB / 0.5029 GB, free: 10.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.1447, allocations: 12.02 kB / 0.5029 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001197/0.1449, allocations: 74.72 kB / 0.503 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.145, allocations: 64.52 kB / 0.5031 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008392/0.1459, allocations: 387.6 kB / 0.5034 GB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.48e-05/0.146, allocations: 84.38 kB / 0.5035 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.438e-05/0.146, allocations: 39.88 kB / 0.5036 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000886/0.1469, allocations: 0.4976 MB / 0.504 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.1469, allocations: 4 kB / 0.504 GB, free: 8.941 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.245e-05/0.147, allocations: 15.98 kB / 0.5041 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.493e-05/0.147, allocations: 12 kB / 0.5041 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006303/0.1476, allocations: 320 kB / 0.5044 GB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003052/0.1507, allocations: 1.826 MB / 0.5062 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005824/0.1513, allocations: 216.3 kB / 0.5064 GB, free: 6.453 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002687/0.1515, allocations: 146.5 kB / 0.5065 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.1516, allocations: 0 / 0.5065 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004561/0.152, allocations: 255.4 kB / 0.5068 GB, free: 6.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.054e-06/0.152, allocations: 0 / 0.5068 GB, free: 6.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.001156/0.1532, allocations: 0.5517 MB / 0.5073 GB, free: 5.453 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.389e-05/0.1533, allocations: 110.8 kB / 0.5074 GB, free: 5.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007712/0.154, allocations: 0.5214 MB / 0.5079 GB, free: 4.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.1541, allocations: 37.69 kB / 0.5079 GB, free: 4.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002719/0.1544, allocations: 280.3 kB / 0.5082 GB, free: 4.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.1545, allocations: 99.22 kB / 0.5083 GB, free: 4.367 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001842/0.1546, allocations: 86.06 kB / 0.5084 GB, free: 4.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1549, allocations: 358.8 kB / 0.5087 GB, free: 3.914 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000318/0.1552, allocations: 158.5 kB / 0.5089 GB, free: 3.754 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000489/0.1557, allocations: 367.8 kB / 0.5092 GB, free: 3.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.1576, allocations: 0.805 MB / 0.51 GB, free: 2.414 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.338e-06/0.1576, allocations: 4 kB / 0.51 GB, free: 2.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001168/0.1588, allocations: 0.5822 MB / 0.5106 GB, free: 1.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.768e-05/0.1589, allocations: 41.69 kB / 0.5106 GB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.494e-05/0.1589, allocations: 4 kB / 0.5106 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.1589, allocations: 8 kB / 0.5106 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000622/0.1595, allocations: 103.8 kB / 0.5107 GB, free: 1.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.05e-05/0.1595, allocations: 11.94 kB / 0.5108 GB, free: 1.637 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.1599, allocations: 56.05 kB / 0.5108 GB, free: 1.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-05/0.1599, allocations: 27.94 kB / 0.5108 GB, free: 1.555 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.0004774/0.1604, allocations: 250.2 kB / 0.5111 GB, free: 1.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.1605, allocations: 55.66 kB / 0.5111 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.1615, allocations: 486 kB / 0.5116 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1615, allocations: 0 / 0.5116 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1615, allocations: 0 / 0.5116 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1616, allocations: 3.938 kB / 0.5116 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000604/0.1622, allocations: 420.2 kB / 0.512 GB, free: 292 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1622, allocations: 4 kB / 0.512 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006193/0.1628, allocations: 71.89 kB / 0.5121 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.1628, allocations: 0 / 0.5121 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.88e-05/0.1628, allocations: 12 kB / 0.5121 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/0.1628, allocations: 3.984 kB / 0.5121 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1628, allocations: 0 / 0.5121 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2084/0.3712, allocations: 0.6618 MB / 0.5127 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.123e-05/0.3713, allocations: 54.16 kB / 0.5128 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.225e-05/0.3714, allocations: 13.14 kB / 0.5128 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001673/0.3716, allocations: 13.16 kB / 0.5128 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.3716, allocations: 28.5 kB / 0.5128 GB, free: 23.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.01e-05/0.3717, allocations: 12.47 kB / 0.5128 GB, free: 23.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003943/0.3721, allocations: 367.6 kB / 0.5132 GB, free: 23.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3721, allocations: 0 / 0.5132 GB, free: 23.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004303/0.3725, allocations: 112.2 kB / 0.5133 GB, free: 23.18 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.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * 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.002442/0.3749, allocations: 1.555 MB / 0.5148 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006833/0.3756, allocations: 462.8 kB / 0.5153 GB, free: 22.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3756, allocations: 3.469 kB / 0.5153 GB, free: 22.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.3759, allocations: 232.2 kB / 0.5155 GB, free: 22.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004295/0.3763, allocations: 76.77 kB / 0.5156 GB, free: 22.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/0.381, allocations: 4.598 MB / 0.52 GB, free: 20.22 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3813, allocations: 264 kB / 0.5203 GB, free: 20.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.3815, allocations: 82.66 kB / 0.5204 GB, free: 20.12 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.3818, allocations: 173 kB / 0.5205 GB, free: 20.12 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3818, allocations: 0 / 0.5205 GB, free: 20.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04458/0.4263, allocations: 10.31 MB / 0.5306 GB, free: 17.95 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.5, allocations: 3.75 kB / 0.5306 GB, free: 17.95 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.34622391872108] Failed to read output from testmodel.py, exit status != 0: 12.668818352278322 12.686023046 12.539813679 Calling exit ...