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.001333/0.001333, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001437/0.001437, allocations: 223.6 kB / 23.03 MB, free: 4.945 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: 7.789 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.06205/0.06205, allocations: 11.33 MB / 324.6 MB, free: 8.039 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.001982/0.001982, allocations: 67.89 kB / 451.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1075, allocations: 56.07 MB / 0.4959 GB, free: 2.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004285/0.1118, allocations: 2.345 MB / 0.4982 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002822/0.1146, allocations: 1.509 MB / 0.4997 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002795/0.1149, allocations: 19.75 kB / 0.4997 GB, free: 14.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007666/0.1156, allocations: 231 kB / 0.4999 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005873/0.1162, allocations: 214 kB / 0.5001 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009809/0.1172, allocations: 399.1 kB / 0.5005 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009106/0.1181, allocations: 0.6209 MB / 0.5011 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.1183, allocations: 69.45 kB / 0.5012 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003895/0.1187, allocations: 219.2 kB / 0.5014 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.1191, allocations: 242.9 kB / 0.5016 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.1193, allocations: 32 kB / 0.5016 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.1196, allocations: 155.8 kB / 0.5018 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002133/0.1198, allocations: 139.5 kB / 0.5019 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.12, allocations: 166.9 kB / 0.5021 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008167/0.1209, allocations: 0.5639 MB / 0.5026 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1209, allocations: 0 / 0.5026 GB, free: 11.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1209, allocations: 0 / 0.5026 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.1209, allocations: 0 / 0.5026 GB, free: 11.25 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.001603/0.1225, allocations: 0.8085 MB / 0.5034 GB, free: 10.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.1225, allocations: 8.031 kB / 0.5034 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.933e-05/0.1226, allocations: 24.78 kB / 0.5035 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.259e-05/0.1226, allocations: 70.72 kB / 0.5035 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1228, allocations: 72.5 kB / 0.5036 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006702/0.1234, allocations: 382.9 kB / 0.504 GB, free: 9.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.766e-05/0.1235, allocations: 32.77 kB / 0.504 GB, free: 9.785 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.946e-05/0.1235, allocations: 32 kB / 0.504 GB, free: 9.754 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008115/0.1244, allocations: 0.4898 MB / 0.5045 GB, free: 9.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.54e-05/0.1244, allocations: 3.984 kB / 0.5045 GB, free: 9.211 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.768e-05/0.1244, allocations: 12 kB / 0.5045 GB, free: 9.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.1244, allocations: 12 kB / 0.5045 GB, free: 9.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005599/0.125, allocations: 316 kB / 0.5048 GB, free: 8.871 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.1272, allocations: 1.678 MB / 0.5065 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005416/0.1277, allocations: 224.3 kB / 0.5067 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002403/0.128, allocations: 146.4 kB / 0.5068 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.128, allocations: 0 / 0.5068 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003963/0.1284, allocations: 259.9 kB / 0.5071 GB, free: 6.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.623e-06/0.1284, allocations: 0 / 0.5071 GB, free: 6.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001021/0.1294, allocations: 0.5437 MB / 0.5076 GB, free: 5.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.822e-05/0.1295, allocations: 114.8 kB / 0.5077 GB, free: 5.738 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006484/0.1302, allocations: 0.5255 MB / 0.5082 GB, free: 5.199 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.317e-05/0.1302, allocations: 29.7 kB / 0.5082 GB, free: 5.164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002332/0.1304, allocations: 284.3 kB / 0.5085 GB, free: 4.883 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.48e-05/0.1305, allocations: 91.28 kB / 0.5086 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.1307, allocations: 97.53 kB / 0.5087 GB, free: 4.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.1308, allocations: 366.7 kB / 0.509 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.1311, allocations: 150.1 kB / 0.5092 GB, free: 4.172 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004108/0.1315, allocations: 361.3 kB / 0.5095 GB, free: 3.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/0.1331, allocations: 0.7856 MB / 0.5103 GB, free: 2.859 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1331, allocations: 0 / 0.5103 GB, free: 2.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0009321/0.1341, allocations: 0.5707 MB / 0.5109 GB, free: 2.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/0.1341, allocations: 44.03 kB / 0.5109 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1341, allocations: 4 kB / 0.5109 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.1341, allocations: 7.938 kB / 0.5109 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003134/0.1344, allocations: 87.83 kB / 0.511 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.1345, allocations: 11.94 kB / 0.511 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.1347, allocations: 51.72 kB / 0.5111 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.483e-05/0.1347, allocations: 19.98 kB / 0.5111 GB, free: 2.043 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.000321/0.135, allocations: 250.5 kB / 0.5113 GB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.861e-05/0.1351, allocations: 55.62 kB / 0.5114 GB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008674/0.136, allocations: 490.6 kB / 0.5118 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.136, allocations: 7.938 kB / 0.5118 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.136, allocations: 0 / 0.5118 GB, free: 1.219 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.136, allocations: 3.984 kB / 0.5118 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004417/0.1364, allocations: 372.4 kB / 0.5122 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1364, allocations: 0 / 0.5122 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000257/0.1367, allocations: 47.91 kB / 0.5122 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1367, allocations: 4 kB / 0.5123 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.827e-05/0.1367, allocations: 15.92 kB / 0.5123 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.1367, allocations: 3.938 kB / 0.5123 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1367, allocations: 0 / 0.5123 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.1378, allocations: 0.6812 MB / 0.5129 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1914/0.3292, allocations: 45.73 kB / 0.513 GB, free: 23.37 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.3293, allocations: 7.906 kB / 0.513 GB, free: 23.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000186/0.3295, allocations: 21.02 kB / 0.513 GB, free: 23.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.148e-05/0.3296, allocations: 18.23 kB / 0.513 GB, free: 23.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.3296, allocations: 13.06 kB / 0.513 GB, free: 23.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000386/0.33, allocations: 370.2 kB / 0.5134 GB, free: 23.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.33, allocations: 0 / 0.5134 GB, free: 23.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004735/0.3305, allocations: 109.2 kB / 0.5135 GB, free: 23.28 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 (26): * Single equations (assignments): 23 * 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.002451/0.3329, allocations: 1.579 MB / 0.515 GB, free: 22.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005721/0.3335, allocations: 452.1 kB / 0.5155 GB, free: 22.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3335, allocations: 0 / 0.5155 GB, free: 22.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.3337, allocations: 229 kB / 0.5157 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003901/0.3341, allocations: 88.06 kB / 0.5158 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004136/0.3383, allocations: 4.52 MB / 0.5202 GB, free: 20.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.3385, allocations: 266.5 kB / 0.5204 GB, free: 20.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.3387, allocations: 76.16 kB / 0.5205 GB, free: 20.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.3388, allocations: 180.5 kB / 0.5207 GB, free: 20.26 MB / 382.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3388, allocations: 0 / 0.5207 GB, free: 20.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03429/0.3731, allocations: 10.33 MB / 0.5308 GB, free: 18.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.09, allocations: 6.688 kB / 0.5308 GB, free: 18.08 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.715832463931292] Failed to read output from testmodel.py, exit status != 0: 12.30656083591748 12.318604452 12.195253224 Calling exit ...