Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.001679/0.001679, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002224/0.002224, allocations: 218 kB / 23.04 MB, free: 5.074 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.369/1.369, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.06176/0.06176, allocations: 11.33 MB / 324.6 MB, free: 8.238 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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="cs",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.001885/0.001885, allocations: 59.91 kB / 451.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1063, allocations: 56.07 MB / 0.496 GB, free: 2.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004399/0.1107, allocations: 2.513 MB / 0.4984 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002942/0.1136, allocations: 1.61 MB / 0.5 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003054/0.1139, allocations: 19.75 kB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008019/0.1147, allocations: 230.9 kB / 0.5003 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006463/0.1154, allocations: 211.1 kB / 0.5005 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1164, allocations: 393.9 kB / 0.5008 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008857/0.1173, allocations: 0.6171 MB / 0.5014 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.1175, allocations: 65.52 kB / 0.5015 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000372/0.1179, allocations: 231.1 kB / 0.5017 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003759/0.1182, allocations: 242.9 kB / 0.502 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.998e-05/0.1183, allocations: 32 kB / 0.502 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003046/0.1186, allocations: 163.8 kB / 0.5021 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.1188, allocations: 139.5 kB / 0.5023 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002449/0.119, allocations: 202.6 kB / 0.5025 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007591/0.1198, allocations: 0.5484 MB / 0.503 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.1198, allocations: 0 / 0.503 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1198, allocations: 0 / 0.503 GB, free: 11.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.1198, allocations: 0 / 0.503 GB, free: 11.14 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.001469/0.1213, allocations: 0.8241 MB / 0.5038 GB, free: 10.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1213, allocations: 8.031 kB / 0.5038 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.422e-05/0.1214, allocations: 8.844 kB / 0.5038 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.817e-05/0.1214, allocations: 74.72 kB / 0.5039 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.1216, allocations: 64.52 kB / 0.504 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006548/0.1222, allocations: 395.5 kB / 0.5043 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.1222, allocations: 32.77 kB / 0.5044 GB, free: 9.664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.421e-05/0.1223, allocations: 36 kB / 0.5044 GB, free: 9.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007034/0.123, allocations: 434.2 kB / 0.5048 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.123, allocations: 7.938 kB / 0.5048 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.1231, allocations: 12 kB / 0.5048 GB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.1231, allocations: 8 kB / 0.5048 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.1236, allocations: 282.3 kB / 0.5051 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1258, allocations: 1.736 MB / 0.5068 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.1263, allocations: 190.5 kB / 0.507 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002101/0.1266, allocations: 120.7 kB / 0.5071 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.1266, allocations: 3.984 kB / 0.5071 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003796/0.127, allocations: 211.3 kB / 0.5073 GB, free: 6.496 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.684e-06/0.127, allocations: 7.938 kB / 0.5073 GB, free: 6.488 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009092/0.1279, allocations: 493.2 kB / 0.5078 GB, free: 5.996 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.9e-05/0.128, allocations: 110.8 kB / 0.5079 GB, free: 5.863 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006051/0.1286, allocations: 0.5255 MB / 0.5084 GB, free: 5.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.327e-05/0.1286, allocations: 33.7 kB / 0.5084 GB, free: 5.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.1288, allocations: 280.3 kB / 0.5087 GB, free: 5.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.496e-05/0.1289, allocations: 91.28 kB / 0.5088 GB, free: 4.918 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.129, allocations: 89.59 kB / 0.5089 GB, free: 4.824 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.1292, allocations: 366.7 kB / 0.5092 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002254/0.1294, allocations: 124.4 kB / 0.5093 GB, free: 4.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003499/0.1298, allocations: 273.7 kB / 0.5096 GB, free: 3.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.1314, allocations: 0.7622 MB / 0.5103 GB, free: 3.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1314, allocations: 4 kB / 0.5104 GB, free: 3.145 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0008987/0.1323, allocations: 0.5335 MB / 0.5109 GB, free: 2.598 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.387e-05/0.1324, allocations: 37.7 kB / 0.5109 GB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.1324, allocations: 11.98 kB / 0.5109 GB, free: 2.543 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1324, allocations: 7.938 kB / 0.5109 GB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/0.1327, allocations: 87.83 kB / 0.511 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.89e-05/0.1327, allocations: 12.52 kB / 0.511 GB, free: 2.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.133, allocations: 47.72 kB / 0.5111 GB, free: 2.391 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.133, allocations: 24 kB / 0.5111 GB, free: 2.367 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 (50): * Single equations (assignments): 49 * 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.0003139/0.1333, allocations: 238.4 kB / 0.5113 GB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.25e-05/0.1334, allocations: 55.62 kB / 0.5114 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007907/0.1342, allocations: 448.4 kB / 0.5118 GB, free: 1.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1342, allocations: 7.938 kB / 0.5118 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1342, allocations: 4 kB / 0.5118 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1342, allocations: 0 / 0.5118 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004911/0.1347, allocations: 412.3 kB / 0.5122 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1347, allocations: 0 / 0.5122 GB, free: 1.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002557/0.135, allocations: 47.97 kB / 0.5122 GB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.135, allocations: 3.938 kB / 0.5123 GB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.447e-05/0.135, allocations: 15.98 kB / 0.5123 GB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.135, allocations: 3.938 kB / 0.5123 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.135, allocations: 0 / 0.5123 GB, free: 1.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009912/0.136, allocations: 0.6038 MB / 0.5129 GB, free: 464 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.891e-05/0.1361, allocations: 47.59 kB / 0.5129 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.028e-05/0.1361, allocations: 16.06 kB / 0.5129 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001461/0.1363, allocations: 19.92 kB / 0.5129 GB, free: 380 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.1364, allocations: 19.95 kB / 0.513 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.1364, allocations: 12 kB / 0.513 GB, free: 348 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2017/0.3381, allocations: 363.1 kB / 0.5133 GB, free: 22.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.3381, allocations: 0 / 0.5133 GB, free: 22.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006621/0.3387, allocations: 109.2 kB / 0.5134 GB, free: 22.78 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (25): * Single equations (assignments): 22 * 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.002517/0.3413, allocations: 1.48 MB / 0.5149 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005859/0.3418, allocations: 378.4 kB / 0.5152 GB, free: 22.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3418, allocations: 0 / 0.5152 GB, free: 22.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002245/0.3421, allocations: 191 kB / 0.5154 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.3425, allocations: 84.95 kB / 0.5155 GB, free: 22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004264/0.3467, allocations: 4.331 MB / 0.5197 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.347, allocations: 0.8668 MB / 0.5206 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.3472, allocations: 75.77 kB / 0.5206 GB, free: 19.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.3473, allocations: 174.5 kB / 0.5208 GB, free: 19.5 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3473, allocations: 0 / 0.5208 GB, free: 19.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3848, allocations: 10.2 MB / 0.5308 GB, free: 17.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.99, allocations: 9.906 kB / 0.5308 GB, free: 17.49 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.631382560939528] Failed to read output from testmodel.py, exit status != 0: 12.210604717954993 12.235231935 12.110837771 Calling exit ...