Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.001319/0.001319, allocations: 99.66 kB / 18.94 MB, free: 2.84 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.001477/0.001477, allocations: 220 kB / 22.24 MB, free: 5.109 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.395/1.395, allocations: 230.6 MB / 256 MB, free: 7.832 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.06344/0.06344, allocations: 11.34 MB / 323.8 MB, free: 8.082 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.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.002083/0.002083, allocations: 64.14 kB / 451 MB, free: 10.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1163, allocations: 56.07 MB / 0.4951 GB, free: 2.203 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.004184/0.1205, allocations: 2.354 MB / 0.4974 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00298/0.1235, allocations: 1.603 MB / 0.499 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002026/0.1237, allocations: 27.75 kB / 0.499 GB, free: 14.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007817/0.1245, allocations: 229.6 kB / 0.4993 GB, free: 13.97 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004848/0.1249, allocations: 207 kB / 0.4995 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009386/0.1259, allocations: 427 kB / 0.4999 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007969/0.1267, allocations: 0.6723 MB / 0.5005 GB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.1268, allocations: 57.53 kB / 0.5006 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003054/0.1271, allocations: 243.1 kB / 0.5008 GB, free: 12.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003531/0.1275, allocations: 258.9 kB / 0.5011 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.845e-05/0.1276, allocations: 32 kB / 0.5011 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002787/0.1278, allocations: 155.9 kB / 0.5012 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.128, allocations: 151.4 kB / 0.5014 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001879/0.1282, allocations: 182.8 kB / 0.5016 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006969/0.1289, allocations: 0.5911 MB / 0.5021 GB, free: 11.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1289, allocations: 3.938 kB / 0.5021 GB, free: 11.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1289, allocations: 0 / 0.5021 GB, free: 11.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.045e-06/0.1289, allocations: 0 / 0.5021 GB, free: 11.01 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.001478/0.1304, allocations: 0.8655 MB / 0.503 GB, free: 10.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.1305, allocations: 8.031 kB / 0.503 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.748e-05/0.1305, allocations: 78.7 kB / 0.5031 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.1307, allocations: 68.52 kB / 0.5031 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007181/0.1314, allocations: 410.8 kB / 0.5035 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.1314, allocations: 25.38 kB / 0.5035 GB, free: 9.492 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.737e-05/0.1315, allocations: 47.94 kB / 0.5036 GB, free: 9.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007712/0.1323, allocations: 0.4932 MB / 0.5041 GB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.1323, allocations: 4 kB / 0.5041 GB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.804e-05/0.1323, allocations: 16 kB / 0.5041 GB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.1323, allocations: 8 kB / 0.5041 GB, free: 8.887 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006171/0.1329, allocations: 356 kB / 0.5044 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/0.1356, allocations: 1.83 MB / 0.5062 GB, free: 6.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.1361, allocations: 259.3 kB / 0.5065 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.1364, allocations: 166.7 kB / 0.5066 GB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.573e-05/0.1364, allocations: 4.234 kB / 0.5066 GB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004612/0.1369, allocations: 285.8 kB / 0.5069 GB, free: 5.871 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.1369, allocations: 0 / 0.5069 GB, free: 5.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.001105/0.138, allocations: 0.6292 MB / 0.5075 GB, free: 5.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.151e-05/0.138, allocations: 85.09 kB / 0.5076 GB, free: 5.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006569/0.1387, allocations: 0.569 MB / 0.5082 GB, free: 4.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.617e-05/0.1387, allocations: 33.7 kB / 0.5082 GB, free: 4.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002346/0.139, allocations: 288.3 kB / 0.5085 GB, free: 4.211 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.1391, allocations: 123 kB / 0.5086 GB, free: 4.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.1392, allocations: 102.1 kB / 0.5087 GB, free: 3.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1394, allocations: 370.8 kB / 0.509 GB, free: 3.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003143/0.1397, allocations: 186.7 kB / 0.5092 GB, free: 3.426 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004388/0.1402, allocations: 360.7 kB / 0.5096 GB, free: 2.992 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001972/0.1421, allocations: 0.9486 MB / 0.5105 GB, free: 1.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.1421, allocations: 4 kB / 0.5105 GB, free: 1.945 MB / 382.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001075/0.1432, allocations: 0.6807 MB / 0.5111 GB, free: 1.246 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.066e-05/0.1433, allocations: 49.62 kB / 0.5112 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1433, allocations: 4.656 kB / 0.5112 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.1433, allocations: 12 kB / 0.5112 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.1437, allocations: 111.8 kB / 0.5113 GB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.1438, allocations: 8 kB / 0.5113 GB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.144, allocations: 63.55 kB / 0.5114 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.835e-05/0.144, allocations: 27.94 kB / 0.5114 GB, free: 0.9688 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.0003533/0.1444, allocations: 270.9 kB / 0.5117 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.668e-05/0.1445, allocations: 55.62 kB / 0.5117 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009089/0.1454, allocations: 0.5416 MB / 0.5123 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.1454, allocations: 8 kB / 0.5123 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1454, allocations: 0 / 0.5123 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1454, allocations: 0 / 0.5123 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2275/0.3729, allocations: 398 kB / 0.5126 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.3729, allocations: 1.734 kB / 0.5126 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004148/0.3733, allocations: 67.12 kB / 0.5127 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.3733, allocations: 0 / 0.5127 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.55e-05/0.3733, allocations: 14.09 kB / 0.5127 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3733, allocations: 1.031 kB / 0.5127 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3733, allocations: 0.6562 kB / 0.5127 GB, free: 23.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3744, allocations: 0.7504 MB / 0.5135 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.062e-05/0.3745, allocations: 57.53 kB / 0.5135 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.945e-05/0.3745, allocations: 14.77 kB / 0.5135 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.3747, allocations: 16.78 kB / 0.5135 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.356e-05/0.3748, allocations: 29.47 kB / 0.5136 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.3748, allocations: 13.8 kB / 0.5136 GB, free: 23.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003857/0.3752, allocations: 389.1 kB / 0.514 GB, free: 23.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3752, allocations: 1.875 kB / 0.514 GB, free: 23.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005006/0.3757, allocations: 118.3 kB / 0.5141 GB, free: 23.57 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.002702/0.3784, allocations: 1.68 MB / 0.5157 GB, free: 22.82 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007066/0.3791, allocations: 0.5148 MB / 0.5162 GB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3791, allocations: 0 / 0.5162 GB, free: 22.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002851/0.3794, allocations: 262.3 kB / 0.5165 GB, free: 22.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003971/0.3798, allocations: 87.5 kB / 0.5165 GB, free: 22.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005683/0.3855, allocations: 5.061 MB / 0.5215 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.3858, allocations: 288.8 kB / 0.5218 GB, free: 20.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.3861, allocations: 97.77 kB / 0.5219 GB, free: 20.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002274/0.3863, allocations: 194.4 kB / 0.522 GB, free: 20.3 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3863, allocations: 1.094 kB / 0.522 GB, free: 20.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04484/0.4311, allocations: 11.53 MB / 0.5333 GB, free: 16.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.54, allocations: 9.594 kB / 0.5333 GB, free: 16.97 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.25725696934387] Failed to read output from testmodel.py, exit status != 0: 11.704787025693804 11.726075997 11.593460711 Calling exit ...