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.001321/0.001321, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00155/0.00155, allocations: 218.8 kB / 22.26 MB, free: 5.121 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.471/1.471, allocations: 230.6 MB / 256 MB, free: 7.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.06528/0.06528, allocations: 11.34 MB / 323.8 MB, free: 8.227 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.003006/0.003006, allocations: 63.91 kB / 451 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1261, allocations: 56.07 MB / 0.4952 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004544/0.1306, allocations: 2.519 MB / 0.4977 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003855/0.1345, allocations: 1.712 MB / 0.4994 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003968/0.1349, allocations: 23.75 kB / 0.4994 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000935/0.1358, allocations: 223 kB / 0.4996 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006195/0.1364, allocations: 215 kB / 0.4998 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.1376, allocations: 431 kB / 0.5002 GB, free: 13.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00101/0.1386, allocations: 0.6561 MB / 0.5008 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002037/0.1388, allocations: 65.52 kB / 0.5009 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003778/0.1392, allocations: 247 kB / 0.5011 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004225/0.1396, allocations: 254.9 kB / 0.5014 GB, free: 11.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.933e-05/0.1397, allocations: 36 kB / 0.5014 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003827/0.1401, allocations: 163.8 kB / 0.5016 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.1403, allocations: 143.5 kB / 0.5017 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/0.1405, allocations: 218.5 kB / 0.5019 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007613/0.1413, allocations: 0.5522 MB / 0.5025 GB, free: 10.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1413, allocations: 3.938 kB / 0.5025 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1413, allocations: 0 / 0.5025 GB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1413, allocations: 4 kB / 0.5025 GB, free: 10.88 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.001569/0.1429, allocations: 0.8281 MB / 0.5033 GB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1429, allocations: 12.03 kB / 0.5033 GB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.101e-05/0.143, allocations: 74.66 kB / 0.5034 GB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.1431, allocations: 68.52 kB / 0.5034 GB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/0.1438, allocations: 391.6 kB / 0.5038 GB, free: 9.438 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.783e-05/0.1439, allocations: 84.36 kB / 0.5039 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.144, allocations: 39.94 kB / 0.5039 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007867/0.1448, allocations: 454.2 kB / 0.5044 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.1448, allocations: 0 / 0.5044 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.1448, allocations: 12 kB / 0.5044 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.1449, allocations: 8 kB / 0.5044 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005529/0.1454, allocations: 294.3 kB / 0.5047 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.1483, allocations: 1.83 MB / 0.5064 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00054/0.1489, allocations: 190.5 kB / 0.5066 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.1491, allocations: 116.7 kB / 0.5067 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-05/0.1491, allocations: 8 kB / 0.5067 GB, free: 6.277 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004254/0.1495, allocations: 209.7 kB / 0.5069 GB, free: 6.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 2.385e-06/0.1496, allocations: 0 / 0.5069 GB, free: 6.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.001047/0.1506, allocations: 0.4936 MB / 0.5074 GB, free: 5.551 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1507, allocations: 110.8 kB / 0.5075 GB, free: 5.418 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006918/0.1514, allocations: 0.5253 MB / 0.508 GB, free: 4.879 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.519e-05/0.1514, allocations: 29.7 kB / 0.5081 GB, free: 4.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002451/0.1517, allocations: 272.4 kB / 0.5083 GB, free: 4.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.508e-05/0.1518, allocations: 99.22 kB / 0.5084 GB, free: 4.477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.1519, allocations: 94.05 kB / 0.5085 GB, free: 4.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002248/0.1522, allocations: 362.8 kB / 0.5089 GB, free: 4.012 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002505/0.1524, allocations: 124.8 kB / 0.509 GB, free: 3.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.1528, allocations: 281.2 kB / 0.5092 GB, free: 3.547 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.1545, allocations: 0.8011 MB / 0.51 GB, free: 2.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.1545, allocations: 4 kB / 0.51 GB, free: 2.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009549/0.1555, allocations: 0.5496 MB / 0.5106 GB, free: 2.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/0.1555, allocations: 43.98 kB / 0.5106 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1556, allocations: 4 kB / 0.5106 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.1556, allocations: 8 kB / 0.5106 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/0.1562, allocations: 99.88 kB / 0.5107 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/0.1562, allocations: 11.94 kB / 0.5107 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.1565, allocations: 51.61 kB / 0.5108 GB, free: 1.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.1565, allocations: 23.94 kB / 0.5108 GB, free: 1.852 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.0003999/0.1569, allocations: 254.3 kB / 0.511 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.709e-05/0.157, allocations: 51.67 kB / 0.5111 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008415/0.1578, allocations: 444.3 kB / 0.5115 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.1578, allocations: 4 kB / 0.5115 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.1579, allocations: 0 / 0.5115 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.1579, allocations: 3.938 kB / 0.5115 GB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.1584, allocations: 424.2 kB / 0.5119 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1584, allocations: 0 / 0.5119 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005912/0.159, allocations: 67.88 kB / 0.512 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.159, allocations: 4 kB / 0.512 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.084e-05/0.159, allocations: 12 kB / 0.512 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.159, allocations: 0 / 0.512 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.159, allocations: 4 kB / 0.512 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2047/0.3638, allocations: 0.5938 MB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.3639, allocations: 53.34 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-05/0.364, allocations: 14.09 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.3642, allocations: 15.55 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.071e-05/0.3642, allocations: 26.83 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.237e-05/0.3643, allocations: 12.77 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004103/0.3647, allocations: 371.1 kB / 0.5131 GB, free: 23.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3647, allocations: 0 / 0.5131 GB, free: 23.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004973/0.3652, allocations: 111.8 kB / 0.5132 GB, free: 23.06 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.002553/0.3677, allocations: 1.497 MB / 0.5146 GB, free: 22.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.3684, allocations: 398.8 kB / 0.515 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3684, allocations: 3.781 kB / 0.515 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.3686, allocations: 196.8 kB / 0.5152 GB, free: 22.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.369, allocations: 70.75 kB / 0.5153 GB, free: 22.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004542/0.3735, allocations: 4.423 MB / 0.5196 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.3738, allocations: 0.87 MB / 0.5204 GB, free: 19.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002169/0.374, allocations: 79.53 kB / 0.5205 GB, free: 19.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.3742, allocations: 175.3 kB / 0.5207 GB, free: 19.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3742, allocations: 0 / 0.5207 GB, free: 19.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.4181, allocations: 10.3 MB / 0.5307 GB, free: 17.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.2, allocations: 11.31 kB / 0.5308 GB, free: 17.64 MB / 382.1 MB " [Timeout remaining time 648] (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.07194516799791] Failed to read output from testmodel.py, exit status != 0: 12.364491104999615 12.376308017 12.232246146 Calling exit ...